HN user

Induane

170 karma
Posts4
Comments127
View on HN

He has said a lot f things I agree with, and also some stuff that seems intellectually and morally bananas; particularly around gender and sexuality. There was a point something shifted and he took, imo, a darker turn. Maybe it was his wife's illness, his own addiction challenges, or perhaps he was a victim of his own success and lost too much humility.

Probably a combination of those plus factors we aren't privy to.

I don't really know how to take the measure of a man and probably I'm not qualified to. I don't think he was evil though. People are complicated and not at all black and white.

That's a good solution using existing tools, but I usually want it solved in whatever programming language is being tested. Not because command line tools aren't often an underutilized solution but because I am looking for their tendencies. Do they reach for a hashmap? Can they calculate it all in one pass? That kind of thing.

As for the why, it covers a class of issue that does come up; counting like items. Determining the frequency of things is pretty common. I run into variations on the problem a lot, even if word counting is a contrived example.

It also gives a good look at how someone might solve the "like" items - things like punctuation, casefolding, etc... - messing around with strings is something that happens all the time in the real world.

Also I might be tempted dock your shell solution for using cat unnecessarily

tr ' ' '\n' < textfile | sort | uniq -c | sort -r

Or even:

< textfile tr ' ' '\n' | sort | uniq -c | sort -r

Haha yea - my dad always had a Prius prior to his civic hybrid. Easily mixed up! Well at least for my dumbass.

That's the thing; not everything has to be or should be monetized. The thing I miss the most are the funny dumb amateur videos.

There are several YouTube channels I love; Folding Ideas, hbomberguy, Kurtis Conner, Contrapoints, etc... but I see those essentially as semi professional / professional variations on television. Once I got into their content via YouTube, YouTube of course drove me away with horrid vile ads, and I moved on to supporting those creators on Patreon.

And that's all good - the digital medium needs places like YouTube. But that doesn't mean there isn't a huge amount of value in the amateur unmonitized video landscape. Pairing those with some niche phpbb style forums was, for me, the last time I truly enjoyed the experience of actually being on the internet.

You're totally right. I was being facetious; it just seems to be what everyone is saying now and I was playing into that stereotype a bit.

That isn't to say Claude couldn't do it though.

It's funny you mention Toyota, my Dad's 2022 Civic Hybrid is the one I get to witness being buggy garbage pretty much non-stop with CarPlay. Lord don't plug it into the USB port that does data if you're already on wireless Carplay. You might be done until you pull over. I also love the way using speech to reply to a text often resumes the wrong song (seemingly just starts a random song midway through, and multiple times the Joe Rogan Podcast which dad doesn't listen to and is not subscribed to - when this happens it always starts at the same point in the intro).

I don't actually know if the Toyota infotainment setup is to blame though. Since I've never encountered a reasonably stable, glitch free Carplay experience in the last 5 years, I've always just figured "that must be how CarPlay is". I have never owned an iPhone so I only get the cliffnotes version of the experience. But since it's got a 0% track record in that limited viewing, I'm either unlucky, emit magical anti-apple em waves, or am possessed by the soul of Steve Jobs favourite black shirt.

I don't know if the sensitivity to Siri can be turned down, again not an iPhone guy myself, but it bugs me how often we will be talking and suddenly the audio stops and Siri says "I don't know how to help you with that" or something similar. Sometimes we just don't talk so that we don't constantly have Siri interrupting Hardcore History.

I have the Nothing Phone 3a now, before that, I had all flagship pixels. 0 were not slow. I always figured it had to do with the infotainment centers implementation of the protocols or simply their hardware.

It was always stable for me, just sluggish.

If I had to pick I'd take sluggish over constantly buggy of course. So props there.

The infotainment setup on my Tesla though is golden with only the occasional quirk. After using that, Carplay and Android Auto feel very regressive. A guy I work with has an R2 so I got to tinker with it and I figured it would be comparable but it actually kinda sucked.

Are there vehicles that support it in a way that isn't buggy? I have a few friends with it and I don't think I've been on a single ride with them without a glitch. Freezing interface, spontaneously jumping to regular Bluetooth, music playing but no actual volume, plugging into usb power causing some kind of mode-shift that makes the screen hang or briefly cease to work, all kinds of nonsense. Also kind of weirdly bad interface I feel (very subjective opinion there, obviously that's not a "fact").

I've only had Android Auto in my own vehicles, and while it hasn't been as buggy, it feels slow. I never use it anymore.

Fox to buy Roku 1 month ago

You'll be able to stop the signal if they add cellular data. Still annoying though.

There are a couple of things:

1. Locality of behavior - the classes are the description of the style once you know tailwind, and they live where the thing they're styling is. I can look at a template and know pretty well how it is going to look without having to go lookup a sites personal bespoke CSS and match what's written there to the markup.

2. It's the same classes as you move from project to project. I have tons of small one-off apps I maintain, all using tailwind and I don't have to figure out the custom CSS classes and their meanings. It is a knowledge set that reduces friction between projects and I really need things that reduce cognitive load like that.

3. No dead CSS. There are tools to help with this in regular CSS but I just don't have to think about it with tailwind and that's nice. I work on my templates and the CSS is updated and minifed on the fly without extra steps (or unnecessary CSS).

4. Easy to build a personal component library that doesn't also require relevant CSS to be bundles with it. For me this one is pretty great. Thanks to template engines (for me it's Django's, but Jinja or others are grand too) I have a simple place to pull components (really just template partials) and widgets I've made and they just work because the underlying classes are the same. There are some exceptions around color schemes and the like but now all my little components take a colour scheme arg and voila, no proballo.

I think the key here is that a description of the visual is embedded in the markup. That lets the actual mark-up delivered to the front-end describe pretty much the whole kit. With server-side rendering ( I use HTMX ) I can even write unittests that responses contain expected markup, including CSS classes (I built a few helper assertions that all of my test suites use) which gives me some interesting checks.

I really ultimately don't think there is one correct way to do things. The things I value may be utterly irrelevant to another developer.

I don't know; I am not sure I'm marketable in THIS particular market.

As for FastAPI bring a mistake - that's an overgeneralisation to be sure. It has it's uses.

My first issue is that it falls into the same kind of small footprint as Flask. Every Flask project I work on slowly reinvents Django via a combination of plugins of varied quality and custom code/plugins. Get some Auth plugins, build step for manifest static files, add in Jinja2, grab an ORM like SQLAlchemy (or hopefully PeeWee), a migration system, test runners with fixtures/dB integration and rollback and on and on and on.

FastAPI is operating more at that level but also adds the often unnecessary complexity of async. In Python this is a cooperative setup meaning you have to yield to the event loop yourself (otherwise despite being "async" it blocks). Plus with a webapp all async often does is let you hammer your services (i.e. dispatch more queries to your poor DB) harder. The actual performance improvements don't manifest so much at scale as people often think. Plus you end up with a whole second set of ways to call functions and... makes me pine for gevent.

There are absolutely cases for this kind of async, even in webapps, but it's often not actually that helpful in places that it's used (and doesn't actually need to be everywhere). Good development imo means picking the right tool for the job rather than jumping on hype trains.

MongoDB is webscale!!

I've been doing full-stack Dev (mostly Django though I foolishly had a brief moment where I kinda thought Flask was okay then fell for the same dumb thing briefly with FastAPI) for 20+ years and don't feel marketable.

I went from jQuery to a brief dalliance with Angular to HTMX+_HyperScript. Everyone wants full stack Devs to use react and struggle eternally with insane dependency trees and challenging client side state management.

I like to build things that can be maintained in perpetuity by small teams.

So I'm not very marketable.

It was a loaded question for sure. And when it comes to technical stuff it is often more subjective that people care to admit.

I actually find the opposite. I don't actually think either of us are wrong, it probably comes down to what we got started with. I love that in Gimp layers can have totally different canvas sizes, and I prefer it's foreground select tool.

But most of all, any comparison is going to be silly. Photoshop has lots of amazing features and in sure is better in a technical comparison to Gimp in many ways.

A lot of times the best tool for the job is the one that works great for you.