Preferences

davidkunz
Joined 1,274 karma
DevOnDuty: https://www.youtube.com/@devonduty

GitHub: https://github.com/David-Kunz


  1. > It's in Java, but the lessons can be applied in every language.

    I can only discourage anyone from applying Java patterns all over the place. One example in JavaScript: There was a functionality that required some parameters with default values. The plain solution would have been:

        function doStuff({ x = 9, y = 10 } = {}) {  ... }
    
    
    Instead, they created a class with private properties and used the builder pattern to set them. Totally unnecessary.
  2. In JavaScript, I love the `async` keyword as it's a good indicator that something goes over the wire.
  3. One step closer to Skynet
  4. What I would love:

    - Everything locally stored in the repo: PRs, comments, issues, discussions, boards, ... - CLI first - Offline first (+ syncing) - A website for hosting/presentation

  5. jj describe -m "Good luck, Steve!"
  6. I have huge respect for Mitchell, it's impressive what he achieved.

    I agree with all the points of this article and would like to add one: Have a quick feedback loop. For me, it's really motivating to be able to make a change and quickly see the results. Many problems just vanish or become tangible to solve when you playfully modify your source code and observe the effect.

  7. It's all good, man!
  8. > there is very little point to any of this to anybody else. Don't expect some great useful guitar pedal experience.

    Yeah... He said similar things about Linux.

  9. I tried to run my project with bun - it didn't work so I gave up. Also, there needs to be a compelling reason to switch to a different ecosystem.
  10. Thank you all for these great and detailed explanations, I've learned a lot! I like the approach with an optional pointer, it fits to zig's philosophy quite well. Although there's a bit of a disconnect between the unadorned error and the corresponding data struct. I could imagine it requires care when the data struct is a union, as one needs to know which error corresponds to which variant.
  11. A little bit unrelated, but how do people deal with the abstinence of payloads in zig errors? For example, when parsing a JSON string, the error `UnexpectedToken` is not very helpful. Are libraries typically designed to accept an optional input to store potential errors?
  12. I'm a bit concerned when library authors only test it with blocking Io and the consuming app with a different kind. Wouldn't this potentially lead to bugs?
  13. Thank you! I found ast-grep to be really useful, I hope more people will discover it!
  14. I wish companies would adhere to a consistent naming scheme, like <name>-<params>-<cut-off-month>.
  15. I wouldn't exclude Lua, it's a simple language whose basics you can learn pretty quickly if you know JavaScript or comparable languages. I therefore would recommend Neovim.
  16. Maybe if you can't precisely model your structure with (OpenAI's subset of) JSON schema.
  17. Nothing new, we've been doing it like that for ages here in Germany. But it's a cool Hamburger phone.
  18. The title is a bit misleading and readers might think he didn't know how to open files in C++. This is not the case, see https://x.com/Deor/status/1815563936671867315
  19. I look forward to the day when Germany ends the use of fax machines.
  20. Like in video games: Show the door before the key.
  21. Advertisers: Great for product placement.
  22. It doesn't yet have a plugin system but they're thinking of adding one for the Steel programming language (a lisp).

    https://github.com/mattwparas/steel

  23. I bet Sora can "run" Doom.

This user hasn’t submitted anything.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal