30 karma · joined Jun 12, 2022 (4y ago) · 19 submissions
comment 1mo ago · link · parent
These macro tricks (from the article) are not about recreating C++ in C. C is less opinionated (comp. to C++): it gives you fewer built-in abstractions; does not prescribe which DS dev. should use. It is bring-your-own-data-structures language. Bring whatever you choose. In C, newer language standard is not always better. Older lang standards support more platforms. There is a certain beauty in writing in an old language while still applying modern coding practices.
I like C. I don't hate other languages. I wouldn't use C for apps that should have been written in C# with WinForms...
comment 3mo ago · link · parent
I've been seeing the same thing with models like GPT5.6 and Opus4.8 in GH Cop CLI. They still introduce magic numbers, and in Scala they often put an entire 10-line Spark expression inside an if condition instead of extracting it into a meaningfully named value to keep "if" readable. I wonder when common sense instructions will be baked into the models.
comment 3mo ago · link · parent
So I'd rather micromanage the process step by step. It takes more of my time, but the result is much, much closer to what I actually wanted.
comment 4mo ago · link · parent
comment 10mo ago · link · parent
a triple-LLM-filtered categorized list of the top resources from this HN topic. (My link-dump website is a trash pile of all the information I’ve ever paid attention to, maybe someday I will need it!)
comment 12mo ago · link · parent
Sentiment toward Clippy-as-software (approximate, opinionated comments only)
Clippy hostile |######################......| ~70 %
Clippy not hostile |########....................| ~30 %
Scale: 30 columns; '#' ≈ 2–3 % of clearly opinionated commentscomment 1y ago · link · parent
https://github.com/Nanonid/rison
Super old but still a very functional library for saving state as JSON in the URL, but without all the usual JSON clutter. I first saw it used in Elastic's Kibana. I used it on a fancy internal React dashboard project around 2016, and it worked like a charm.
Sample: http://example.com/service?query=q:'*',start:10,count:10
comment 1y ago · link · parent
I've tried several to-do apps, but centralized systems didn't work for me. I now use multiple to-do lists across different media: some on paper, some on my phone, others in markdown files within project folders... sending email to myself. It may seem messy, but it works for me. One system doesn't fit everyone. And any customization and tweaks are encouraged.
Books that helped me:
Atomic Habits by James Clear emphasizes small, consistent changes. Over time, they build into significant improvement. It’s better to improve your system gradually than attempt a major overhaul.
The Now Habit by Neil Fiore offers tools to overcome procrastination and start tasks. It helped me understand my resistance and find ways to move forward.
Getting Things Done by David Allen focuses on reviews and planning. I struggle to make time for them regularly, but even occasional reviews help.
Marcus Aurelius' Meditations, especially annotated versions, provide a Stoic perspective. His reflections on virtue and responsibility inspire me. He seemed to dislike being emperor, preferring philosophy, but accepted his role out of duty. That example helps me do necessary tasks, even when I don't feel like it.
comment 2y ago · link · parent
For my personal single-html projects, I prefer a straightforward coding style that avoids external dependencies. I implement what I need in a simple, quick, and efficient manner using only native browser APIs, supplemented with a few helpers like those in 'Hn.js' to make the rest of the code shorter.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
17.
Ask HN: Where can I find C++ by Example?
12 points · by dzhar11 · 4y ago · 5 comments
comment 4y ago · link · parent
It was a time when I had to test an IE6-only enterprise web tool, And there was no option to copy CSS-selector in Chrome/Firefox. I am not working in UI automation anymore (sad :( ) and lost interest in this project, but I think having a tool to record page objects and generate some smart automation code can still be quite helpful.