HN user

jonesnc

94 karma
Posts6
Comments37
View on HN

Why does the randomization have to happen in the database query? Assuming there aren't any large gaps in the distribution of IDs, and if you know the max_id, couldn't you pick a random number between min_id and max_id and get the record whose ID matches that random number?

I'm not sure what you mean that Messenger as a platform is gone. I still use their messaging app all the time, is that not the same thing?

Htmx in a Nutshell 4 years ago

We're migrating our apps from Vue.js to HTMX, and it has been a great experience. The size of our codebase has consistently gone down as we move things to HTMX, and it feels like the level of complexity goes down as well.

I highly recommend using HTMX.

I'm mainly a Django dev, and I'm curious how the productivity of Rails compares to Django. Do you have anything conclusions about their relative productivity, given a reasonable competency in both frameworks?

I think this highlights the difference between practice and good practice. You won't get better at something by merely doing it over and over again. You have to practice something difficult or foundational to the skill with intention, using techniques that are designed to help you improve your skills.

For example, if you're trying to get better at playing drums, playing the same beat poorly for an hour probably won't do much. A technique like starting to play at a slow tempo and gradually speeding up, cleaning up the mistakes as you go, is a technique that can help you practice more effectively.

The same is true for programming. Implementing a simple TODO app, while a good intro problem to solve for beginners, is probably not going to make most programmers better or more knowledgable at programming.