Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
grumblingdev
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
grumblingdev
3y ago
`Bun.build` is a game-changer. They key is it is a fast and simple bundling _primitive_. You can use it to write your own `webpack-dev-server`, you can spin up 10 of them in parallel or series, with one api call. And it's only going to
62.
▲
by
grumblingdev
3y ago
100%. People get so intimidated by these huge frameworks and get FOMO, that they never try to build something from scratch. React seems simple, but if you tried to understand what is going on under the hood it would take you months. Simple
63.
▲
by
grumblingdev
3y ago
The cpp ecosystem is insane. I don't know how it got so out of hand. At the end of the day you are just a running a bunch of clang/gcc cli commands. It's really, really, really simple. But all these commands are generated, an
64.
▲
by
grumblingdev
3y ago
SQL not so good for tree structures. Recursive CTEs are pretty gnarly. Graphdb would be ideal.
65.
▲
by
grumblingdev
3y ago
I'm thinking just like Zuck decided to personally hunt and kill every animal he ate, I shall build from source and install every package I use.
66.
▲
Tell HN: The terminal shell is a nightmare
1 points
by
grumblingdev
3y ago
|
4 comments
67.
▲
by
grumblingdev
3y ago
STM provide the most garbage source code ever. I've never seen more of an abomination in my life than the STM32Cube.
68.
▲
by
grumblingdev
3y ago
Just started getting into Lisp. I realized that when I call a bunch of functions one after the other, I want to be able to reference them. I would have to put them in an array. Then I thought why do I have to make this choice case by case.
69.
▲
by
grumblingdev
3y ago
The Atom editor was JavaScript + Electron same as VSCode. You could configure everything a lot more than VSCode IIRC. I was very excited initially. But I think perf issues did it in from this design choice. I'm keen to explore Emacs mo
70.
▲
by
grumblingdev
3y ago
I guess they could have implemented some of the flags as aliases or rather bash functions to a preset chain of invocations. The merging of flags would be difficult though. There are many flags that change the behavior of the file system cal
71.
▲
by
grumblingdev
3y ago
I mean people still use `ls` everyday so it in fact did win. We have super rich GUIs, REPLs, the start menu, live programming environments and notebooks, web browser file listing capability, the ability to build your own web app to list fil
72.
▲
by
grumblingdev
3y ago
> My copy of `ls` has at least 40 flags Good point. You have to hand it to them though, that shell commands are still the least-typing way to do something compared to every programming language out there. Like if you gave the user an alw
73.
▲
by
grumblingdev
3y ago
Usually tooling related. I don't know what language you can pick today that is not a complete shit-show for dependency management.
74.
▲
by
grumblingdev
3y ago
I would prefer "end-to-end debuggable...". The biggest casualty of the web-scale era.
75.
▲
by
grumblingdev
3y ago
> "How to organize software" I have recently had the thought that this is mostly what software architecture is...at some level. It's about where we draw the boundaries around code to make it easy for humans to understand.
76.
▲
by
grumblingdev
3y ago
Great repo. I've always wanted to build a transpiler from TS to every other language. We have so many languages but all syntax is so similar in the end. I often wonder how much of the code we write is actually doing something not possi
77.
▲
by
grumblingdev
3y ago
JS also kills Python for inline functions thanks to hoisting. It's much easier to follow the control flow with hoisting. I see `run()` being called, and then I want to know what it is. In other languages you are usually seeing a huge b
78.
▲
by
grumblingdev
3y ago
I listen to so much of this stuff. It's super annoying. I just want 10hr mixes. I want an app that just does this and nothing else that is not terrible.
79.
▲
by
grumblingdev
3y ago
Interesting, didn't know about single-method-interfaces. There are lots of singletons in OO. I find it useful to add static metadata (not state) to them, without having to escalate them to a class. I guess Java has decorators for the s
80.
▲
by
grumblingdev
3y ago
TypeScript is an incredible language in general. The fact that Functions are Objects that can have properties/methods is supremely undervalued. Are there other languages that do this so nicely? It's the perfect blend of OO and fun
81.
▲
by
grumblingdev
3y ago
It's funny that its satirical, but I could make an argument why every point is actually a good thing.
82.
▲
by
grumblingdev
3y ago
Oh yes, I'm super interested in this space too. Really waiting for one of these ideas to breakthrough to mainstream.
83.
▲
by
grumblingdev
3y ago
It's interesting. I've gone the other direction. Everything as functions. I've realized that things always need to change in unexpected ways. Objects are sticky, people just cram stuff into them instead of re-thinking the hie
84.
▲
by
grumblingdev
3y ago
> It’s typical to listen to this stream of events and use chained if-else statements to determine an action based on the type of the events that occur. You'd think something like directory watching would have a clear set of events t
85.
▲
by
grumblingdev
3y ago
> Bundling behavior together means the behavior is out of the control of the object; the object's identity now becomes a critical part of the operation being performed. IMO, putting the focus on behavior is the wrong approach here.
86.
▲
by
grumblingdev
3y ago
Basic functional programming concepts are good, but it can easily go off the rails when people take it too far.
87.
▲
by
grumblingdev
3y ago
It took me a long time to realize that I actually prefer not using classes. It's the small things in programming that can make a huge difference. It always felt like I should be using the C++ way because it was slightly dry-er and look
88.
▲
by
grumblingdev
4y ago
Transpilation. Imagine if TypeScript/JSX was available native in the browser requiring no transpilation step, and we dropped support for any package requiring some exotic transpilation. You could easily step through your entire codebas
89.
▲
by
grumblingdev
4y ago
> There's no meaningful in-between. Completely disagree. I believe it will come eventually. Check out AssemblyScript for example. People choose TypeScript because it's simple and easy. They choose Rust because they need the fea
90.
▲
by
grumblingdev
4y ago
> This is why Objective-C looks so bizarre Interesting point, hadn't thought about this before. > TS doesn't have syntax for value vs reference types or memory ownership/lifetimes...if you kept the syntax similar to TS,
More ›