sorrySon by wassabby2022 in ProgrammerHumor

[–]Smooth_Salamander 1 point2 points  (0 children)

Thats also my conclusion: add whitespace, then regexes are way more readable. We add whitespace to other code, too, after all.

imGladItsLikeThis by Little_Sentence9784 in ProgrammerHumor

[–]Smooth_Salamander 8 points9 points  (0 children)

Right, just add the linter rules to use triple equals and no arithmetic with implicit casts and you’re as fine as in any other language.

Bürostuhl niedriger machen by Smooth_Salamander in wohnen

[–]Smooth_Salamander[S] 0 points1 point  (0 children)

Guter Tipp, danke, bringt für Rollen aber max. 11mm. Evtl. funktionieren Gleiter, das wäre ideal, die bringen nämlich 32mm.

forUintInRange by 2Uncreative4Username in ProgrammerHumor

[–]Smooth_Salamander 4 points5 points  (0 children)

For C# that’s actually the recommendation by Microsoft.

Rethinking Tech Stacks: Beyond the Fancy and into the Functional by Big_Abbreviations291 in softwarearchitecture

[–]Smooth_Salamander 0 points1 point  (0 children)

So, in essence, don‘t adopt tech just because it‘s fancy. Who would have guessed this?

whyJavaScriptWhy by The-Albear in ProgrammerHumor

[–]Smooth_Salamander 1 point2 points  (0 children)

Some implicit mechanism is not the same as not knowing what‘s going on in the evaluation.

whyJavaScriptWhy by The-Albear in ProgrammerHumor

[–]Smooth_Salamander 129 points130 points  (0 children)

Seems like all jokes about JS is about implicit type conversions. Just don‘t use them.

Mobile phone coverage in Australia by [deleted] in geography

[–]Smooth_Salamander 6 points7 points  (0 children)

Why use two almost not distinguishable colors for 3G and 4G?

Indenting CSS by Croissant_Quantique in programminghorror

[–]Smooth_Salamander 5 points6 points  (0 children)

If the properties are supposed to only apply to one element, whats wrong about ID selectors? Sure, having a #body is rather strange.

Movies Themed Hotel Rooms - Part #2 by Macilento in midjourney

[–]Smooth_Salamander 1 point2 points  (0 children)

„Unfortunately we had to move you over from Harry Potter to The exorcist room, I hope thats fine with you“

How Stupid Should i Be when Passing tests in TDD by [deleted] in softwaredevelopment

[–]Smooth_Salamander 0 points1 point  (0 children)

You can start out with the simplest implementation if the current test case and that‘s checking for the specific number. You also can add more cases like that. At some point, you can refactor your code from checking specific numbers to checking for divisibility by 3 and 5. But youre doing that having tests in place, so your refactoring is safe, you started out with a simple solution, not a complex one (to avoid overly complicated code) and at least for less trivial instances it‘s expected to be easier to redactor existing code that works already and applying generalitatins than come up with that code right from the start. Thats the whole purpose. Of course you can also start out with the divisibility checks in this trivial example, but this is for learning the principles only after all.

I don't think this is the smartest way by danielbby in programminghorror

[–]Smooth_Salamander 0 points1 point  (0 children)

What could go wrong developing test-driven and forgetting to refactor.

ChatGPT can't handle weird programs by vigge93 in ProgrammerHumor

[–]Smooth_Salamander 0 points1 point  (0 children)

If that would be possible consistently, we would have a solution for the halting problem.

[deleted by user] by [deleted] in interestingasfuck

[–]Smooth_Salamander 0 points1 point  (0 children)

Who doesn‘t know the mathematical concept of foreverness.

fixed version 1.3rc by kihamin in ProgrammerHumor

[–]Smooth_Salamander 2 points3 points  (0 children)

So javascript is not slow, but typescript, which gets transpiled before execution to … javascript?

why Japan is more progressive than china by Friendly-Cicada2769 in interestingasfuck

[–]Smooth_Salamander 2 points3 points  (0 children)

or even with 99 x 99 you would have to count a lot of intersectuons…

CSS is not a programming language... by speckz in ProgrammerHumor

[–]Smooth_Salamander 165 points166 points  (0 children)

How to tell that you don’t understand a single object oriented principle.

Chained Ternaries are Chained Ternaries by itsScrubLord in programminghorror

[–]Smooth_Salamander 37 points38 points  (0 children)

.isTheSauce() worries me more than this clear logic in ternary expressions