HNHacker News
TopNewBestAskShowJobs

sjamaan

564 karma · joined November 8, 2018

CHICKEN core maintainer

Personal blog: https://www.more-magic.net

submissionscomments
sjamaan··on If you succeed you will fail
> But the temptation is always to just stick to the deadline and refuse to extend it, because once you extend it once then everyone knows it isn't actually a hard deadline and the deadline will get extended again and the thing will never get released.

Personally, I've seen so many "super duper important must-meet" deadlines which in the end turned out to be completely unimportant, that I've decided long ago that I'm not gonna do any more overtime to make any deadlines.

It's quite a sobering experience as a developer to stress over making a heroic effort to meet a deadline only to see after the deadline passed that actually it wasn't really so make or break after all, and that there was plenty of time to fix the issues afterwards. It's really not worth it to abuse your body and your mind by working overtime and spending too much time in a bad posture behind a computer just to make someone else happy.

Of course, I'll still do my best (I always do), and I might even agree to moderate amounts of overtime where it's warranted (as in: not because it is necessary because of shitty planning), but I'm not putting any emotional energy into deadlines, ever again.

sjamaan··on Unicorn – A full-stack web framework for Django
If they had chosen a JS framework as part of the batteries, that framework probably would've been deprecated by now. For instance, who still builds websites with Angular or Backbone/Marionette anymore?

See also Rails, which did choose a battery quite early on: prototype.js. Well, that was a wrong decision, so they changed it to jQuery (which is now also deprecated; no idea what it supports nowadays) and also dropped their RJS templating language. Lots of breakage and churn on every major release for us poor sods who made use of such features.

sjamaan··on Show HN: Workout.lol – a web app to easily create a workout routine
"Targeted" exercises tend to be body-builder type stuff which can only really be done with light weights. Instead, bigger compound movements like squat and deadlift can be incrementally trained leading up to much, much heavier weights and they train the body as an integrated whole.

In daily life, the body is used to move with many muscle groups working together. By using a targeted exercise, you can create muscle imbalances and injury is more likely (especially stuff like tendonitis).

sjamaan··on My First Impressions of Nix
> Is it a package manager? A build system?

Nixpkg is a package manager, which uses the Nix programming language to describe dependencies and build steps. Like all package managers, it has components that could be called a "build system", but that's not its main focus.

> An operating system?

There's NixOS which is a Linux distro built on nixpkg. But you can also use Nix under other distros.

> A container platform? A sandbox?

Because nix is based on an underlying immutable store of installed packages (and doesn't rely on global system state), it is trivial to spin up a shell environment in which specific combinations of package versions are available without affecting any other shell.

This property allows it to be used as a lightweight alternative to containers, what people usually use Docker for: setting up an environment with well-known package versions that are the dependencies of your project.

As a very simple example, I've written a simple setup for running a chosen PostgreSQL version inside a directory: https://code.more-magic.net/ppq/about/. You could easily build this out by adding additional software, for example if you add Python and Django from Nixpkgs to this, you'd have a complete self-contained (or "sandboxed") dev environment.

When you're done developing on the project, you simple remove the repo and the entire environment is dropped too.

At work we use something like the above, with Java and Clojure and a whole bunch of other software, all completely self-contained. I never had to install any of it globally and didn't have to mess around with $JAVA_HOME etc.

sjamaan··on What happened after I left my software engineering career (2022)
I sent you an e-mail
sjamaan··on Ask HN: It's 2023, how do you choose between MySQL and Postgres?
Look under "Update for Postgres 12 or later", there they create a collation, an index to make use of it and then a query to make use of it:

   SELECT \* FROM users WHERE name = 'João' COLLATE ignore_accent;
sjamaan··on What happened after I left my software engineering career (2022)
I'm also considering a switch but struggle to figure out how to bridge the gap financially. How did you do it? I assume you didn't have a huge list of clients right out the gate.
sjamaan··on Go with PHP
> In a nutshell, every line of code you write this way comes loaded with a pound of irreducible, unfixable tech debt.

And worst of all, you are stuck with a shitload of churn every time a new Laravel version comes out. But this is true for Rails and CakePHP and probably many others as well. At least Django seems to be moving a bit slower and not deprecating loads of features on every release.

sjamaan··on Saying Goodbye to GitHub
> Also from my experience of trying to leave GitHub, you just end up having a couple of projects on your alternative platform, and everything else on GitHub.

> And if you want to build a community, you will quickly find out that the majority want to stick to GitHub, and leaving it can kill your projects chances of getting contributions.

That's a defeatist attitude and a self-fulfilling prophecy at the same time. As more and more people leave GitHub (hopefully not to go to the same alternative), it becomes less and less of a must-have. The reason these things are somewhat true today is because of the network effect, and it's precisely that effect which we must actively attempt to squash by leaving.

sjamaan··on Accenture would cut 19,000 jobs
Probably because a TVC that doesn't pull its weight will be let go right away. I suspect that the "economic downturn" is just an excuse to trim the fat. Also note the wording in OP: these are "non-billable corporate functions". ie middle management and such.
sjamaan··on I Added GitHub Copilot to My Toolbelt
> All of that said, the risk in the code is that it can introduce a bit of laziness in that code still needs to be very closely inspected and I suggest many won't bother.

I think this is the crux of the problem for such "generated code". It's like when you do a code review of a pull request - it's very easy to miss subtle issues. When you write the code yourself you're forced to really think things through. You will still make mistakes, granted.

But accepting generated code that you "reviewed" is like you're back in math class convincing yourself that you understood the teacher's line of reasoning and you know the material. It's when you really get down to business with your nose on the facts when you will see subtle (and not so subtle) bits where either copilot got it wrong or where you simply didn't understand some implications.

sjamaan··on Ask HN: Strategies for working with engineers that are too smart?
In my experience, a less complex but more thought-through solution often requires more time to implement. It's easy to just stick more layers onto a big ball of mud, but it takes excellence to change it such that these layers aren't necessary.
sjamaan··on Babashka is a fast-starting scripting environment for Clojure
FWIW, I work fulltime on a Clojure codebase. There are other companies who also use it (for a more well-known example Metabase). Somehow Clojure is a business-friendly Lisp, probably because of the JVM and all the enterprisey stuff that's available for it.
sjamaan··on Fake Books
Isn't the "For Dummies" series some sort of trademark? I'm amazed they didn't get sued for using the name. Crap like this devalues the rest of the "for dummies" books.
sjamaan··on Patent Trolls Inbound: Our First Lawsuit
I don't understand how this is not enough to deter patent trolls. Aren't they afraid companies (who tend to have deeper pockets than individuals anyway) will just fight the law suit and, y'know, win?
sjamaan··on The downfall of smart TVs: From promises of seamless viewing to ad tool
This puts into words a feeling I've had for a very long time, thank you!
sjamaan··on Hacker’s Delight (2012)
And Turkish Delight before that
sjamaan··on Asus Zenbook 17 Fold OLED
The Purism Librem 14 isn't half bad either. Currently using it. Love the build quality of the case, matte screen and kill switches. Quality of the built-in speakers is not that great. Keyboard is acceptable. The trackpad is nice and big.
sjamaan··on I still love PHP and JavaScript
That was my point - OP said it "culls nulls", and the pitfall is that kind of thinking - if you think of it as removing nulls and you're not mindful, you might be deleting things from the list you don't want to be deleting.
sjamaan··on I still love PHP and JavaScript
Does that only cull nulls, or also zeroes, falses and empty strings?
sjamaan··on Coding as a greybeard
If you only care to "move fast and break things" with the sole goal of getting acquired, none of that matters.
sjamaan··on Dutch schools must stop using Google's email and cloud due to privacy concerns
If self hosting is not an option, there are European mail providers, who must be GDPR compliant. The biggest one being ProtonMail.
sjamaan··on Glassdoor not so anonymous
That's a technologist's typical reaction. However, this is not a technical problem. In reality, if Glassdoor did something like that it's just going to increase the likelyhood of getting targeted directly for libel.

Even if someone actually worked for a company, it doesn't mean their statements about it are true. Someone might be disgruntled for a variety of reasons and slander the company, in which case it would be proper to sue in order for the review to be taken down.

The social issue here seems to be that there probably are more companies doing this for "revenge" purposes than for legitimately taking down slander.

sjamaan··on SearchHut
You can write a custom stemming algorithm and load it as an extension library into Postgres, then use that with `CREATE TEXT SEARCH DICTIONARY` to create a custom dictionary. It's not as difficult as it sounds - you can use the default Snowball stemmer as a sample, and tweak it.
sjamaan··on Woman ‘dehumanised’ by viral TikTok filmed without her consent
AFAIK the "candid camera"-like TV shows would approach the people afterwards and ask for permission to use the footage. They probably did it only because otherwise they'd get sued into oblivion.
sjamaan··on A common trap for people entering programming jobs
> Meanwhile, there is a likely source of confusion you can often address in advance: tooling. Ask about what the team uses for: Version control; Testing; Deployment / continuous integration; Databases; and Log management and search; Metrics (thanks, dukodk!).

>Sometimes these will be proprietary, and sometimes they will not exist.

Yes, ask this during a job interview and if they don't exist, seriously reconsider if you want to work there.

sjamaan··on Schluss – A secure vault for personal data
Sounds like a for-profit version of IRMA (https://privacybydesign.foundation/irma-explanation/)
sjamaan··on Rarely Seen Paintings by J.R.R. Tolkien
I wonder why most(?) editions of The Hobbit don't have them though. They're wonderful and arguably a part of the work. Omitting them seems like such a shame to me.
sjamaan··on Show HN: 1,900 remote company profiles with tech stacks and employee benefits
On the linked subpage with tech stacks, I don't see a way to filter for country. This is relevant because even though it's 100% remote, there are different tax rules or even difficulties working in certain countries.

Also, cool to see CHICKEN Scheme mentioned under tech stacks. Too bad there are no matching jobs (yet) :(

sjamaan··on The Demise of the Mildly Dynamic Website
> The point is, small frameworks are so easy to setup you start skipping the 'mildly dynamic website' part because it doesn't scale at all.

Tell that to a non-developer who has a $1 a month shared hosting account who would like to spruce up their website a little bit with (let's say) a visitor counter.

← PreviousPage 4 of 6Next →