3 ms·
How do y’all find out how to do things in Zig? The documentation as it currently exists is very brain dumpy (which makes sense, as the language is still young),
by 1f60c 4y ago
How do y’all find out how to do things in Zig? The documentation as it currently exists is very brain dumpy (which makes sense, as the language is still young), so it’s hard for me to find exactly what I’m looking for.
- deleted 4y ago[deleted]
- modernerd 4y agoThe Zig Programming Language Discord has a zig-help channel that's pretty responsive if you're ok with Discord. The archive is searchable. https://github.com/ziglang/zig/wiki/Community#discord-english https://github.com/ziglang/zig/wiki/Community#discord-englis.... GitHub's code search beta is a good way to find out how other people are doing things with Zig, if you have access to it. For example: https://cs.github.com/?scopeName=All+repos&scope=&q=http+path%3A*.zig https://cs.github.com/?scopeName=All+repos&scope=&q=http+pat... Some less-known walkthroughs for those new to Zig but comfortable in other languages: - A half-hour to learn Zig: https://gist.github.com/ityonemo/769532c2017ed9143f3571e5ac104e50 https://gist.github.com/ityonemo/769532c2017ed9143f3571e5ac1... - Zig Crash Course: https://ikrima.dev/dev-notes/zig/zig-crash-course/ https://ikrima.dev/dev-notes/zig/zig-crash-course/ You can also see how other people have solved problems you might have: https://github.com/catdevnull/awesome-zig https://github.com/catdevnull/awesome-zig
- 1f60c 4y agoThank you! Note that improvements from GitHub Code Search have been integrated into the main website, which means you can do something like this: https://github.com/search?q=lang%3AZig%20%2F%22https%3F%3A%5C%2F%5C%2F%2F&type=code https://github.com/search?q=lang%3AZig%20%2F%22https%3F%3A%5...
- jeltz 4y agoI read the source code for the standard library.
- jcmoyer 4y agoReading the manual, searching the stdlib for terms related to what I'm trying to do and reading tests, searching the issue tracker, and accidentally discovering things via LSP autocomplete. For higher level concepts that aren't implemented in language (like runtime polymorphism), I try to find examples of how it's done in the stdlib and copy that.