write clean code
write clean code
Falling into your wing while paragliding is called 'gift wrapping' and turns you into a dirt torpedo pic.twitter.com/oQFKsVISkI
— Mental Videos (@MentalVids) March 15, 2023
write clean code
Falling into your wing while paragliding is called 'gift wrapping' and turns you into a dirt torpedo pic.twitter.com/oQFKsVISkI
— Mental Videos (@MentalVids) March 15, 2023
"Clean your code, bucko!"
no
>wash your keyboard
*AND YOUR CODE WILL GET 15X SLOWER OR MORE WHEN YOU DO IT
>uses dynamic instead of static polymorphism
>performance goes to shit
>surprised pikachu face
You first
How would you use static polymorphism with Clean Code in the shape areas sum example?
Why would you use polymorphism for that at all? Just make a "HasArea" interface. Works in Go.
That wouldn't solve the performance problem at all. Each class would implement the Area method differently, so you're still reading a virtual table at runtime.
Avoid speaking if you don't know what you are talking about
So you don't know. Great.
You could use CRTP or visitor pattern (like std::visit). The latter is better in this case IMO.
>CRTP
Jesus. Sepples will never cease to amaze me with "this one weird trick to work around language limitations".
His videos are infantilizing, like all of "Agile (noun)"
lets start this up again
CLEAN COPE SISTERS, I DONT FEEL SO GOOD
foo in the loo
in java
unironically
https://web.archive.org/web/20110615131732/http://java.sun.com/developer/technicalArticles/Interviews/devinsight_1/
Casey says no.
I listen to industry people not some boomer that's got an academic "reputation" and "income" to protect. These are the last people on god's green earth that you should be taking advice from.
fwiw you should understand the arguments over taking advice based on credibility/reputation.
>casey
>industry
he's a professional youtuber who's never had any real accomplishments besides minor contributions to old games.
even if that was true that is still more than the boomer
And now you see why it's best to focus on the problem not the people. You quickly attract idiots like
who can't wait to gossip like like a hairdresser about someone's reputation.
The fact that he hasn't worked professionally in 10+ years is relevant to the fact that he doesn't understand concepts intended for software development done in teams...
>casey
>industry
whomst? I see he has credits on some 20 year old games like AOE3, but nothing innovative
>industry people
>popsci-equivalent youtuber "game dev"
Which industry? They have varying requirements even project to project: some lean towards bob, others towards casey, and others find a balance.
why would I. AI does that for me now
show us something that AI wrote for you anon
clean code
>write clean code
Newsflash pal. I'm a larping neet using vim on loonix because I type so fast an IDE can't keep up with all the amazing code I'm writing. I don't have time to think about what I'm writing. Gotta go fast.
The only reason I don't still write self-modifying code is because it fucks with these newfangled instruction cache things.
TL;DR: FOAD.
//hey this is anon here's my code 🙂
public static volatile final double thisMethodGetsAnAverage(final int first, final int second, final int third, int size) { //arguments 🙂
int addition = first + second;
int addition2 = addition + third;
Double average = addition2 / size;
return average;
}
public static volatile final double thisMethodGetsAnAverage(final int first, final int second, int size) { //overload!!!:)
return thisMethodGetsAnAverage(first, second, 0, 2);
}
public static volatile final double thisMethodGetsAnAverage(final int first, int size) { //extra credit overload!!! >;*~~
return thisMethodGetsAnAverage(first, 0, 0, 1);
}
//XD that's my code! Hope you enjoyed
Uncle Bob is the definition of peak midwit.
is this how old programmers look? overweight and poor?