HNHacker News
TopNewBestAskShowJobs

codesnik

1,029 karma · joined March 11, 2009

submissionscomments
codesnik··on Physicists drive antihydrogen breakthrough at CERN
And earth contains so much of heavier elements.
codesnik··on Fungus in Chernobyl nuclear disaster zone has mutated to 'feed' on radiation (2024)
I think idea was that fungi for some time couldn't consume lignin in fallen trees.
codesnik··on Why I love OCaml (2023)
I kinda feel that singly linked lists isn't a data structure in FP as much as a (dynamic) control flow structure. It's okay in that application.
codesnik··on Why I love OCaml (2023)
interesting. how named arguments work with currying?
codesnik··on Friendly attributes pattern in Ruby
this is very unnecessary. Arrays and maps transformations are really easy and concise in core ruby already, one line of map, to_h or whatever.
codesnik··on Lisp: Notes on its Past and Future (1980)
Well, erlang and elixir operate on almost exclusively immutable data, in addition to message passing between "processes". They are more strict than most other languages in that regard.
codesnik··on Scripts I wrote that I use all the time
or wifi toggle-toggle!
codesnik··on Scripts I wrote that I use all the time
it's an .oh-my-zsh thing (~/.oh-my-zsh/lib/functions.zsh) but thanks, I didn't know about it.
codesnik··on Ruby Blocks
problem is not with ifTrue, and not with it's performance, it's easy to do. it is "ifTrue:ifFalse:"

also it is common to do assignments in the "if", and with actual method and blocks scope of the introduced variable would be different and everyone would be tripping on it all the time.

codesnik··on Ruby Blocks
basically it's because of "else" and "elsif". While ".each" works the same as "for .. in ...; end", it's harder to do "if else" as method which will also return value of the block inside the branch. Smalltalk can do it because "ifTrue:ifFalse:" is _one_ message, ruby didn't go that way syntactically.
codesnik··on JSON River – Parse JSON incrementally as it streams in
jq allows to covert normal json document to jsonlines and back, though it does it much faster if it can slurp an original doc into memory (no --stream option)
codesnik··on Ruby core team takes ownership of RubyGems and Bundler
I waited for this as the more or less easiest option to regain back some trust. Benevolent leaders still keep many communities together.
codesnik··on JSON River – Parse JSON incrementally as it streams in
I can't imagine a usecase. Ok, you receive incremental updates, which could be useful, but how to find out that json object is actually received in full already?
codesnik··on Pipelining in psql (PostgreSQL 18)
ah, of course it have been discussed already https://discuss.rubyonrails.org/t/proposal-adding-postgres-p...
codesnik··on Pipelining in psql (PostgreSQL 18)
activerecord in Rails has async mode, which allows you to queue several requests and read results later. But those will go through the connection pool, and will be executed in separate connections, separate transactions, and separate PostgreSQL server processes. I wonder if using pipelining instead, on a driver level (app code would be the same), would be a better approach in general, or at least easier on db instance.
codesnik··on Structured Procrastination (1995)
two of my friends at different times called me and spoke for an hour each, how they suddenly realized that they have ADHD, got diagnosed, got meds, and how their life is completely different now. Sounded almost like they joined a cult or something, but I've been happy for them. In half a year initial joy subsided. I guess they got their new normalcy or something, it doesn't sound like they're having any adverse side-effects.

I still don't want to go this route, I had my ups and that was glorious. Also I hope to get a pilot license one day.

codesnik··on Structured Procrastination (1995)
I avoid working in big companies, fighting bureaucracy is not my thing. But ordered-micromanaging-managers do happen even in companies of 10 people. One of the worst experiences like that I had in a company of _four_ people, CEO was just insufferable, we actually spent an hour every day creating a schedule for a day for everyone with 15 minutes granularity.

One thing slightly bothering me is that I have zero problem managing people both like me, and ordered stable focused guys, because I try to use people's strengths and put them on tasks which suit them the best. I've been CTO twice and can speak from experience. The only requirement for me is wanting to be useful in some form, we'll find a task, occupation, or feature lifecycle stage.

And managers who tried to put on me some kind of "personal improvement plan" clearly can work productively only with people exactly like them. Maybe they shouldn't be managers, a lot of good devs have some degree of ADHD, cutting them out or putting them in the box can't be good for business.

codesnik··on Structured Procrastination (1995)
I'm doing the same, or at least trying to do it.

Worst periods for me were when I had one clear, important goal, not particularly hard but hairy, and nothing else to do, sometimes because I myself cleared it up. I could spend months doing nothing useful, and end up very, very tired and burnt up.

I also several times had a conversation with managers, whom I told that I'd rather work on something very urgent, or otherwise give me something NOT (really) urgent and a big murky area of things to clear out which no one else knows how to deal with. That something won't probably be done, but that area will be improved a lot in creative ways. Typical managers' responses have been trying to micromanage my time up to personal hourly schedules, morning and evening personal reports, and scold me if I did anything out of the order of the list of priorities they imposed on me. Exactly the opposite of what's needed for me to be productive. And of course "let's just try that, and I'm not asking."

Next time I'll see such a response, I probably will quit on the spot; this is unbelievably cruel.

But it looks like the secret of the author is: just work in academia.

codesnik··on Anti-aging breakthrough: Stem cells reverse signs of aging in monkeys
I wonder if somebody already experiments on altering toxoplasmosis
codesnik··on Anti-aging breakthrough: Stem cells reverse signs of aging in monkeys
it kinda looks like you've assumed my "ideology", or even a country. Also, to die of natural causes, you know, for some people in some positions is actually a good wish. And we all will be there, I just really hope to outlive particular people.
codesnik··on Anti-aging breakthrough: Stem cells reverse signs of aging in monkeys
I'd love the current generation of POSs in power to die off naturally before those advancements will be applied, thank you.
codesnik··on Show HN: Omarchy on CachyOS
i wonder how screen locking works then
codesnik··on My Workflow Is 70% AI, 20% Copy-Paste, 10% Panic. What's Yours?
I really hope you don't just get your data from ChatGPT
codesnik··on NASA finds Titan's lakes may be creating vesicles with primitive cell walls
but actual code preceded the hardware!
codesnik··on SQLite's File Format
I've never used it, but perl contains support for Berkeley DB in stdlib since forever. But sqlite maps to perl just fine.
codesnik··on The Universe Within 12.5 Light Years
I recently contemplated about a thing: on a galaxy scale, the speed of gravity (or gravity change) should have a somewhat noticeable effect. There's a slight pull towards a star on the other side which is not there anymore for 50000 years! Of course there's some other star in that place, but I wonder how minuscule that effect is. Would it speed up or slow down rotation of outer regions of galaxy?
codesnik··on Cursor CLI
maybe symlinking will work
codesnik··on If you're remote, ramble
I've tried to create or revive a watercooler channel in every remote company I've worked in last 10 years. For some reason it usually doesn't work. Some people don't needed it, some people just call each other and vent out privately. I miss watercooler talk.
codesnik··on Inspect ANSI control codes and escape sequences
I wonder how many languages have nice looking "\e" for "\u001b". ruby, perl, bash, anything else?
codesnik··on Show HN: Refine – A Local Alternative to Grammarly
browser rendering does. You'd need white-space: pre-wrap rule to retain double spaces.
← PreviousPage 3 of 17Next →