Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jesseduffield
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
jesseduffield
5y ago
using `var err error` at the top is a sensible solution, I'm surprised this isn't the norm. As for dealing with the errors, there is value in wrapping an error with a message at the source of the error, but much of what follows is
62.
▲
by
jesseduffield
5y ago
I'm afraid I'm not smart enough to deliberately use sleight of hand in one of my posts, but I take your point. I'll update the post to address your criticisms and others from this thread. My main motivation for writing the po
63.
▲
Code Smell of the Day: Type Keys
(jesseduffield.com)
85 points
by
jesseduffield
5y ago
|
74 comments
64.
▲
Code Smell of the Day: Type Keys
(jesseduffield.com)
1 points
by
jesseduffield
5y ago
|
0 comments
65.
▲
by
jesseduffield
5y ago
Looks like a pretty cool product. To play devil's advocate I'd like to poke holes at two things: Product team caring about quality: Devs need to balance quality with speed, and feel appropriately ashamed when something breaks on p
66.
▲
by
jesseduffield
6y ago
After getting sick of using Golang in all my other side projects I decided to learn me some Rust and lazycli is the result! I've always found it annoying to run something like `docker ps`, copy the container id, then type `docker stop
67.
▲
LSD and the Wrong Abstraction
(jesseduffield.com)
2 points
by
jesseduffield
6y ago
|
0 comments
68.
▲
by
jesseduffield
6y ago
I couple of weeks ago I did a deep-dive into JavaScript scoping and learnt a lot about how closures work under the hood and why we the `this` keyword exists in the first place. I wrote a guide that explained everything to my two-weeks-young
69.
▲
Confused about closures and 'this'? Check out my guide to JavaScript scoping
(jesseduffield.com)
2 points
by
jesseduffield
6y ago
|
1 comments
70.
▲
by
jesseduffield
6y ago
Those brackets get me every time. Fixed :)
71.
▲
by
jesseduffield
6y ago
If you want to split a file into 5 horcruxes _and_ you require all 5 horcruxes must be present to reconstitute the original file, then each horcrux will be one fifth the size of the original. However if you allow a subset of horcruxes to re
72.
▲
I made an app that lets you split a file into horcruxes
(github.com)
243 points
by
jesseduffield
6y ago
|
80 comments
73.
▲
by
jesseduffield
6y ago
Hi all, I thought I'd share this guide that I wrote after coming across some weird applications of array functions in my workplace. Hopefully you like it, and I'm interested in feedback :)
74.
▲
Guide To Array Functions: Pick the least powerful tool for the job
(jesseduffield.com)
5 points
by
jesseduffield
6y ago
|
2 comments
75.
▲
by
jesseduffield
6y ago
I just came across the term of https://en.wikipedia.org/wiki/Leaky_abstraction . I think that term captures what we're talking about, do you agree?
76.
▲
by
jesseduffield
6y ago
I agree with your distinction, however I'd say that it's abstraction all the way down: the code you write is an abstraction of the business requirements, which is itself an abstraction of the business domain, and when you're
77.
▲
by
jesseduffield
6y ago
I disagree about the primacy of naming and metaphor here. From my perspective, the only reason the unix pipe is intuitive to people is that it actually behaves like a pipe. I don't think that the abstraction of 'pipe' started
78.
▲
by
jesseduffield
6y ago
In my mind, abstraction is finding a single representation for various things that share traits. If those things happen to be chunks of code all performing the same task in the same way, then factoring the code into a method would be an exa
79.
▲
by
jesseduffield
6y ago
I consider abstraction to be about giving various concrete things the same representation. In this case I'm saying that we're over-abstracting by pulling too much of the dissimilar code between the examples into the one representa
80.
▲
Beginner's Guide to Abstraction
(jesseduffield.com)
243 points
by
jesseduffield
6y ago
|
79 comments
81.
▲
Struggling with NPM? I made a terminal UI for it!
(github.com)
2 points
by
jesseduffield
6y ago
|
0 comments
82.
▲
My article on opensource.com about the power of lazygit
(opensource.com)
1 points
by
jesseduffield
7y ago
|
0 comments
83.
▲
In React, the Wrong Abstraction Kills Efficiency
(jesseduffield.com)
2 points
by
jesseduffield
7y ago
|
0 comments
84.
▲
Just wrote up a cookbook for IO in Go. You may find it useful
(github.com)
3 points
by
jesseduffield
7y ago
|
0 comments
85.
▲
by
jesseduffield
7y ago
Hello all! Based on the feedback I've received in the last day I've made some improvements: I'm now making use of Samir's Secret Sharing Scheme meaning you can now specify a threshold of horcruxes required to resurrect t
86.
▲
by
jesseduffield
7y ago
wow that is very similar indeed. I suppose the advantage of mine is having no requirement for GnuPG but that solution is quite impressive
87.
▲
by
jesseduffield
7y ago
Originally I was using n separate keys, however switched to splitting the key based on advice from a redditor. I'll switch back to n keys and see if it slows things down much. I'll also have a look into ssss, thanks :)
88.
▲
You can now make horcruxes out of your confidential files
(github.com)
29 points
by
jesseduffield
7y ago
|
17 comments
89.
▲
by
jesseduffield
7y ago
I've just released a new version which works better with light backgrounds, so feel free to give that a shot and let me know your thoughts :)
90.
▲
by
jesseduffield
7y ago
Thanks :) As for TUIs vs web UIs, I believe so. The closer the UI is to the command line, the shorter the feedback loop and the more options for customisation. I'm someone who struggles to context switch so if I can do something witho
More ›