DEV Community

Cover image for What coding concept or practice seem commonly understood, but you never learned?
Ben Halpern
Ben Halpern Subscriber

Posted on

What coding concept or practice seem commonly understood, but you never learned?

Let's say you work independently and you get by, but maybe you're a little afraid that if someone were looking over your shoulder you might be exposed — even if you're a senior dev?

Latest comments (78)

Collapse
 
hello10000 profile image
a

memoization

Collapse
 
qureshi81 profile image
qureshi81

Javascript Document object model.

Collapse
 
pavelloz profile image
Paweł Kowalski

TypeScript. I fail to see a profit in obfuscating the code so much for better linting.

Collapse
 
tinussmit profile image
Tinus Smit

Unit Tests. It comes from years of inheriting code that did not follow proper OOP guidelines, and thus not easy to write tests for. When entire swaths of business logic sits behind Button1_Click in Blah.aspx.cs, then there's just no easy way to introduce testing.

I've since learned that it's easier to put such logic in a Class Library project, and I even sometimes just have an additional Console Application that references it and I can easily step through without all the manual steps of the UI. I understand the concept, but I just don't have the practical experience 😅

Collapse
 
oricohen profile image
OriCohen05

Meaning of pseudo code

Collapse
 
marcello_h profile image
Marcelloh

invented to make something complex more understandable without the burden of being totally syntactically correct.

if I would write a part in real code, and make one typo, probl. 50% of the people is complaining about "it doesn't compile" instead of getting the idea behind it.

Collapse
 
rajvirsingh1313 profile image
Rajvir Singh

Design Patterns, they are little hard to understand but when you understand them. It is like when you have hammer everything looks like a nail.

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

10 years on... SQL 😱 please don't tell anyone

Collapse
 
maxart2501 profile image
Massimo Artizzu

Big-O notation.
I didn't graduate in CS, so I never had the chance to learn it academically. And while I could have taken some time to learn it on my own, in my everyday job it's not really that important to aim for the best performance.

It's not like I couldn't see common performance pitfalls, mind you. But if you ask me to compute the big-O value of a function, it's very possible I could be wrong.

And sometimes it bit me when doing Advent of code challenges.

Collapse
 
highcenburg profile image
Vicente G. Reyes

CSS and ReactJS in general 😆

Collapse
 
dagr8 profile image
DAGr8 • Edited

Favorite thread ever