News for hackers. Stuff that matters.
Re:What is your favorite C programming trick? (2009) by matvore on Sunday November 22, 2020 @09:44PM (#25183124)

  > The best C programming trick is to use no tricks.
Yes! C's monotony is its killer feature. Take away power when you are coding and you have more power to share the code and debug it.
Re:What is your favorite C programming trick? (2009) by alexvoda on Monday November 23, 2020 @04:57AM (#25185150)
I agree wholeheartedly. I may be called a hater and I may be raining on everyone's parade, but I opened this thread expecting to find horrors and I did (plenty of metaprogramming).

The very notion of there being tricks and that knowing them makes you better is something I hate about C and C++. Most tricks I read here are bandaids over usability issues the languages have. Yes, they alleviate an issue but may introduce unexpected consequences and distance your dialect from the rest of the community.

I am so very thankful that C and C++ are no longer the only options for low level, non garbage collected programming.

Re:What is your favorite C programming trick? (2009) by zro on Monday November 23, 2020 @04:09PM (#25191937)
As an embedded C developer, I'm interested. What do you recommend looking into as other "low level, non garbage collected" options?
Re:What is your favorite C programming trick? (2009) by matvore on Tuesday November 24, 2020 @08:56AM (#25198416)
I imagine they are referring to Rust.