Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chousuke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
59 ms
·
541.
▲
by
chousuke
9y ago
At what level do you want to understand things? I feel that getting the basics is best done by trying it out yourself, though a badly configured public server can be used to attack other people, so be mindful of who has access to your serve
542.
▲
by
chousuke
9y ago
For me personally, it's about the effort put into communication. Using poor grammar and spelling makes the author seem lazy or even arrogant, as though their message were so important that the recipient will not mind spending extra eff
543.
▲
by
chousuke
9y ago
I switched to neovim for faster syntax checking with Neomake. Syntastic with vim was unusably slow. I don't know if anything has improved with vim since (probably, with 8.0), but I have no reason to go back, either.
544.
▲
by
chousuke
9y ago
Eight layers? That made me curious about how many are there really, though? My understanding is rather vague at this level, though hopefully good enough to know when I need to look deeper. So the compiler is obviously one layer. Then there&
545.
▲
by
chousuke
10y ago
Puppet can do templates just fine in masterless mode. Though nowadays, you should use EPP instead of ERB for robustness (strong typing helps a lot) Your puppet master can be your credential "database" if you use eg. hiera+eyaml. Y
546.
▲
by
chousuke
10y ago
I've built both Debian packages and RPMs, and I feel that RPMs are somewhat easier to wrap your head around. It's been a while since I did Debian package building, though. It's also undeniably true that there was a time when
547.
▲
by
chousuke
10y ago
"Safety" doesn't mean your program will never crash. It means that when you mistakenly assume an invariant that does not hold in safe code, the worst that happens is a panic. This is much better than what could happen, sinc
548.
▲
by
chousuke
10y ago
In my view, the problem with C in general is that it's a loaded gun with no safety or trigger guard. It's trivial to shoot yourself (or someone else) in the foot, and it requires knowledge, meticulous care and lots of forethought
549.
▲
by
chousuke
10y ago
I'll second this. I mostly work with operations, and I use a two-monitor setup for most of my work. It's setup so that my second monitor is left for my main focus or large applications, like the web browser or editor sessions, and
550.
▲
by
chousuke
10y ago
A simple thing can be difficult because understanding why it works may be nontrivial. However, it remains simple (by definition) if understanding is not affected by complecting factors such as side-effects or the global state of the system.
551.
▲
by
chousuke
10y ago
Maybe it's just a difference of perspective, but I do not understand what is so intuitive about flatMap that makes it "easier". The name does not fully capture the idea of bind and requires mental gymnastics to apply to less
552.
▲
by
chousuke
10y ago
That's the thing with powerful abstractions: they apply to so many things that seem unrelated, that it may be difficult to see the connection. But that's where all the power lies: being able to use a common abstraction across so m
553.
▲
by
chousuke
10y ago
The article kind of makes it sound like telnet is somehow necessary and that disabling it hasn't been a best practice for years. Maybe there are still old devices that don't support SSH and you literally have no option, but really
554.
▲
by
chousuke
10y ago
For me, it helps to think of verbal ("-i") adjectives as the same thing as a verb. Or rather, that they're both just predicates about the topic. tanoshikatta is literally a predicate stating "was-fun", and desu is j
555.
▲
by
chousuke
10y ago
With Puppet 4, Puppet is lightyears ahead of the mess that is HCL. It's not a general-purpose language, but it's strongly typed and you can work with datastructures in a functional fashion. I'll admit that some more complicat
556.
▲
by
chousuke
10y ago
As a vim user, I don't really find myself needing to scroll "fast" ever. Instead, there are three common cases: 1) I'm reading through code, and scrolling one line at a time with j/k is fast enough. 2) I'm look
557.
▲
by
chousuke
10y ago
I was actually asking what it actually does, not what it does conceptually. My main issue with these advanced "easy" solutions is that while they're easy to setup, often that comes at the cost of missing understanding of be
558.
▲
by
chousuke
10y ago
When you issue that command in MemSQL, what does it actually do? Physical replication in PostgreSQL is a bit more work to set up, but its behaviour is rather straightforward. As far as I understand it, all it really does is the same as a st
559.
▲
by
chousuke
10y ago
I think this applies to more than just coding. Being a sysadmin, code that I write tends to be in the form of puppet manifests, and these things do apply. There's one more rule of thumb I use to determine how I should approach building
560.
▲
by
chousuke
10y ago
I used the lastpass CLI tool and some UNIX tools to do a tentative check of which of my domains might be affected. Something like the following should work okay: lpass ls | egrep -o '[a-z]+\.[a-z]+' | sort > mydomains.sor
561.
▲
by
chousuke
10y ago
Ctrl-K is just what came to mind. I think it works in both nano and emacs, and the mnemonic is "kill" Emacs is without a doubt superior technology when compared to vim. There are perfectly usable vi clones that run on Emacs, after
562.
▲
by
chousuke
10y ago
I'm actually not a native speaker either (I'm Finnish). I think 八つ当たり might derive from the same idea as 八方 which means "every direction" even though it's literally "eight directions". I'm guessing th
563.
▲
by
chousuke
10y ago
Now that you mentioned it, the first association that came to my mind is with the character 八 (eight) which is part of 八つ当たり (yatsuatari), which in turn means venting anger or frustration on someone who does not deserve it. Heh.
564.
▲
by
chousuke
10y ago
It's not the shortcuts, it's how they work. The thing about vi shortcuts is that they form a composable "language" of sorts, so instead of having to memorize a set of shortcuts for doing specific things, you memorize m
565.
▲
by
chousuke
10y ago
I think Clojure is doing just fine. I've seen it used in "real-world" proprietary software (custom-made for a client by a third party). It's just usually packaged as a jar file, so no-one notices unless you look for cert
566.
▲
by
chousuke
10y ago
The purpose of a backup is to avoid data loss in scenarios included in your risk analysis. For example, your storage system could corrupt data, or an engineer could forget a WHERE clause in a delete, or a large falling object hits your data
567.
▲
by
chousuke
10y ago
I'm pretty sure most solutions on the internet consist of bubble gum, some tape and lots of handwaving. Gitlab's screwup is hardly unique, even if it was very public. It's difficult and expensive to build and maintain a sol
568.
▲
by
chousuke
10y ago
I'm pretty happy with neovim nowadays... With Neomake, I get enough "IDE" features that I can stay productive, and it's fast enough that I don't miss Emacs' superior tools. I don't think I can ever get use
569.
▲
by
chousuke
10y ago
Having a snapshotting storage system (NetApp) once saved a lot of pain when I accidentally deleted the wrong virtual machine disk from an internal server (hit the system disk instead of a removed data disk) I was able to recover the root di
570.
▲
by
chousuke
10y ago
> You still have to profile and test carefully. I wish more software provided appropriate metrics for performance analysis in live systems. I've seen people blaming the CPU or the disk or the database or the network for issues, but
More ›