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
-
TeachMeCode517079dOoooh let me write one!!!
Title: Why You shouldn’t use if’s
I bet we’ve all come across this statement! After all it’s been a staple in coding:
if(condition){//yadda}
But what if I told you that you’re making an absolute mess and making your code unmaintainable.
(INSERT WHAT IF I TOLD YOU MEME FROM THE MATRIX)
That’s right! If statements are EVIL!!
So if you ever come across them, make sure you shoot a 1000 file PR with your refactorings using functional programming with a combination of ternaries and react modules imported from if.js to teach those other colleagues who want to skin you alive a lesson. Bc the cost of an unmaintainable code base far exceeds the cost of my big brained refactor. That’s what my computer science professor taught me. -
TeachMeCode517079dMedium Bio: TeachMeCode is a senior intern at Dripton University For Tech. When he’s not hackin it, he’s playing wiffleball, wiggleball, maintaining his Pokédex app, and winning contests for sticking the most amount of pineapples up his rectum
-
lastNick57779dI always check bugmenot.com if someone already shared matching login credentials instead of creating an account.
-
retoor1139478d@TeachMeCode I UNTRODUCE YOU MY INVENTION THAT CAN BE APPLIED TO C (and other languages) WITH BACKWARDS COMPATIBILITY:
while(a){
}else while(b) {
}else while(c) {
}
I had a genuine use case for it in a parser! I tried with some guys to create a C macro for it but we all failed.
But i was very proud of it! I invented a improvement for C that fits C's simplexity!
Medium: Create account to view full story
Me: Ok, let me create the account
Medium: Upgrade to read full story
Holy fuck, I hate the internet
rant