Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
donuts236724y@N00bPancakes there's no math... Just that don't write shitty code and expect it to run fast forever and then ask why?
-
Root797734yAgreed.
I especially hate this in the Ruby world because it makes writing O(n^2) complexity (and worse) so very easy. -
Database is mostly set theory.
When I throw 5 marbles at you and you need to sort by pain, you don't like it but it's fine.
When I throw 5.000.000 marbles at you... Well. My throwing arm would rip off and you wouldn't be fine.
- Resultset for dummies - -
Root797734y@IntrusionCM I can think of a lot of people I would happily throw 5,000,000 marbles at.
-
donuts236724y@Root @IntrusionCM why marbles and not baseballs?
How do you even throw a marble... Usually need to shoot them otherwise weak? -
Root797734y@donuts
Marble: 0-8 damage
Baseball: 0-55 damage
5,000,000*rand(8) might be less than the baseballs’ cap, but it’s still going to hurt. A lot.
Reminded again why every professional developer should at least read and understand basic algorithms...
Colleague: I don't understand why this agregation query is so slow, the counting is on the DB.
This function used to work fine... Now it sometimes hangs.
Me thinking: why does everyone assume db has unlimited resources and computing power so everything should be quick (no time or space complexity)...
Maybe if everyone understood this stuff our code base wouldn't be so shitty from the start...
rant