Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gnubison
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
181.
▲
by
gnubison
5y ago
> But I prefer to avoid Unicode in the console (cf. terminal, I do not use a graphics layer plus emulator). Why? If the alternative is garbled text, is that what you choose?
182.
▲
by
gnubison
5y ago
> It feels like everything is overflowing with mediocrity, and there's no hope of it ever changing. I’d definitely think that about the Apple Store if they introduced some of the features that you suggested — that’s part of the prob
183.
▲
by
gnubison
5y ago
In Perl, any “bare block” is equivalent to a loop that only runs once. Useful in conjunction with redo too.
184.
▲
by
gnubison
5y ago
Do you also believe that the / operator should return two values, a “primary” result and an error value?
185.
▲
by
gnubison
5y ago
Wait, isn’t IRC also built on domain names? (Albeit at a lower level)
186.
▲
by
gnubison
5y ago
IMO that should be in a comment, instead of duplicating that information every time you mention the variable. (This applies more for local variables in short blocks than for, say, global variables.) At some point the length of the name
187.
▲
by
gnubison
5y ago
What is K supposed to do other than a manual lookup? That’s what it does in vim and neovim.
188.
▲
by
gnubison
5y ago
By the way, when ls isn’t printing to a terminal it defaults to one file name a line, so 'ls -a' would work fine here (and arguably be a bit more correct).
189.
▲
by
gnubison
5y ago
Vanilla vi users don’t have :make, :cn, :cp, or :cope.
190.
▲
by
gnubison
5y ago
No, it’s not beside the point at all. It disproves your statement for any real language.
191.
▲
by
gnubison
5y ago
It may be pragmatic, but it’s incorrect. “Is this time value an unset time value?” is not a question you can answer (using IsZero considers the epoch an unset time value, but it’s a perfectly valid set one too).
192.
▲
by
gnubison
5y ago
Well, only the lexer deals with strings, and even then… it’s not really creating strings, just extracting some information from them. Creating strings efficiently and safely is IMO the hard part of string management in C.
193.
▲
by
gnubison
5y ago
The compiler may inline it, but my brain can’t.
194.
▲
by
gnubison
5y ago
Many many many people consider Linux more than a “half finished project.”
195.
▲
by
gnubison
5y ago
Yeah, that’s part of using a terminal. Color support is janky and many keystrokes are indistinguishable from another (for example, C-i and TAB, C-[ and ESC, C-S-anything, C-arrow keys, and so forth). You can’t have a terminal emacs withou
196.
▲
by
gnubison
5y ago
Yeah. If you want your code to “just work” on stuff like the BSDs, then C (or an interpreter written in C) is still your best bet.
197.
▲
by
gnubison
5y ago
You don't have to quote the LHS of the => operator, even if "use strict" is on. (That's the only way that it differs from a regular comma.) > The "=>" operator (sometimes pronounced "fat comma&qu
198.
▲
by
gnubison
5y ago
I don’t think calling GP “hostile to Linux” after they critiqued one part of the ecosystem is very fair. All systems have their flaws, and if judging part of a system negatively makes you hostile to that system, then I guess Linus Torvalds
199.
▲
by
gnubison
5y ago
> I've heard a rumour that POSIX mandates that Perl be installed, although I haven't been able to substantiate it. It’s not: https://shellhaters.org
200.
▲
by
gnubison
5y ago
Have you watched the talk? Greg talks a lot about the flaws with CVEs.
201.
▲
by
gnubison
5y ago
With zsh: </var/log/file.log </var/log/file.log grep -e useful -e lines ...
202.
▲
by
gnubison
5y ago
> Hope this answers your question. It does, thanks for the detailed response.
203.
▲
by
gnubison
5y ago
What systems don’t have grep? Off the top of my head, anything vaguely POSIX compliant would have it, and anything descended from 4th Edition Unix would also have it, which seems like it would cover everything.
204.
▲
by
gnubison
5y ago
Well, part of that might be because ‘mv *.c *.cpp’ doesn’t do what you think it does.
205.
▲
by
gnubison
5y ago
Might want to check out "weekend Wednesday": https://youtu.be/ALaTm6VzTBw
206.
▲
by
gnubison
5y ago
You don't need to quote variables on the right hand side of an assignment.
207.
▲
by
gnubison
5y ago
> x = 0 doesn't work Maybe it's just me, but I love how the assignment syntax can be used just for a single command: 'MANPAGER=cat man' is a lot nicer than '(MANPAGER = cat; man)'. > and x=$y is a securit
208.
▲
by
gnubison
5y ago
I like the BSDs because I have a hope of understanding them. They're simple and well-documented, and make design choices I like. (For example, on a BSD I can use 'man -Otag=l ls' to go straight to the documentation for 
209.
▲
by
gnubison
5y ago
You're right, my bad.
210.
▲
by
gnubison
5y ago
> *BSDs probably have 0.01% of Linux' usage rate Just wanted to point out that Hacker News runs on FreeBSD[0] :) Some people like the BSDs, and would appreciate it if everybody stopped designing for the Linux monoculture (well, mono
More ›