▲ 63 ▼ What's the most fun programming language to learn? (piefed.ca) submitted 9 months ago by ageedizzle@piefed.ca to c/learn_programming@programming.dev 131 comments fedilink hide all child comments
[+] ageedizzle@piefed.ca [S] 3 points 9 months ago (2 children) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] orclev@lemmy.world 1 point 9 months ago (1 child) See also the closely related concept of code smells. These are things that aren't necessarily wrong like anti-patterns are because in certain niche cases or in limited amounts they're fine, but they're often an indicator that you're doing something wrong in your code. As a quick example I looked up some code smells in JS and a couple of the examples were using == instead of === and having deeply nested/indented code (E.G. have if blocks inside of if blocks inside of if blocks inside of a for loop). permalink fedilink source parent hideshow 1 child comment load more comments (1 reply)
[–] orclev@lemmy.world 1 point 9 months ago (1 child) See also the closely related concept of code smells. These are things that aren't necessarily wrong like anti-patterns are because in certain niche cases or in limited amounts they're fine, but they're often an indicator that you're doing something wrong in your code. As a quick example I looked up some code smells in JS and a couple of the examples were using == instead of === and having deeply nested/indented code (E.G. have if blocks inside of if blocks inside of if blocks inside of a for loop). permalink fedilink source parent hideshow 1 child comment load more comments (1 reply)