News for hackers. Stuff that matters.

pionaryon

Re:Programmers want flow. when programming, light turns RED on Monday December 16, 2024 @03:06AM (#42428968)
The worst time to break my flow is when I'm debugging.
Re:Why Dumb TVs Deserve a Comeback on Monday December 16, 2024 @02:59AM (#42428925)
Really? They've been working hard on a mass surveillance legislation (which would outlaw encryption) for a couple years now, it was thankfully voted down in 2023 because of a successful public outcry, but that didn't stop these gestapo assholes, they're gonna "reword it" and keep pushing it and eventually the public will have fatigued and stopped caring and it will go through.
Re:I replaced my son's school timetable app with an e-paper on Monday December 16, 2024 @02:39AM (#42428835)
And programmers back in the day managed just fine with punch cards...
You can get pretty far with keeping sharing to an absolute minimum and when you do need to share data, slap a lock free ringbuffer between them to communicate. Pretty simple to get right.
You can suppress function like macros by using parenthesis because function like macro expansion is literally defined as "name directly followed by open paren".

  #define foo(x) something
  void foo(int a) {} // doesn't work
  void (foo)(int a) {} // does work because 'foo)' can never be a function macro