this post was submitted on 29 Nov 2023
87 points (93.1% liked)

Programming

16947 readers
555 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
 

CODEBASE COMPLEXITY: LESSONS LEARNED Dumb, readable code is infinitely better than clever.

Don’t listen to vendors blaming the hardware and recommending expensive server upgrades.

Be aware of the danger of shortcuts and the importance of understanding how code works under the hood.

Opening and closing a database connection is a slow and expensive operation.

Consider the potential risks and implications when installing new npm modules or importing someone else’s code.

Beware of teammates who refactor code based on personal taste without proper documentation or completeness.

Ensure code changes are well-documented.

Be cautious of colleagues who make undocumented changes that create subtle traps for others.

Improve the code review processes to address flaws.

Acknowledge that even big companies like Facebook can make mistakes, as seen in their DNS record issue on October 4, 2021.

Don’t ever be the guy who accidentally breaks something on prod.

Broken code is fixable. People, now, that’s another story.

you are viewing a single comment's thread
view the rest of the comments
[–] LadyLeeLoosh 8 points 9 months ago (2 children)

“There are only two kinds of programming languages: the ones people complain about and the ones nobody uses.” This is a famous quote attributed to Bjarne Stroustrup, the creator of C++.

[–] [email protected] 6 points 9 months ago (1 children)

Well, technically I didn't complain about a programming language, but an abuse of it.

I like C/C++ !

[–] LadyLeeLoosh 1 points 9 months ago (1 children)
[–] leggettc18 1 points 9 months ago (1 children)

Same here, might just be because I learned with Object Oriented languages but C++ syntax just gels well with how I think. That could just be autism though.

[–] [email protected] 2 points 9 months ago

I dunno if it's autism since I despise C++ lmao

[–] [email protected] 2 points 9 months ago

I don't use C++ and I complain about it all the time. Never have I had a project that couldn't be completed in equal or better accuracy in something other than C++, and the amount of development time it adds on just to use the damn thing is prohibitive. Let alone fast compilation for iterative design, or reduction in boilerplate. I feel the only thing C++ has is seniority and a smidgen of performance, and performance is rapidly being approached or exceeded by projects like rust.

I think there are two types of programming languages:

Good ones that are expressive and readable, like you need from a language.

And

Things that sorely need replacement.

Sorry, I just really fucking hate that quote. It's so pretentious and stupid, and doesn't allow for the development of anything new unless people don't like it. Programmers are surprisingly conservative.