304 karma · joined Oct 12, 2022 (4y ago) · 77 submissions
comment 1y ago · link · parent
State manager isn't there yet, but it's coming.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
Note that with this approach you don't need to "render" anything, browser already done it for you. You merely attaching functionality to DOM elements in the form of Component instances.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
* unit tests anywhere, so I usually write my methods/functions with unit tests following them immediately
* blocks like version(unittest) {} makes it easy to exclude/include things that should only be compiled for testing
* enums, unions, asserts, contract programming are all great
I would say I didn't have to learn D much. Whatever I wanted to do with it, I would find in its docs or asked ChatGPT and there would always be a very nice way to do things.
comment 1y ago · link · parent
comment 1y ago · link · parent
I really dislike this for headers, but also, this marker is only valid inside code blocks and is optional.
> How do you specify the language for code blocks so they can be syntax highlighted?
See above, with ###Go and then add Prism.js into your document.
comment 1y ago · link · parent
46.
Show HN: Cleaner Markdown lang and static site generator (Shrimple)(qount25.dev ↗)
3 points · by usrbinenv · 1y ago · 7 comments
47.
Standardization limits the highest performers [video](youtube.com ↗)
1 points · by usrbinenv · 1y ago · discuss
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
Questions such as
> why does it not have parentheses around it but the `", "` passed to `join` does?
would be exactly the same for JavaScript, Go or D. Ruby has the best syntax with regards to blocks/lambdas/closures.
comment 1y ago · link · parent
comment 1y ago · link · parent
Examples:
* Python preferred over Ruby
* TypeScript preferred over Dart or even JavaScript (which is fine and, as a bonus, doesn't require compilation step like TS)
* Go is preferred over Crystal and D.
While Python, TypeScript and Go are quite alright, there is no doubt in my mind that their alternatives are absolutely superior as languages. Yes, in case of Dart, Crystal and D the ecosystem doesn't have the abundance of well-tested libraries, but as languages they are simply better. The Go argument that it's popular because it's simpler is absurd in the sense that no one really forces you to write complex code and use classes or other advanced OOP features in D.comment 1y ago · link · parent
comment 1y ago · link · parent
Btw, in your particular example, I think it's fair to tell them "yes, I have the exact qualifications you're looking for", because they won't be able to check anyway. And certainly not whether you had 4 or 5 years of experience with a particular thing.