Details
-
AboutStrive and Prosper
-
SkillsPython & C
-
LocationSan Francisco
-
Website
Joined devRant on 12/6/2016
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
-
Fuck you, devs who quote Knuth:
"Premature optimization is the root of all evil"
I agree with the spirit of the quote. I agree that long-winded arguments comparing microsecond differences in performance between looping or matching constructs in a language syntax is almost always nonsense. Slightly slower code can even be preferable if it's significantly clearer, safer and easier to maintain.
But, two fucking points need to be made to you lazy quickfix hipsters trying to sell your undercooked spaghetti code as "al dente", just fucking admit that you had no clue what you were doing.
So here we go:
1. If you write neat correct code in one go, you don't need to spend time to optimize it. Takes time to learn the right patterns, but will save you time during the rest of your career.
2. If you quote Knuth, at least provide the context: "We should forget about small efficiencies, say about 97% of the time [...] Yet we should not pass up our opportunities in that critical 3%"
YES THAT CRITICAL 3% IS WHERE YOU MESSED UP.
I'll forgive you for disgorging your codevomit into this silly PR.
BUT YOU'RE QUOTING KNUTH IN YOUR DEFENSE?
Premature optimization is the root of all evil... 6300 SQL queries to show a little aggregate graph on the dashboard... HE WOULD FUCKING SLAP YOUR KEYBOARD IN HALF IN YOUR FACE.3 -
Customer: I have installed Windows on my computer
Support: Yes, and ?
C: And I have problem now...
S: You already said that.11 -
How it should be:
- First: solve the problem
- Second: Write your code.
How many people do:
- First: Write code
- Second: solve code problems
- Third: Adapt code with requirements
- Forth: get lost on your spaghetti code
- Sixth: make a suicide8 -
So I'm doing my thing... Suddenly all open windows start closing one by one and computer starts a shut down.. and i realize the windows update is coming..
But like.. can you at least give me a 2 minutes heads up? How the fuck such a process gets approved in microsoft?
"Yeah just close everything and force restart.. it's fine"14 -
Interviewer: Alright, so tell me what you like about software, but you don't have to limit it to software you can talk about hardware too. But yes what do you like about software?
Me:6 -
Co-worker: I need a proxy to do this task.
Me: Why do you need a proxy?
Co-worker: So all these reviews for the company I'm posting don't look sketchy.
Me: Download the TOR browser.
Co-worker: That's kinda sketchy I don't wanna do that.
So falsifying information about the company is okay, but using a browser to do it anonymously is right out.1 -
!Rant
The biggest face palm moment in my life..
A girl in my class came up with an app idea. She wanted to make an app using which we can transfer our battery charge using Bluetooth. We initially thought it was a joke, then she went out to defend herself saying "if we can transfer files why not charge? If you're in an emergency and your battery almost drains out, wouldn't you feel nice if your friend could quickly transfer you 30% charge?"
Liked it, then give me a ++ via Bluetooth...
😂😂😂20