Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
smarkov
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
1.
▲
by
smarkov
2mo ago
Maybe you love being the consumer of RSS feeds, but you certainly wouldn't love being the poor bastard who has to parse them. Even though it's a simple standard that's been around for decades, there are still many sites which
2.
▲
by
smarkov
1y ago
I never said that PHP was universally used, just that it has answers to most problems. jQuery has become obsolete these days because the problems it solves have largely been solved by additions to JS, but the interactivity of websites has c
3.
▲
by
smarkov
1y ago
People like to hate on PHP, but PHP provides you with all the tools you need to write a fully working backend, where as JS provides you with half-assed solutions for writing frontend, which is why we have 1000 frameworks and we still can&#x
4.
▲
by
smarkov
2y ago
Because it's been trendy to introduce a new unintuitive syntax with every new CSS feature. I am genuinely afraid for the future of CSS as it is becoming increasingly more complex, meanwhile most people haven't been able to properl
5.
▲
by
smarkov
2y ago
Remember when we used to be called "web developers"? We then became "software engineers", but forgot the meaning of the word engineer: > Engineering is the practice of using natural science, mathematics, and the engin
6.
▲
by
smarkov
2y ago
I get the potential appeal in having a single language do all things, but in practice the front-end and back-end have vastly different jobs and different capabilities, so I see no issue in them being different languages and letting them uti
7.
▲
by
smarkov
2y ago
I'd love to, but I don't really have a choice at the moment. Maybe I'm just at the wrong place at the wrong time, but as a software engineer I don't feel like I'm doing any actual engineering and solving meaningful
8.
▲
by
smarkov
2y ago
> People have a right to build substitutes and replacements -- I believe in the "Let a hundred flowers bloom" philosopy. It's a blessing and a curse. Look at package managers, they more or less all do the same thing, with
9.
▲
by
smarkov
2y ago
> `ctx.Value` is an `any -> any` kv store that does not come with any documentation, type checking for which key and value should be available. On a similar note, this is also why I highly dislike struct tags. They're string magi
10.
▲
by
smarkov
2y ago
I highly recommend Josh's guide: https://www.joshwcomeau.com/css/interactive-guide-to-flexbox... It goes over more advanced gotchas and tips in detail such as flex-basis, auto margins, min-width, etc.
11.
▲
by
smarkov
2y ago
Huh, I've heard about this for a while but for some reason thought it was strictly regarding phones, maybe because they've been making the biggest headlines about it. Looking forward to it then.
12.
▲
by
smarkov
2y ago
It's not my area of expertise so I might just be delusional here, but from my understanding phones are difficult to make waterproof if they had replaceable batteries because they require a massive lid that spans across the entire phone
13.
▲
by
smarkov
2y ago
I'm not denying that there are some trade-offs, but I'm also not strictly speaking about phones here. Think electric toothbrushes, trimmers, Bluetooth speakers and the other endless amounts of electric things with rechargeable bat
14.
▲
by
smarkov
2y ago
This is a step in the right direction but still doesn't address my biggest concern with e-waste - the battery. Because almost none of the electronics you buy come with a replaceable battery, the second you buy something and use it on a
15.
▲
by
smarkov
2y ago
And it'll continue to get worse because JS devs love coming up with their own abstractions over everything and piling complexity. You don't write JS, you write TS. You don't write HTML, you write JSX. You don't write CSS
16.
▲
by
smarkov
2y ago
Of course it's not required but when you start pushing the boundaries of a language with the goal of achieving a clean interface, obscure features you wouldn't normally resort to become appealing. I dislike all of the magic around
17.
▲
by
smarkov
2y ago
> what used to be a complex blob of floats is now a simple grid layout. And what used to be relatively simple static layouts designed for a 4:3 screen are now layouts that must accommodate a screen of any arbitrary aspect ratio and physi
18.
▲
Ask HN: Those who run mainly Linux and game on Windows, what's your setup like?
9 points
by
smarkov
2y ago
|
18 comments
19.
▲
by
smarkov
2y ago
> Declaratively describe your UI, React paints it. That's it. No app state management. "that's it" does not paint the full picture. Yes, UI = function(state) is very convenient but the way React implements it inverts
20.
▲
by
smarkov
2y ago
> the matchmaker shuffles the queue to avoid the same players being matched together repeatedly This is actually something I hate about multiplayer games with matchmaking nowadays. I made the majority of my childhood friends only because
21.
▲
by
smarkov
2y ago
As someone who's struggled with starting projects from scratch multiple times over and not releasing anything for many years because it was never good enough, half-assing is not the mindset that helped me start shipping things. Rather,
22.
▲
by
smarkov
2y ago
I've been using Go's html/template for the last couple of months and all I can say is that it's still very much a toy. It's fine for basic loops and conditionals but anything beyond that is extremely limited and hav
23.
▲
by
smarkov
3y ago
> Also, VSCode is built on Electron That's not the point. The point is that it doesn't use a framework like React, Vue, etc., it instead directly creates and manipulates DOM elements, somewhat like Puter.
24.
▲
by
smarkov
3y ago
> when pieces fit together nice or can be refactored cleanly This is a trade-off that makes sense to embrace in some contexts, and I do believe that web is one of them. The more nicely your pieces fit together the harder it'll be to
25.
▲
by
smarkov
3y ago
This might be one of those things like monitor refresh rate where you can only really tell the difference if you've experienced the better version for a while, but I haven't ever felt slowed down by the speed of VS Code.
26.
▲
by
smarkov
3y ago
> It's a PHP project. It shouldn't have typing, that's for playing make-belief of writing in Java for the framework-oo-enterprise world. At least types are enforced at runtime. Wait until you learn about TypeScript.
27.
▲
by
smarkov
3y ago
AdGuard Home should by default be configured to return 0.0.0.0, you can check whether that's the case in Settings -> DNS Settings -> scroll down to Blocking Mode. I don't know about Pi Hole but it probably also has a similar
28.
▲
by
smarkov
3y ago
I believe this only works if your ad blocking DNS is configured to return 0.0.0.0 for all blocked domains rather than NXDOMAIN, since then services might try using the secondary DNS instead and that would result in nothing getting blocked.
29.
▲
by
smarkov
3y ago
What's the preferred method of limiting permissions then? Virtualization? Containerization? AppArmor?
30.
▲
by
smarkov
3y ago
I couldn't find any information but does this use some kind of LLM to derive the combinations from? It makes a request to the backend every time you combine items which sometimes takes >500ms, and also supports some really wild comb
More ›