Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dgb23
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
53 ms
·
781.
▲
by
dgb23
3y ago
I like to go in the other direction: Write the raw SQL and then generate the boilerplate from that. This has very few surprises because it’s a bottom up approach. And even better: you can do the exact same thing by hand. There’s tools/
782.
▲
by
dgb23
3y ago
Yes it’s easy to go overboard with it. I don’t have a clear recipe for which parts it makes sense, except that it emerges from hand written code.
783.
▲
by
dgb23
3y ago
I’ve become a fan of code generation (data driven). The benefits: you write code faster, automatically uniform and the result is “dumb” and less abstract AKA easy to debug and modify. Tedium/boilerplate is gone, you focus in the overal
784.
▲
by
dgb23
3y ago
You can absolutely do this in Go. In a webserver you panic and recover your goroutines for 500’s or other failures that you deem invalid states. There’s a qualitative difference between what we call 500 errors or 400 errors and it’s a good
785.
▲
by
dgb23
3y ago
After they introduced generics I immediately wrote a generic Must function that returns the thing or panics. There’s plenty of (pre generics) Must functions in the std lib that fo this.
786.
▲
by
dgb23
3y ago
Thank you for explaining this perspective. There’s for sure a balance here between playful education and actual, invested debate. I was leaning too much on the latter, but the former is just as valuable.
787.
▲
by
dgb23
3y ago
This article reads like satire. The prerogative of the young is to question the status quo in fundamental ways. They aren’t yet restricted by responsibility and dependents. They haven’t become numb yet. Let them be sharp and radical. Does t
788.
▲
by
dgb23
3y ago
I like drinking a beer or two sometimes during the week. It’s tasty, cool and calming. Alcohol free beer is great for that. However most alcohol free beers don’t taste nice. Takes a bit of shopping around to find a brand that doesn’t taste
789.
▲
by
dgb23
3y ago
Ecosystem churn and exposing more issues to python contradicts this. The whole point of using languages like python, js etc. is to not worry about whole classes of problems and intricacies. There are modern languages with great tooling like
790.
▲
by
dgb23
3y ago
Boredom can be a great breeding ground for creativity.
791.
▲
by
dgb23
3y ago
It seems to me that everything which broadcasts/asserts routing decisions in a network (any layer) is deceptively simple and potentially dangerous.
792.
▲
by
dgb23
3y ago
As for the last point: Check out the author’s blog. She’s a real hacker and can convey technical things in friendly and simple terms.
793.
▲
by
dgb23
3y ago
I don’t know Ruby but I’ve been a huge fan of Lisp macros (Clojure). As with all abstraction mechanisms, you avoid them until you need them. When you do need them, they become a force multiplier. A lot of macros can be avoided with data dri
794.
▲
by
dgb23
3y ago
Aside: Why isn't there a payment protocol standard that's implemented in browsers?
795.
▲
by
dgb23
3y ago
I don't think it's JSX but pure JS. They seem to be using tagged template literals (like lit-html does). They are essentially functions. https://developer.mozilla.org/en-US/docs/Web/JavaScript/R
796.
▲
by
dgb23
3y ago
It's said mostly by people who let others make technical decisions for them. Others being either their bosses or the main stream.
797.
▲
by
dgb23
3y ago
It’s likely that your question was worthy, especially if it required effort to answer.
798.
▲
by
dgb23
3y ago
Twitter has recently added monetary incentives to create “engagement”. I assume that there will be a decline in quality. It will become an interesting case study.
799.
▲
by
dgb23
3y ago
Elon Musk is either a genius or a fool. I don't understand business decisions at that scale nor am I not smart enough to know which one he is. Only time will tell. But to me this seems tacky. The comments (on Twitter) that are positive
800.
▲
by
dgb23
3y ago
It’s interesting that your definitions of complexity and simplicity are very different from Hickeys. In “Simple made easy” he defines complexity as entanglement and simplicity as the opposite of that. A proper union Option = T|None, is simp
801.
▲
by
dgb23
3y ago
Projects like this (there’s also a Python variation) are the best examples of the difference in expressiveness.
802.
▲
by
dgb23
3y ago
Are they trying really hard to shoot themselves in the foot? Google needs to stop this bullshit start innovating again. First AMP, now this? Leave the web alone! Where's the Google that makes great web applications with simple, great U
803.
▲
by
dgb23
3y ago
You mean rhetoric?
804.
▲
by
dgb23
3y ago
Not more than a couple of months ago people would recommend actix. There is a lot of enthusiasm and excitement behind the language and the ecosystem reflects that, for better or worse.
805.
▲
by
dgb23
3y ago
I agree, plenty of technically interesting projects don’t get discussion on hn. There’s always a bit of luck and context involved.
806.
▲
by
dgb23
3y ago
apply eval
807.
▲
by
dgb23
3y ago
You can just use their templating library lit-html (I have in several projects now) and manage events and state yourself. It's extremely convenient and lightweight.
808.
▲
by
dgb23
3y ago
I haven't used Lit yet, but have used lit-html standalone professionally for some projects. (lit-html is a very small, very performant library and the templating solution for Lit). I'm very happy with it. I don't have a use-c
809.
▲
by
dgb23
3y ago
Since you're self taught as well: there's an exceptionally great book (available online for free) Crafting Interpreters. It's entirely project based, but you learn so much from it because it explains the concepts along the wa
810.
▲
by
dgb23
3y ago
It's like learning from docs examples (guides), tutorials, stack overflow questions etc. But on steroids. We all have learned this way and still do when we quickly want to grasp the surface level. There's nothing wrong with that.
More ›