HNHacker News
TopNewBestAskShowJobs

dajonker

967 karma · joined August 19, 2015

submissionscomments
dajonker··on I will work for free on your Ruby project
> There really are very few ruby/rails jobs going at the moment.

What is your source for the number of ruby/rails jobs at the moment?

dajonker··on Tell HN: Hacker News now supports IPv6
It's not just about the number of devices. Stateless Address Autoconfiguration for example basically needs a /64 subnet.
dajonker··on How big is YouTube?
The YouTube identifiers are actually 64 bit integers encoded using url-safe base64 encoding. Hence the limited number of possible characters for the 11th position.
dajonker··on Rage: Fast web framework compatible with Rails
These kinds of projects are good for the ecosystem. Sometimes the underlying technology (such as using fibers here) could end up being used or merged into Rails itself, after successfully demonstrating the benefits.
dajonker··on Tuxedo Pulse Gen 3
The difference between ISO and ANSI is the physical layout, i.e. the shape of the Enter key and the left shift key.
dajonker··on Tuxedo Pulse Gen 3
No ANSI keyboard might be a deal breaker for my muscle memory and external keyboards (mechanical and MX keys that I had to import from the US because Logitech only sells ISO in the EU)
dajonker··on Goodbye integers, hello UUIDv7
Yes, a unique index per table, not globally. Although the probability of a global colission is still extremely small.
dajonker··on Goodbye integers, hello UUIDv7
Similar to the old situation in the article, we are using sequential 64 bit primary keys, but we use an additional random 64 bit key for external usage (instead of 128 bit).

The external key is base64 encoded for use in URLs which results in an 11 byte string.

This hides any information about the size of the data, the creation date of customer accounts (which would be sort of visible with UUIDv7) and prevents anyone from attempting to enumerate data by changing the integer in URLs.

I thought about using UUIDs as external keys but the only compelling use case seems to be the ability to generate keys from many decoupled sources that have to be merged later.

64 bit should be enough for most things https://youtu.be/gocwRvLhDf8?si=QBheJCG21bAAV0Z7

dajonker··on Goodbye integers, hello UUIDv7
That's an interesting idea, how would you deal with the bits in the UUID that are used for the version? Setting them to random bits may cause issues for clients that try to use the identifier in their own database or application, as mentioned in the article.
dajonker··on Squeeze the hell out of the system you have
Very hot take indeed. As with all things, it depends and use the query planner to measure what actually makes a difference.

In our application we have one important join that actually makes things a lot faster than the denormalized alternatieve. The main table has about 8 references to an organization table. To figure out what rows should be selected for a particular organization, you could either query on those 8 columns, making a very big where/or clause. As it turns out, PostgreSQL will usually end up doing a full table scan despite any index you would create.

Instead, there is an auxiliary table with two columns, one for organization and one reference to the main table. Joining on this table simplifies the query and also turns out to be much faster.

dajonker··on Don't be clever
At a previous job we used ActiveAdmin on top of Rails, which is a sort of CRUDController as described in the article. Wonderful productivity when you are just starting out, but it got so bloated that it took over a minute to hot reload code. You basically had to kill the server and restart it when changing anything. Nobody dared doing anything about it and nobody had any idea how to fix the issues. But there were scripts to make it easier to kill and restart the development server...

So at some point I wrote a script that read the ActiveAdmin parts and used a library to convert it into its abstract syntax tree. Now I could manipulate the tree and shape it into regular Rails controllers and plain old HTML views. That took care of about 90% of the work. The remaining 10% was of course the weird exceptions. Finishing it took a lot of testing, a ballsy deploy to production, and a further hour of frantic bug fixing, but then it was done. No more productivity destroying hassling with the smart admin framework. I think I would have quit my job way earlier if I wasn't able to fix that, and had to live with it instead.

dajonker··on Show HN: Debian-based home router
I have an ECS mini pc with a Core i3 and dual nic that I use as a router at home. For normal internet usage it stays well within that 5-10 watt range. Only slightly more than a raspberry pi but with much, much more performance.
dajonker··on Kids Toys Suck (2011)
I have a 1.5-year old and we bought 25 kilograms of used Duplo (toddler safe, bigger Lego from the same brand). There are bricks from the 70s, 80s, 90s, 00s and they all still click together well and have barely faded in colour. The quality of this stuff is amazing, and it still is judging from the brand new bricks we got as a gift.
dajonker··on We’re no longer sunsetting the free team plan
If they want to make money, they should stop listening to the community and start asking themselves "What would Oracle do?"

I think a lot of companies would not really be capable to setup an alternative in time and would just have to start paying instead. Which would not be a bad thing. The opportunity cost of switching might be higher than just paying Docker for their services.

dajonker··on We updated our RSA SSH host key
Leaking something like a private key? You do that once, then you learn. If you don't learn, you remain a rookie. Or just reckless.
dajonker··on On trust in software development
I agree about code reviews not being done "right", for my own subjective opinion of what a "right" code review is. I've been in situations where code review was required but effectively useless. Some would only focus on code style and completely miss obvious logic errors or lack of new tests. Some would blindly approve anything. Sometimes a manager would override a critical code review because a new feature had to be released urgently (and of course it turned out things were indeed bad later). Sometimes a one character bugfix would be blocked for an hour by the lack of code review.
dajonker··on We updated our RSA SSH host key
Maybe their new copilot made this rookie mistake
dajonker··on Common Beginner Mistakes with React
I'm talking about this specific piece of code:

    function handleClick() {
      setCount(count + 1);

      console.log({ count });
    }

Since count is enclosed within the function, it could be mutated by _anything_. In isolation, you can't really be sure of what setCount does, since the "count + 1" statement passes a completely new value unrelated to count.

If setCount didn't have any side effects, it is an obvious mistake to assume the value of "count" would have changed.

So if the intention is to log the incremented count, it is bad code in any situation, React or not.

dajonker··on Common Beginner Mistakes with React
These "mistakes" are presented as React specific but I think most of them are general programming mistakes. Or perhaps JavaScript mistakes if your please, since not all languages allow you to make all of the mistakes with mutating and using state.

For example the "Accessing state after changing it" has absolutely nothing to do with React or async code, and everything to do with the scope of the count variable and how JavaScript passes numbers by value.

dajonker··on Nokia launches DIY repairable budget Android phone
If those are the only apps you use, you might be fine for a while but lots of apps won't support old Android versions which could be problematic if you depend on such apps, e.g. for banking or signing into government services.
dajonker··on Upwork just stole $10k from me
And they didn't refund the client either according to the tweets author... Nice business model.
dajonker··on Fast DataFrames for Ruby
Because you already have a Ruby project and you want add analytics to it?
dajonker··on Ask HN: Do you hate software engineering but love programming?
I co-founded a company as the only software developer and it's the most fun I've ever had building software. That includes all the refactoring, architecting and rewriting. What's important in my case is that I have awesome co-founders who have completely different roles and skills and that trust me to deliver the tech. We don't have investors, only our own money on the line. We also don't have any recurring meetings, communication is mostly async and that works great for developing software. There is a vision and a rough roadmap but we don't do any short term planning, that would be a giant waste of time. We just had a very successful first year!

The job is not without any hard parts though. I may have a lot of freedom to build a product the way I want, but I didn't have any technical colleagues to discuss problems (or joke around) with. A start-up naturally comes with a lot of uncertainty. You have to make a lot of hard decisions and then make sure they were the right ones. And it might take some time before I make as much money as I did working for someone else.

Every job will have pros and cons and you'll always need to make some trade offs.

dajonker··on Just use a monorepo
I couldn't agree more with the author, there's nothing worse than the self-flagellation of having a single change in one repository triggering a snowball effect where you have to update a dozen of other repositories, open another dozen pull requests to be approved, and carefully time releases so you don't break anything.
dajonker··on Perfect Circle
This is fun and had a high potential for giving me some repetitive strain injury. My highest score of 97.1 doesn't visually feel like the best circle I've drawn though.
dajonker··on Ask HN: What sub $200 product improved your 2022
Your math is off by a lot. 1.5 kW for 3 minutes is 0.075 kWh.
dajonker··on Samsung bets on MicroLED and 8K for its premium 2023 TVs
Same here, plasma for 10 years and now an OLED. The difference is night and day. I don't notice much difference between 1080p and 4K content because of the distance to the screen but HDR is amazing, especially for gaming.
dajonker··on Ask HN: What are some of the best podcasts for developers?
Agreed, I really enjoy his interviews with people from the industry (and occasionally other people as well). Donald Knuth, John Carmack, Demis Hassabis, Brendan Eich, Chris Lattner to name a few.
dajonker··on Breaking up with JavaScript front ends
The project is originally from 2014 and the presentation seems to be from 2016.
dajonker··on Ask HN: Who is hiring? (November 2022)
Lean Customs | Software Engineer | Remote first (NL/EU) | Full-Time

At Lean Customs we are building better software for declaring goods to Customs. We are a self-funded startup focusing on building a good product with good people, without the pressure of investors that want to see continuous growth.

We build our product backend in Rust and take a very pragmatic approach to keep things simple. No complicated cloud setups, no distributed computing, no unnecessary glitter. A focus on a good user experience with a target of very low response times for everything.

We are looking for a (mostly) backend engineer that is comfortable in a start-up environment in a very small team. You should be able to diagnose problems and come up with solutions on your own from end to end, including some frontend or devops work when necessary. The work requires good organization and carefulness, a tiny mistake can cost a lot of money. Experience in logistics is preferred as you will need to learn a lot about the domain.

We are based in the Netherlands but it might not be an issue if you are located elsewhere in the EU.

If you are interested and want to know more, you can reach me at: dirk - leancustoms.com - Please only reach out if you are personally interested, recruiters or agencies not welcome.

← PreviousPage 4 of 9Next →