Duralf

u/Duralf@lemmy.world
0 posts · 24 comments

Recent posts

No posts.

Recent comments

on advanced · c/programmerhumor · 10 pts · 2y

I think you missed the whole point of my comment 😂. Regardless, the time spent compiling a small snippet of code is completely negligible. In the end, both #if 0 and if (false) have their complimentary uses.

on the "good" parts · c/programmerhumor · 17 pts · 2y

The problem is everyone disagrees on what part of C++ is good... Some like C+classes. Some like intense meta programming and some like functional programming and all are valid C++ that people advocate for.

API from a call that accepted integer values between 0 and 32767 (minimum and maximum wheel speeds) to one that accepted float values between 0.0 and 1.0.

This would cause alarm bells to ring in my head for sure. If I did something like that I would make a new type that was definitely not implicitly castable to or from the old type. Definitely not a raw integer or float type.

Nybakat bröd Ă€r sĂ„ gott att det Ă€r lĂ€tt att rĂ„ka smĂ€lla i sig en halv limpa sjĂ€lv.... Du behöver kanske inte frysa in sĂ„ mycket som du tror 😀

Jobbar hemma en dag i veckan och annars pendlar jag med buss. Tar en halvtimme pÄ vart hÄll (mer om det Àr trafikolyckor vilket det ofta Àr). Helt ok tycker jag. Det Àr ganska trevligt att sitta pÄ bussen och lÀsa eller nÄgot liknande.