HNHacker News
TopNewBestAskShowJobs

spoiler

2,756 karma · joined January 15, 2013

Software engineer by day. Aspiring artist by night.

Also, I'm very passionate about DX and UX...

And I like long walks on the beach.

submissionscomments
spoiler··on What the hell have you built
U agree it adds a bit of complexity, but all code adds complexity.

Maybe interacted with CIs too much and it's Stockholm syndrome, but they are there to help tame and offload complexity, not just complexity for complexity'a sake

spoiler··on What the hell have you built
You're sarcastic, but heavens above, have I had some cringe interviews in my last round of interviews, and most of the absurdity came from smaller start-ups too
spoiler··on Resolution limit of the eye – how many pixels can we see?
I don't think it's actually infinit, but it's probably very high! We do have little receptors (cones) in our eyes (retina) that react chemically to light. So the density is the resolution (and different cone types react to different wavelengths, which is why some people are coloured blind, for example)!
spoiler··on Amazon confirms 14,000 job losses in corporate division
Is this one of those things that are meant to sound deep and profound by inventing terminology, but isn't? That's such a like day 2 person thing to do.

(Actually don't know if I used day 2 correctly, feels a bit like trying to use skibidi ohio in a sentence)

spoiler··on Simplify your code: Functional core, imperative shell
In my head, and the way its describe the generic and specific are swapped. The core handles a specific, pure problem. The core is generic (do you get the data via http, databases, filesystem, etc) then becomes irrelevant to the core problem
spoiler··on Simplify your code: Functional core, imperative shell
I think it's just a contrived example. They probably wanted to show more than a single thing composing in a very short post given it's from their Toilet series.

Replace it with `getUsers(filters)` or even a specialised function, and it starts making more sense.

spoiler··on Normalize.css
You described a lot of orthogonal points and highlighted your opinions, more than pointed out flaws in the article.

I use Tailwind at work at a large company, and it's... Okay. Its biggest strength is the documentation, since most companies have poorly documented style guide/component library.

I'd never use it for a personal project though. It's fine to disagree

spoiler··on Britain's most tattooed man says UK's age check told him to "remove his face"
I can't tell if it's a sarcastic joke, but just in case it isn't and you want a bit of free anxiety with your coffee: the future is now, old man!
spoiler··on Go subtleties
I know it's not exclusive to Go or any language, but you can most certainly write incomprehensible code in it. If anything, expressiveness and proper abstractions can save you from this.

I think people often get burnt by bad abstractions in expressive languages, but it's not a problem of the language, but the author's unfamiliarity with the tools at their disposal.

If someone starts being clever with abstractions before understanding the fundamentals, it can lead to badly designed abstractions.

So I guess if there's less things to master, you can start designing good abstractions sooner.

So, in my experience, if we invest time to truly understand the tools at our disposal, expressive languages tend to be a great boon to comprehension and maintenance.

But yes, there's definitely been times early in my career where I abstracted before I understood, or had to deal with other bad abstractions

spoiler··on Show HN: I'm rewriting a web server written in Rust for speed and ease of use
Yes, there's always sloppy packages, or ones that need side effects (but that's usually very rare, and sometimes even then it's because of sloppyness), but installing something via package manager comes with certain expectations (I can update it, I can uninstall it, it's usually got a few standardised places where its config lives, etc). curl|sh makes most of these things a greater nuisance rather than frictionless
spoiler··on Claude Code on the web
My experience is that if I know what I want, CC will produce better code, given I specify it correctly. The planning mode is great for this too, as we can "brainstorm" and what I have seen help a lot is if I ask questions about why it did a certain way. Often it'll figure out on its own why that's wrong, but sometimes it requires a bit of course correction.

On the other hand, last time I tried GPT-5 from Cursor, it was so disappointing. It kept getting confused while we were iterating on a plan, and I had to explain to it multiple times that it's thinking about the problem the same way. After a while I gave up, opened a new chat and gave it my own summary of the conversation (with the wrong parts removed) and then it worked fine. Maybe my initial prompt was vague, but it continually seemed to forget course corrections in that chat.

I mostly tend to use them more to save me from typing, rather than asking it to design things. Occasionally we do a more open ended discussion, but those have great variance. It seems to do better with such discussions online than within the coding tool (I've bounced maths/implementation ideas off of while writing shaders on a personal project)

spoiler··on Flowistry: An IDE plugin for Rust that focuses on relevant code
I think (some will correct me if I'm wrong) the general term for this is flow analysis, and TypeScript does it under the hood so it can refine/narrow types. Not with visualisations though
spoiler··on Tinnitus Neuromodulator
I've had tinnitus since... At least my early 20s. Or that's the first time I found out about the concept. Until that point I assumed it's background noises everyone experiences.

I only notice it when it changes abruptly (very rare), but otherwise I just tune it out

spoiler··on Bevy TLDR – Game development with Bevy summarized
Bevy is very explicit about this in its guide, though!

People made games and software in bevy despite the API flux, and the migration guidelines are really good too.

spoiler··on Let's write a macro in Rust
Eh. I agree there's complexity in them, and that a lot of the ecosystem indirectly use them because of derive macros, but I wouldn't call it a wart, and the "syntax" for writing proc macros isn't that bad if you use the syn/quote crates. I agree that decl macros usually make me sigh and open the docs though
spoiler··on Astronomers 'image' a mysterious dark object in the distant Universe
This attitude is referred to as optimistic nihilism, if anyone wants to look more into it.

I've been trying to adopt this mindset myself in recent years.

It's helped me "cope" and accept certain things about my life. It's not how my mind developed initially, so it doesn't come naturally to me and I sometimes fall into old habits. So, sometimes I need to remind myself to practice it.

Anyway, thanks for the reminder! :)

spoiler··on I switched from Htmx to Datastar
For context, I worked with large React codebases, contributed to various ecosystem libraries (a few bigger ones: react-redux, styled components, react-router). So, I'm pretty comfortable with hooks, but I still make mistakes with them if React isn't in my daily routine (different day job now, only use React occasionally for some pet projects).

I've also onboard interns and juniors onto React codebase, and there's things about React that only really make sense if you're more old-school and know how different types behave to understand why certain things are necessary.

I remember explaining to an intern why passing an inlined object as a prop was causing the component to rerender, and they asked whether that's a codebase smell... That question kinda shocked me because to me it was obvious why this happens, but it's not even a React issue directly. Howeve the fix is to write "un-javascripty" code in React. So this persons intro to JS is React and their whole understanding of JS is weirdly anchored around React now.

So I totally understand the critique of hooks. They just don't seem to be in the spirit of the language, but do work really well in spite of the language.

As someone who survived the early JS wilderness, then found refuge in jQuery, and after trying a bunch of frameworks and libraries, finally settled on React: I think React is great, but objectively parts of it suck, and it's not entirl its fault

spoiler··on Under the hood: Vec<T>
To be fair, that is just the typical Reddit (or any social media platform) experience
spoiler··on Doing Rails Wrong
Ok, but I've worked with people who are pretty good with web dev, but I guarantee you they don't know how memory gets requested from the operating system.

Like, sure it helps in some contexts, but in their context it would largely be irrelevant.

For the wast majority of people, it's fine for them to know basic tradeoffs between stdlib container types. Most web performance problems today come from misusing tools, whether container types, bad algorithms, memory leaks (and I don't think knowing how an OS manages memory would help them in JS for example), DOM pollution, or oversized assets or whatever. And my take is that that people are often too overworked to care about it, rather than lacking awareness about these things lol

On the other hand, if you're a systems engineer, then you absolutely do needs to know all of this stuff.

And I bet you they'd navigate stuff like better than a systems engineer, because that's more useful to their day to day!

spoiler··on Doing Rails Wrong
Most JSX expands to a single expression, but I guess you mean a single component? I'm not sure what controversial here. I've attached debuggers to React component many times
spoiler··on Doing Rails Wrong
Every engineer in our industry is a Cargo cultist by that definition. Including experts. Where do you draw the line? I'm sure you have one, but your line is no less arbitrary than mine or someone elses.
spoiler··on Doing Rails Wrong
And you think slapping ActiveRecord to a Ruby class doesn't hide thousands of lines of code?

Do you need a truly holistic and in-depth understand of every piece you use? How in-depth does you understanding need to be to use ActiveRecord/ActionCable/etc? What about underlying libraries? Protocols? Engine internals?

Do you need an in depth and holistic understanding of React and all its dependencies to write () => <div>Razzle Dazzle</div>? Nah, surely not

spoiler··on IKEA Catalogs 1951-2021
These are amazing! I checked a few that around the era of some of my favourite TV shows, and I can totally see the "vibe" reflected in a couple of cases.

Also, as someone who enjoys to draw/paint, these are a great source of references!

spoiler··on Canadian bill would strip internet access from 'specified persons', no warrant
I meant more generally, that the ruling/politico class is the same everywhere. They'll weaponise ideology they think will get them more votes. They're basically just wealthy and powerful reprobates playing us all for emotional fools.

As for the concentration camp thing you brought up, I know it's hollow words on the Internet, but I'm sorry that it's happening. I live in the UK and tend to avoid news halfway across the world that I can't do anything about. It tends to make my (already precarious) mental healthy worse.

As for the Twitter thing... I think Twitter (or any privately owned social media platform) is free to ban people. I think going to jail for hollow comments made on the Internet is not okay though.

But also, these things are kind of orthogonal anyway.

And for context, I'm what most people on the right would call a libtard: gay, neuro divergent, and the cherry on top is that I'm also a filthy immigrant. So it goes without saying that I strongly disagree with a lot of the stuff said by the"hard right", but silencing/cancelling people won't help improve the situation. It just breeds more contempt and leads into authoritarianism. And it makes the people in the middle question why is the other side so afraid of oppositing ideas.

Authoritarian systems are bad whether right or left leaning. I come from a country ravaged by left leaning authoritarianism that's still recovering from that aftermaths (economically, politically, etc) even if I was born after it.

The zeitgeist changes, so just because it's in my "libtard" interest right now, it doesn't mean it will always be. The left becomes right and vice versa. It's happened before, and it will happen again.

spoiler··on Canadian bill would strip internet access from 'specified persons', no warrant
tldr is "kettle calling the pot black"

Both extremes don't listen and arguments always fall on deaf ears, especially when perceived as ideologically different. Merits of the argument are irrelevant. Most don't evolve past"My dad is stronger than your dad", it just morphs into "my God is better than your god", or in more recent years "my politics/policy smarter than your policy".

The people at the top want the same thing: to remain in rule. They agree the best way is oppression, they just don't agree who the oppressors should be.

People in the middle usually all want the same thing: better lives, but can't agree which oppressors are the lesser evils

spoiler··on Show HN: Autism Simulator
There's this concept called empathy, and people can share how they experience things. We can also relate our own experiences. So, it might not be a first-hand experience, but we can put ourselves in their shoes. If we see a friend experience something, it becomes a shared experience. When our friends laugh, we laugh too. When they grieve, we grieve with them. Etc
spoiler··on Show HN: Autism Simulator
It's complicated for me. Sometimes breakfast makes me notice my digestive system, which seems to make my ADHD-adjacent traits worse. I also get IBS... Which is different from the meds constipation. So eating is difficult. Because of IBS my bowels are also unpredictable, so dosing laxatives is hard. I don't know how many of these things are caused by meds.

Then there's the energy thing. I guess if I'm in ketosis it's fine, but after not eating for a whole day it's hard to sustain the next day, but eating isn't alway worth it.

The saddest part is that junk foot and Tesco meal deal is so is somehow easier to digest. So I often eat that.

I'm trying Kefir (even though I'm lactose intolerant, but I take lactase with it) for the 10 time probably. My GP recommended it. Alas, maybe it helps.

Soooo, tldr eating yes, I love it, but it can have consequences that completely tank my productivity. And each time I have to ponder this it feels like I've done a chore but without the reward feeling of completing a chore, even though I just say there in silence for 5-15 minutes

Idk if other people are in a similar boat

spoiler··on Aphantasia and Psychedelics
I tried them and probably have apanthasia. Similar experience to the other comments: it's usually just overlaid on what I see. A few time when I closed my eyes and got taken away by music, it would give me a more "story-like" trip, but I don't specifically recall visuals.

I scored as hypophantastic, but I'm not sure if I'm skewing the results because I draw/paint too. So I'm not sure if I'm triggering some detail processing/recall function. I see nothing, but I know what I should be seeing. For a lot of the examples I could... I don't want to call it "visualise" details, but I could describe in detail what should be there, but its in fact blank. Not sure how relevant this is, but I'm also neuro divergent; some diagnosed: ADHD, severe dyslexia, occasionally migraine + auditory hallucinations, undiagnosed but obviously there is also tinnitus. Dunno if I'm also a bit on the spectrum becau I also need to take at least 2x the dose my friends do, and stuff like amphetamines have _zero_ effect on my headspace

spoiler··on Our stewardship: Where we are, what's changing and how we'll engage
I'm not a lawyer, so maybe a silly question: is it possible the software license is different from service warranty? And I guess another thing that comes to mind is that maybe they didn't mean _legal_ warranty, but something that was used colloquially?
spoiler··on UK Petition: Do not introduce Digital ID cards
I agree with what you say, but I still think people should push back on this. It shouldn't be convenient for governments to abuse their citizens.

However, a bad actor (depends on how well funded/connected they are) would still have a harder time getting information.

As for the KYC thing, right now it's mostly to ensure you're not funding terrorist/criminal enterprises (at least it was the case for one of my previous companies). The data isn't just readily available to any political party who asks for it (I guess most companies will comply under certain conditions, but the legal friction is the point I think).

← PreviousPage 4 of 34Next →