Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
clktmr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
121.
▲
by
clktmr
6y ago
Why not write is like this: #ifdef SOME_CONST #define HAS_SOME_CONST \ ... for SOME_CONST ... #else #define HAS_SOME_CONST \ ... when SOME_CONST not defined ... #endif #define WHATEVER(w, h, a,
122.
▲
by
clktmr
7y ago
> Doing this basic formatting in ascii text is just mind-numbingly stupid. Nope, ascii more or less represents your keyboard. Using ascii as user input has zero dependencies. Are you really suggesting some binary encoding for formatting,
123.
▲
by
clktmr
7y ago
Pretty much what I am thinking. When I use Rust, at the end of the day I will have spent more time with the language instead of my actual task, and I don't see this changing given the rate Rust is still changing. It feels like you ha
124.
▲
by
clktmr
7y ago
Another interesting read about effects of hypothermia is the Dyatlov pass incident: https://en.m.wikipedia.org/wiki/Dyatlov_Pass_incident
125.
▲
by
clktmr
7y ago
It's about realtime constraints in embedded systems. That's also the reason why malloc isn't used in most embedded applications.
126.
▲
by
clktmr
7y ago
I understand. It is actually kind of easy to comprehend by remembering the borrow checker will only allow one single mutable reference at a time.
127.
▲
by
clktmr
7y ago
Some commenters mention Rust has compile-time data-race checking. Is this correct? From what I did understand it will only enforce a mutex to be locked before you can access specific data. However if there is no mutex, data-races won
128.
▲
by
clktmr
7y ago
I tried VSCode several times, but always came back to vim. I think there is a fundamental difference to a purely terminal based workflow. Learning a new commandline tool has almost always been something that paid back for years: CLI cares m
129.
▲
by
clktmr
7y ago
> often especially those languages beloved by intellectuals *self-proclaimed intellectuals To be fair, it also took me years to realize how programming as tought in academia is out of touch with reality.
130.
▲
by
clktmr
7y ago
I think it would be great to indicate POSIX sh compatibility for every item.
131.
▲
by
clktmr
7y ago
>...and JSON, of all things. Right? Reasoning was "the web people are using it too". Why not just use key value based config files like every other system tool?
132.
▲
by
clktmr
7y ago
I don't agree, except for the fire alarm of course. Almost nothing is so important that it needs my attention immediately . I will manually check for new notifications about every hour and never got complains for being unresponsive.
133.
▲
by
clktmr
7y ago
Just love that on HN killing somebody is discussed as a use case.
134.
▲
by
clktmr
7y ago
As an embedded systems engineer I have very mixed feelings about Rust. There are a lot of things to like, but Rust seems to miss the point why C++ didn't replace C and will fail at that for the same reasons. I wish for an economic, u
135.
▲
by
clktmr
7y ago
> The math is simple if it takes less time to rewrite than to refactor then rewriting is better This is the common pitfall with rewriting. It does not account for the existing software being tested in production for years. There often
136.
▲
by
clktmr
7y ago
The average isn't relevant to my point. But in every town you'll find doctors, lawyers etc. who have a healthy social life despite their high income.
137.
▲
by
clktmr
7y ago
So much wrong with this comment: Remote work doesn't mean home office. You can rent part of a shared office and still have colleagues for lunch. You don't need to move to a place where you will be 'the rich guy'. It'
138.
▲
by
clktmr
7y ago
Yeah but that's rather because the socket api is older than Linux. Underneath there is the sockfs implementation.
139.
▲
by
clktmr
7y ago
Linux doesn't expect you to either. You are free to choose.
140.
▲
by
clktmr
7y ago
"Everything is a file" is one of the most misunderstood concepts I encountered, to the point where people think that disk IO is involved. A file doesn't even need a filename (eg sockets). The main point is to have a common in
141.
▲
by
clktmr
7y ago
Wherever I worked, these kind of checks did always more harm than good. You force a bunch of tools on your developers which they hate, only to have your whole codebase littered with "disable linter X" comments. In a good review pr
142.
▲
by
clktmr
7y ago
We were talking about viable alternatives.
143.
▲
by
clktmr
7y ago
Javascript can be obfuscated too. What is the difference?
144.
▲
by
clktmr
7y ago
Even if it's possible, the change is not worth it. Transcribing leads to a horrible debug experience. Immature languages maintained by a single/few are a no-go. Your team already knows C and is good at it, finding new programmer
145.
▲
by
clktmr
7y ago
Despite all of its limitations, C still has no viable alternatives in many areas. And personally I now really appreciate the persistence of C in contrast to all the changes and new features in other languages.
146.
▲
by
clktmr
7y ago
How does SaaSHub generate revenue? I have neither seen any ads nor any payment possibilities.
147.
▲
by
clktmr
7y ago
I recently started to write git commit messages as if I was writing an email to my future self. It enables me to write the commit message without thinking too much about what's important. I also tend to write more since, because an em
148.
▲
by
clktmr
7y ago
> Independence is a state of mind, not a dollar amount. This is only true if you have no debt. Even in your low-end example you need a net worth of 250k, which is a non trivial amount of money for most people. And I would still call it n
149.
▲
by
clktmr
7y ago
The article completely ignores the last and most important level of wealth, which is being financial independent. Being able to pay for rent, food, healthcare etc. for the rest of your life without the need of a day job will probably have
150.
▲
by
clktmr
7y ago
Are you coding on your phone? Emojiis are not on my keyboard. Maybe not even in my font.
More ›