• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 08:54
CET 14:54
KST 22:54
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Winners10Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
StarCraft, SC2, HotS, WC3, Returning to Blizzcon!33$5,000+ WardiTV 2025 Championship6[BSL21] RO32 Group Stage4Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win10
StarCraft 2
General
Mech is the composition that needs teleportation t TL.net Map Contest #21: Winners Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win RotterdaM "Serral is the GOAT, and it's not close" 5.0.15 Patch Balance Hotfix (2025-10-8)
Tourneys
Constellation Cup - Main Event - Stellar Fest $5,000+ WardiTV 2025 Championship Sparkling Tuna Cup - Weekly Open Tournament Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace
Brood War
General
[ASL20] Ask the mapmakers — Drop your questions BW General Discussion [BSL21] RO32 Group Stage BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review
Tourneys
[Megathread] Daily Proleagues [ASL20] Grand Finals [BSL21] RO32 Group B - Sunday 21:00 CET [BSL21] RO32 Group A - Saturday 21:00 CET
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile Should offensive tower rushing be viable in RTS games? Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread Dating: How's your luck?
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion! Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Why we need SC3
Hildegard
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1391 users

The Big Programming Thread - Page 290

Forum Index > General Forum
Post a Reply
Prev 1 288 289 290 291 292 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
bangsholt
Profile Joined June 2011
Denmark138 Posts
April 25 2013 12:32 GMT
#5781
On April 24 2013 17:33 FFGenerations wrote:
hey, i have to rush off now, but perhaps one of you would fancy answering a question?

<snip>

<?php

$connection = mysql_connect("localhost", "jon1", "password");

mysql_select_db("takeaway");

$result = mysql_query("SELECT * FROM products");

<snip>



One thing you *ALWAYS* want to do is select by columns instead of * (all) and you also always want to use a group by column. While you might always get the same ordering, it's bound to go weird at some point if you don't use group by. While select * is the same as selecting all the columns you need, it's more obvious what you want to use from the database when you have the column names - small things that makes life easier
Yoshi-
Profile Joined October 2008
Germany10227 Posts
April 25 2013 13:02 GMT
#5782
On April 25 2013 21:32 bangsholt wrote:
Show nested quote +
On April 24 2013 17:33 FFGenerations wrote:
hey, i have to rush off now, but perhaps one of you would fancy answering a question?

<snip>

<?php

$connection = mysql_connect("localhost", "jon1", "password");

mysql_select_db("takeaway");

$result = mysql_query("SELECT * FROM products");

<snip>



One thing you *ALWAYS* want to do is select by columns instead of * (all) and you also always want to use a group by column. While you might always get the same ordering, it's bound to go weird at some point if you don't use group by. While select * is the same as selecting all the columns you need, it's more obvious what you want to use from the database when you have the column names - small things that makes life easier


Using Group By makes absolute no sense
Tobberoth
Profile Joined August 2010
Sweden6375 Posts
April 25 2013 13:03 GMT
#5783
On April 25 2013 22:02 Yoshi- wrote:
Show nested quote +
On April 25 2013 21:32 bangsholt wrote:
On April 24 2013 17:33 FFGenerations wrote:
hey, i have to rush off now, but perhaps one of you would fancy answering a question?

<snip>

<?php

$connection = mysql_connect("localhost", "jon1", "password");

mysql_select_db("takeaway");

$result = mysql_query("SELECT * FROM products");

<snip>



One thing you *ALWAYS* want to do is select by columns instead of * (all) and you also always want to use a group by column. While you might always get the same ordering, it's bound to go weird at some point if you don't use group by. While select * is the same as selecting all the columns you need, it's more obvious what you want to use from the database when you have the column names - small things that makes life easier


Using Group By makes absolute no sense

Pretty sure he meant "Order By".
Yoshi-
Profile Joined October 2008
Germany10227 Posts
April 25 2013 13:15 GMT
#5784
On April 25 2013 22:03 Tobberoth wrote:
Show nested quote +
On April 25 2013 22:02 Yoshi- wrote:
On April 25 2013 21:32 bangsholt wrote:
On April 24 2013 17:33 FFGenerations wrote:
hey, i have to rush off now, but perhaps one of you would fancy answering a question?

<snip>

<?php

$connection = mysql_connect("localhost", "jon1", "password");

mysql_select_db("takeaway");

$result = mysql_query("SELECT * FROM products");

<snip>



One thing you *ALWAYS* want to do is select by columns instead of * (all) and you also always want to use a group by column. While you might always get the same ordering, it's bound to go weird at some point if you don't use group by. While select * is the same as selecting all the columns you need, it's more obvious what you want to use from the database when you have the column names - small things that makes life easier


Using Group By makes absolute no sense

Pretty sure he meant "Order By".


Even that makes only sense, when it is needed
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
April 25 2013 13:31 GMT
#5785
On April 25 2013 21:32 bangsholt wrote:
Show nested quote +
On April 24 2013 17:33 FFGenerations wrote:
hey, i have to rush off now, but perhaps one of you would fancy answering a question?

<snip>

<?php

$connection = mysql_connect("localhost", "jon1", "password");

mysql_select_db("takeaway");

$result = mysql_query("SELECT * FROM products");

<snip>



One thing you *ALWAYS* want to do is select by columns instead of * (all) and you also always want to use a group by column. While you might always get the same ordering, it's bound to go weird at some point if you don't use group by. While select * is the same as selecting all the columns you need, it's more obvious what you want to use from the database when you have the column names - small things that makes life easier


Assuming you mean ORDER BY, always using ORDER BY makes no sense since in a lot of cases you don't care at all about the order of the results, you usually just want to know which items there are, so forcing the extra work on the server to order it is counterproductive. Even if a sort on an already sorted list is usually O(1) it's still extra work for the server.

I agree about writing the column names instead of * though, it makes working with the result a lot easier. Especially after picking up code a week later you don't have to dig in the database to figure out again which columns were in that specific table. It's also helpful when working with a legacy database without consistent naming schemes since you don't have to remember wether this table had the id as "id" or "table_id". Lastly, it can reduce the load to always just fetch just the columns you really need to fetch. If you just need the ID column, the server doesn't have to keep the whole row in memory but can instead just store that one value per row. It's a good habit to develop and while it's a little more to write it still saves a lot of time.
bangsholt
Profile Joined June 2011
Denmark138 Posts
April 25 2013 13:49 GMT
#5786
There should be a feature in all databases, if you don't use order by, your results will be scrambled 5% of the time.

It IS a strain on the database - but before you have an almost finished API/Program/App you shouldn't do "optimization", which is the only argument I can see for not always using order by.
Yoshi-
Profile Joined October 2008
Germany10227 Posts
April 25 2013 13:52 GMT
#5787
On April 25 2013 22:49 bangsholt wrote:
There should be a feature in all databases, if you don't use order by, your results will be scrambled 5% of the time.

It IS a strain on the database - but before you have an almost finished API/Program/App you shouldn't do "optimization", which is the only argument I can see for not always using order by.


And the argument for using order by even when it is absolute not needed is?
mcc
Profile Joined October 2010
Czech Republic4646 Posts
April 25 2013 13:52 GMT
#5788
On April 25 2013 21:32 icystorage wrote:
Show nested quote +
On April 25 2013 21:20 mcc wrote:
On April 25 2013 19:29 Morfildur wrote:
On April 25 2013 17:11 billy5000 wrote:
On April 24 2013 11:51 white_horse wrote:
Is it possible to teach yourself HTML and be pretty good at it? I'm planning on studying intensively on my own this summer.

Also, should I learn HTML first or PHP, or should I study both at the same time?


Any reason why you want to learn php?

I'm not here to criticize--I'm fairly new to web development myself (getting the hang of play framework atm)--but I'm just wondering what made you choose php over other popular frameworks, such as rails and django.

I for one chose play because I was learning scala on the side. Thought it would be a good idea to do something with what I've learned. I also have a project in mind.

Note: I know it's wrong to consider php a web framework, but you know what I mean . I'm just not familiar with any popular php frameworks.


There is one reason why PHP is a common choice to learn:
It's what everyone uses, so it provides the best job opportunities.

Yes, it's a horrible language and i don't like it but if you look at it from a real-world perspective, making code look pretty doesn't matter, results matter. That is what PHP has: Results.

I recommend to read PHP Sucks, But It Doesn't Matter from the blog of Jeff Atwood who explains it better than i can.

PHP, Python, Ruby, Scala, the choice of language doesn't matter in the end, only results do. Bad coders write bad code in every language.

On April 24 2013 17:55 tec27 wrote:
On April 24 2013 17:33 FFGenerations wrote:
hey, i have to rush off now, but perhaps one of you would fancy answering a question?

i am printing contents of my product table to a webpage (menu of food items)

my tutor used While to do this but i dont really know why, or why you cant use Foreach

i dont need a 100% answer, just a very general answer would be sufficient for me to see how my understanding lacks (i am total beginner). something like "they both work completely different and you need to study up on them properly to know why and how"

+ Show Spoiler +



<?php

$connection = mysql_connect("localhost", "jon1", "password");

mysql_select_db("takeaway");

$result = mysql_query("SELECT * FROM products");

while($row = mysql_fetch_array($result))
{

echo "<strong>Name:</strong> " . $row["productname"] . "<br />";

echo "<a href='item.php?productid=" . $row["productid"] . "'>Details</a><br/>";
}

foreach($row = mysql_fetch_array($result))
{
echo "<strong>Name:</strong> " . $row["productname"] . "<br />";

echo "<a href='item.php?productid=" . $row["productid"] . "'>Details</a><br/>";
}


?>


(the foreach doesnt work fyi. i have to fuck off now for 2 hours but will be back to have another look)

Firstly, quit using the mysql library, its awful and deprecated. Use mysqli or PDO instead.

***snip***


I wholeheartedly agree. PDO is so much better than the standard mysql_* functions and only a tiny bit more complex. Coming originally from Perl with it's DBI library, it feels a lot more natural to me as well. Anyone who still uses mysql_* deserves a strong kick in the lower body region.

I disagree with such generalized statement as "bad coders write bad code in any language". Quality of code is not binary measure. And languages influence how bad the code can get. Plus all programmers write bad code to some degree, good language helps you avoid some of that. Bad code is unavoidable, if language can prevent some of it, that language is better. Of course there is balance to be had between how much language constricts you without actually preventing you to use useful techniques.

PHP is terrible language and it matters (even though not to some very big degree). But which languages are used is not based on quality or even pure usefulness of the language, but on factors independent of the language itself (libraries, frameworks, community, support, ...). Basically PHP has results, because it is popular, simple feedback loop.

That is not to discourage someone from learning PHP, but if they are not pressed to start with it by necessity of earning money or something, it is not ideal first language, not even for creating web pages.


out of curiosity, what is ideal in creating web pages?

I would like to point out that I meant "not even first language for creating web pages". Point is that if you are not necessarily selling your work, other languages are better at learning programming in general and they can also be reasonably used to create webpages. As for "ideal" language for creating webpages in practice, there isn't one. For example my favourite C#/ASP has issues with servers. Mono is not ideal so you might be limited to Windows servers. Also if your projects is not that big it might be better handled by simple PHP project.
mcc
Profile Joined October 2010
Czech Republic4646 Posts
April 25 2013 13:56 GMT
#5789
On April 25 2013 22:49 bangsholt wrote:
There should be a feature in all databases, if you don't use order by, your results will be scrambled 5% of the time.

It IS a strain on the database - but before you have an almost finished API/Program/App you shouldn't do "optimization", which is the only argument I can see for not always using order by.

When I do not absolutely care about order, why should I use it. It is actually very bad advice. You should basically NEVER use ORDER BY unless you really need the data ordered for whatever reason. Always using order by makes you used to that and if you later need to remove it because the query is unnecessarily slow you might actually break your whole code.
bangsholt
Profile Joined June 2011
Denmark138 Posts
April 25 2013 14:07 GMT
#5790
Error 40 from my site. Use Order By when order matters - i.e. in the context menu that's being generated from that script. I suppose we agree now - it's better to use Order By when order matters, rather than rely on the database to sort your rows correctly.
mcc
Profile Joined October 2010
Czech Republic4646 Posts
Last Edited: 2013-04-25 14:35:21
April 25 2013 14:34 GMT
#5791
On April 25 2013 23:07 bangsholt wrote:
Error 40 from my site. Use Order By when order matters - i.e. in the context menu that's being generated from that script. I suppose we agree now - it's better to use Order By when order matters, rather than rely on the database to sort your rows correctly.

Well if you require ordering than yes, you should not rely on the db's default order. But why do you think this is the case here, for me it does not look like it is necessarily the case.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
April 25 2013 14:43 GMT
#5792
On April 25 2013 23:07 bangsholt wrote:
Error 40 from my site. Use Order By when order matters - i.e. in the context menu that's being generated from that script. I suppose we agree now - it's better to use Order By when order matters, rather than rely on the database to sort your rows correctly.


Yes, if you need your data in a specific order you should use ORDER BY.

However, your quote was:
On April 25 2013 21:32 bangsholt wrote:
*snip*
One thing you *ALWAYS* want to do is select by columns instead of * (all) and you also always want to use a order by column.
*snip*
(fixed the group/order mixup since group by makes even less sense in that context)

In a lot of cases you do not care about the order at all, so there is no reason to ever have ORDER BY for those cases. For example in the last company we did a lot of "Give me all the codecs and their properties that we have this movie in" queries. It didn't matter what those codecs were, it didn't matter which order they were in, we only needed all the results. Ordering would only have put more load on the database that already was at it's limits.
adwodon
Profile Blog Joined September 2010
United Kingdom592 Posts
April 25 2013 14:54 GMT
#5793
Ok so I'm trying to learn a bit of Perl, figured it would come in handy.

Anyway it turns out that VS2010 has sheltered me from the horrors of Eclipse, I'm using the EPIC plugin and for the life of me I can't find my locals when debugging:

[image loading]

Can anyone shed some light on this? I installed PadWalker using PPM as it recommends but this doesn't appear to help. Considering how easy VS2010 makes debugging straightforward stuff I'm slightly annoyed, even WinDbg is easier to use than this >.<
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
Last Edited: 2013-04-25 15:22:50
April 25 2013 15:22 GMT
#5794
On April 25 2013 23:54 adwodon wrote:
Ok so I'm trying to learn a bit of Perl, figured it would come in handy.

Anyway it turns out that VS2010 has sheltered me from the horrors of Eclipse, I'm using the EPIC plugin and for the life of me I can't find my locals when debugging:
+ Show Spoiler +

[image loading]

Can anyone shed some light on this? I installed PadWalker using PPM as it recommends but this doesn't appear to help. Considering how easy VS2010 makes debugging straightforward stuff I'm slightly annoyed, even WinDbg is easier to use than this >.<


I can't help you with that problem, but as a Perl veteran i can give you the most important tip any new Perl programmer needs to know:
"use strict", always "use strict".

Get in the habit of using it even for the smallest scripts.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
April 25 2013 15:38 GMT
#5795
On April 25 2013 19:29 Morfildur wrote:
Show nested quote +
On April 25 2013 17:11 billy5000 wrote:
On April 24 2013 11:51 white_horse wrote:
Is it possible to teach yourself HTML and be pretty good at it? I'm planning on studying intensively on my own this summer.

Also, should I learn HTML first or PHP, or should I study both at the same time?


Any reason why you want to learn php?

I'm not here to criticize--I'm fairly new to web development myself (getting the hang of play framework atm)--but I'm just wondering what made you choose php over other popular frameworks, such as rails and django.

I for one chose play because I was learning scala on the side. Thought it would be a good idea to do something with what I've learned. I also have a project in mind.

Note: I know it's wrong to consider php a web framework, but you know what I mean . I'm just not familiar with any popular php frameworks.


There is one reason why PHP is a common choice to learn:
It's what everyone uses, so it provides the best job opportunities.

Yes, it's a horrible language and i don't like it but if you look at it from a real-world perspective, making code look pretty doesn't matter, results matter. That is what PHP has: Results.

I recommend to read PHP Sucks, But It Doesn't Matter from the blog of Jeff Atwood who explains it better than i can.

PHP, Python, Ruby, Scala, the choice of language doesn't matter in the end, only results do. Bad coders write bad code in every language.

I thought I was just a mess PHP user. After reading that I guess it makes sense that others are messy with combining html and php too.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
April 25 2013 15:47 GMT
#5796
On April 26 2013 00:38 obesechicken13 wrote:
Show nested quote +
On April 25 2013 19:29 Morfildur wrote:
On April 25 2013 17:11 billy5000 wrote:
On April 24 2013 11:51 white_horse wrote:
Is it possible to teach yourself HTML and be pretty good at it? I'm planning on studying intensively on my own this summer.

Also, should I learn HTML first or PHP, or should I study both at the same time?


Any reason why you want to learn php?

I'm not here to criticize--I'm fairly new to web development myself (getting the hang of play framework atm)--but I'm just wondering what made you choose php over other popular frameworks, such as rails and django.

I for one chose play because I was learning scala on the side. Thought it would be a good idea to do something with what I've learned. I also have a project in mind.

Note: I know it's wrong to consider php a web framework, but you know what I mean . I'm just not familiar with any popular php frameworks.


There is one reason why PHP is a common choice to learn:
It's what everyone uses, so it provides the best job opportunities.

Yes, it's a horrible language and i don't like it but if you look at it from a real-world perspective, making code look pretty doesn't matter, results matter. That is what PHP has: Results.

I recommend to read PHP Sucks, But It Doesn't Matter from the blog of Jeff Atwood who explains it better than i can.

PHP, Python, Ruby, Scala, the choice of language doesn't matter in the end, only results do. Bad coders write bad code in every language.

I thought I was just a mess PHP user. After reading that I guess it makes sense that others are messy with combining html and php too.


It depends. PHP is a messy language and it's really easy to create a mess in it. Even the PHP creator says so (Go to around 1:03:00 and listen in for 2-3 minutes and you should hear what i reference).

However, that doesn't mean that we as programmers shouldn't strive to write clean code with it. PHP has the neccessary capabilities for clean code, most people just tend to not use them.

Either way, in the end the poorly programmed application that actually gets finished is worth more than perfect code that never gets completed.
white_horse
Profile Joined July 2010
1019 Posts
April 25 2013 16:25 GMT
#5797
Can one of you guys explain how PHP relates to html?
Translator
tofucake
Profile Blog Joined October 2009
Hyrule19151 Posts
Last Edited: 2013-04-25 16:40:32
April 25 2013 16:39 GMT
#5798
Basically, not at all.

HTML (in conjunction with CSS) tells the browser how to display content.

PHP does stuff server side as an actual program.

PHP can output HTML, which is handy for creating dynamic web pages. But PHP can also output other forms of data, including non-text, which enables things like image editing and Battle.net bots.
Liquipediaasante sana squash banana
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
April 25 2013 16:45 GMT
#5799
On April 26 2013 01:25 white_horse wrote:
Can one of you guys explain how PHP relates to html?


That is a hard to answer question.

Serverside programming languages (i.e. not javascript inside the browser) just generate HTML code that they then send to the user. You can do the same in Python, Ruby, Java, C#, even C if you want to. All that the server side does is to generate HTML and send the end result back, there is no direct interaction.

HTML is a layout language, it only describes how the stuff should look. It has no logic, no loops and no branches (if/else).

PHP was designed to make the generation of HTML easier by adding server side loops and such in between normal HTML pages, so the creator inverted the normal layout of programming languages ("Everything is code unless declared otherwise") to consider everything as something to send to the user unless it was in a specific tag. It still happens server side and is invisible to the user, i.e. there is no further interaction after sending the HTML. PHP can send everything though, it's not limited to HTML, it's just the way it's commonly used.

Classic programming pseudocode:

String output = "
<html>
<body>
this is html.
";

foreach (item in items) // assuming an array "items" with an unknown amount of items
{
output += " and this gets added in a loop ";
}
output += "
</body>
</html>
";


PHP pseudocode:

<html>
<body>
this is html.
<? foreach ($items as $item) { ?>
and this gets added in a loop
<? } ?>
</body>
</html>


What the user sees:

<html>
<body>
this is html.
and this gets added in a loop.
and this gets added in a loop.
and this gets added in a loop.
...
and this gets added in a loop.
</body>
</html>


Generally, this is a messy way to program, which is why most programmers use a template engine or dedicate a specific part of code to generate the HTML output while they keep the logic as far away as possible from it. It could the same way be used to write simple, unformatted text, a LaTeX document or some other format.

In short: PHP is not related to HTML.
phar
Profile Joined August 2011
United States1080 Posts
Last Edited: 2013-04-25 17:03:03
April 25 2013 17:01 GMT
#5800
On April 25 2013 23:43 Morfildur wrote

In a lot of cases you do not care about the order at all, so there is no reason to ever have ORDER BY for those cases. For example in the last company we did a lot of "Give me all the codecs and their properties that we have this movie in" queries. It didn't matter what those codecs were, it didn't matter which order they were in, we only needed all the results. Ordering would only have put more load on the database that already was at it's limits.

It becomes even more important if your request is on large data. Codecs for a movie is a pretty small set. But if you're requesting like a billion rows of data, sorting may add a loooong time to your request.

Doing extra work to get an O(nlogn) operation when the lazier solution was O(n)...
Who after all is today speaking about the destruction of the Armenians?
Prev 1 288 289 290 291 292 1032 Next
Please log in or register to reply.
Live Events Refresh
CranKy Ducklings
10:00
Sea Duckling Open #140
CranKy Ducklings84
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 198
Railgan 42
Creator 14
StarCraft: Brood War
Sea 6694
Horang2 4040
GuemChi 1668
Jaedong 862
actioN 292
Mini 259
BeSt 247
Killer 230
Soma 220
EffOrt 210
[ Show more ]
Rush 169
Mind 92
Hyun 87
Bonyth 72
ToSsGirL 69
Backho 61
sas.Sziky 33
JYJ28
PianO 27
zelot 24
Aegong 14
soO 12
Terrorterran 10
Sacsri 9
sorry 9
HiyA 8
Dota 2
Gorgc6041
singsing2292
qojqva1772
Dendi596
XcaliburYe214
BananaSlamJamma90
Heroes of the Storm
Khaldor209
Other Games
B2W.Neo1194
Sick244
Lowko237
Fuzer 197
Hui .121
XaKoH 81
nookyyy 54
MindelVK19
Organizations
StarCraft 2
WardiTV622
Counter-Strike
PGL242
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• StrangeGG 67
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 2050
League of Legends
• Stunt689
• HappyZerGling113
Upcoming Events
IPSL
4h 6m
dxtr13 vs OldBoy
Napoleon vs Doodle
LAN Event
4h 6m
Lambo vs Clem
Scarlett vs TriGGeR
ByuN vs TBD
Zoun vs TBD
BSL 21
6h 6m
Gosudark vs Kyrie
Gypsy vs OyAji
UltrA vs Radley
Dandy vs Ptak
Replay Cast
9h 6m
Sparkling Tuna Cup
20h 6m
WardiTV Korean Royale
22h 6m
LAN Event
1d 1h
IPSL
1d 4h
JDConan vs WIZARD
WolFix vs Cross
BSL 21
1d 6h
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
1d 19h
[ Show More ]
Wardi Open
1d 22h
WardiTV Korean Royale
2 days
Replay Cast
3 days
Kung Fu Cup
3 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
4 days
The PondCast
4 days
RSL Revival
4 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
4 days
WardiTV Korean Royale
4 days
RSL Revival
5 days
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
5 days
CranKy Ducklings
6 days
RSL Revival
6 days
herO vs Gerald
ByuN vs SHIN
Kung Fu Cup
6 days
Liquipedia Results

Completed

BSL 21 Points
SC4ALL: StarCraft II
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
Stellar Fest: Constellation Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.