Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shikoba
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
61.
▲
by
shikoba
4y ago
> make me feel good about doing it I don't think it's the goal.
62.
▲
by
shikoba
4y ago
What a proof...
63.
▲
by
shikoba
4y ago
> While there is evidence that hungarian notation + camelCase is better for token usage - eg variables What evidence? Where?
64.
▲
by
shikoba
4y ago
> I can only assume people who don't treat code formatting as a rule read every.single.thing.line.by.line.every.time. That's why I assume too. I don't understand how one can code like that.
65.
▲
by
shikoba
4y ago
You can grep for todo in your codebase. It will list them.
66.
▲
by
shikoba
4y ago
> Every TODO needed a date A todo is a todo. I don't see why a date is necessary.
67.
▲
by
shikoba
4y ago
> Until it's not. And I don't understand when that happens but I know when it does. It's very easy, as soon as the number of lines increase. I fix the arbitrary limit that a function should fit into a terminal to 72x24. Ta
68.
▲
by
shikoba
4y ago
The golden rule is missing: > Don't try to understand the error message except if you have no other choice.
69.
▲
by
shikoba
4y ago
So some people, when having full responsibility, produce poor quality products. You don't understand what it means? You prefer to live in denial?
70.
▲
by
shikoba
4y ago
When I see undocumented project that doesn't build, I know that the developer doesn't care about the quality of his work.
71.
▲
by
shikoba
4y ago
> Github projects are any more representative of the work They are, that's the moment you see how the person code when she/he is responsible. You see the real skills and potentials of that person.
72.
▲
by
shikoba
5y ago
Or, except if you need absolute precision, you wrap all those primitives in a function that uses SI. So seconds for your sleep wrapper.
73.
▲
by
shikoba
5y ago
Killing C :D There is always people dreaming of that.
74.
▲
by
shikoba
5y ago
> Bottom line: make it so users never ever, for any reason ever, need to use the CLI. The more I think about, the more I'm convinced that it's an unconscious choices made by developers to keep away non power users.
75.
▲
by
shikoba
5y ago
> There would be no grades or titles when you get a job, just an increasingly longer list of projects you worked on. And you'll obtain the good obeying sheeps. You would miss all the competent rebels, those who think outside the sco
76.
▲
by
shikoba
5y ago
Hi :) Thank you for that laugh. That's so true.
77.
▲
by
shikoba
5y ago
It depends. That kind of code does or doesn't disturb me in production code.
78.
▲
by
shikoba
5y ago
They operate the way I expect. set -e fails when I don't handle the error code of a command. If my script eat it, it doesn't fail. I see no problems here.
79.
▲
by
shikoba
5y ago
I would complain. I bought the cheapest mouse and keyboard. I don't need high-tech stuff for coding. But it's your choice, not mine.
80.
▲
by
shikoba
5y ago
4. How to find if a function terminates
81.
▲
by
shikoba
5y ago
> not that the command returned 0 but that the file it made exists and is the right length If a command returns 0 when it didn't really do its job. Shouldn't we fix the command instead of the script?
82.
▲
by
shikoba
5y ago
> some other people disagree and say you should never use `set -e` outside of development I'm really interested. What are their arguments? And how do they handle errors?
83.
▲
by
shikoba
5y ago
None. Hello world is a program for beginners to teach them the most basic way to debug a program. The sole purpose of hello world is to explain how to print internal state of a program. In that case the examples are correct, they succeed.
84.
▲
by
shikoba
5y ago
In C, yes. But for C++ you can use exceptions if you want. You just have to "protect" all the "primitives" and after that you're safe.
85.
▲
by
shikoba
5y ago
If printf can write some bytes but not all of them. The C documentation is explicit: > a negative value if an output error occurred So in your case that's an error and printf returns a negative value. But yes, how many bytes were wr
86.
▲
by
shikoba
5y ago
> The response was both extreme and universal: How the hell do you all accept being micromanaged to such a degree? Don't any of you have any dignity? And they're totally right. I don't tolerate to be treated like that and
87.
▲
by
shikoba
5y ago
> IQ tests unlawful So making a test to see who you'll recruit is unlawful. I don't know what to say.
88.
▲
by
shikoba
5y ago
Maybe FAQs are just a simplified manual. Those are often missing. I don't want to read a 30 pages manual before using something.
89.
▲
by
shikoba
5y ago
Why would I need to do that? Winamp does it perfectly.
90.
▲
by
shikoba
5y ago
Thank you for the intel. I'm testing it right now. It looks like it has everything I need, global hotkeys, sane way of sorting playlist and mono. And... Wait a minute... There is a mobile version... Is the end of the nightmare right he
More ›