HNHacker News
TopNewBestAskShowJobs

papanoah

45 karma · joined December 9, 2016

submissionscomments
papanoah··on Removing React.js from the codebase and adapting Htmx for UI interactivity (2023)
Is there a reason why you don't have an endpoint + template that renders only the result list. The form could be separate thing and issue a form submit request with all the selected filters? Seems better than rendering the whole page. You could even display a loader while the results are loading, and swap the list html element on success.
papanoah··on Ask HN: When has a "dumb" solution beaten a sophisticated one for you?
I wrote a tiny game that was basically a dice war clone and needed to implement an enemy AI. I researched the probability formula for throwing a higher number with N dice versus M dice and spent days on the math. In the end I simulated every possible combination aka. fight up to 12 dice (which was the max amount) with an simple python script and stored the results in a key value table. It was soo much easier.
papanoah··on Mistakes I see engineers making in their code reviews
It sends a different message, in my opinion. Blocking means "I disagree, but lets figure it out and work together to get it over the finish line". "I don't approve, but someone else can" is very non-commital. Which gives me the feeling of being left alone with a bunch of critique, without appreciation for the work that I have originally done. I would wish my reviewer takes responsibility for his/her feedback. "I don't approve, but someone else can" also means to me "Merge it, if you must. If it works out, good for you, I havent blocked it. If it doesnt work out, I get to say 'See, I told you so!'.
papanoah··on Mistakes I see engineers making in their code reviews
Personally I hate it when people just leave comments on my PR without explicitly blocking or approving it. To me it comes across as indecisive. Either you are fine with the changes -> approve. If you think this code shouldn't be merged in it's current state -> block. Just leaving a comment feels like you want to complain, but don't really take any responsibility for what happens next. There are exceptions of course and it all depends on the comments and the circumstances, but I generally prefer explicit yes or no.
papanoah··on Memorizing phone numbers
How hard is it to remember 911 .. I mean 999!
papanoah··on Memorizing phone numbers
I remember my own phone number and the new emergency number from the IT crowd episode: 0118999881999119725 3

It's funny how the brain works. I don't even remember my girlfriend or my mother's number, but I can recognize it when I see it.

papanoah··on How I, a non-developer, read the tutorial you, a developer, wrote for me
I could say the same thing about me "non-legal person" trying to read any contract, terms of service or a license document. Many people tend to make fun of the developers speaking a different language, without realizing, that they do the same in their respective field. I think clear communication is important, but you can't expect anybody to write tutorials aimed for every audience. Learning is hard and it takes time to navigate through all the buzzwords and terms, but that's what learning something new requires.
papanoah··on Ask HN: Python developers at big companies what is your setup?
Not a big company, however:

- uv (went from pipenv to poetry to uv), which was the right decision imo.

- ruff (replaced black)

- PyCharm, but some people use vscode or neovim.

- mypy for type checking, which I am not 100% happy with. One experienced developer swears by mypy, thats the reason we haven't explored alternatives.

- 'just' as task runner

papanoah··on Hosting SQLite Databases on GitHub Pages
I get this error on Firefox 90.0.2 on Debian 10. It works in chrome though.

[error: RuntimeError: abort(Error: Couldn't load https://phiresky.netlify.app/world-development-indicators-sq.... Status: 0). Build with -s ASSERTIONS=1 for more info.]

Other than that, is pretty awesome and exactly what I was hoping for.

papanoah··on Email a Dumpster Fire
Hey, I have sent an E-Mail yesterday evening. Do you have a rough number, how long it takes on average before the mail gets burned?
papanoah··on Shotcut: Free, open source, cross-platform video editor
I used it recently to edit large video files around around 1h 1080p; Shotcut is rather slow and freezes often when editing big files. But nonetheless its a great project and I hope it will improve in the future.
papanoah··on I took Jake Paul's educational series
The author seems suprised that Jake Paul knows really well how to abuse social media and claims he is a genius. In my opinion, these mechanism are no secret. You dont have to be a genius to grasp them. Therefore you dont have to be afraid of him at all.