Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sbjs
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
271.
▲
by
sbjs
8y ago
The common wisdom always says have an off-site backup. But what if the backup is small enough to fit in your pocket? I always have a Swiss Army knife on me anyway so if I have a backup thumb drive that’s the same size, it should fit just fi
272.
▲
by
sbjs
8y ago
The rsync solution doesn't have to be manual. On Mac you can install a launchd script to run using StartOnMount.
273.
▲
by
sbjs
8y ago
Not if I carry the USB sticks in my pocket at all times!
274.
▲
Ask HN: How do you backup your files without depending on a third party service?
160 points
by
sbjs
8y ago
|
107 comments
275.
▲
by
sbjs
8y ago
The article has two examples of how I already find Go to be inconsistent and/or surprising: w, err := b.NewWriter(ctx, "gopher.png", nil) ... _, err = w.Write(data) ... if err := w.Close(); err != nil
276.
▲
by
sbjs
8y ago
Meh, everyone has a preferred type of language they find least surprising. To many Ruby is the least surprising, and Matz used "principle of [his] least surprise" as a guiding principle when designing it, but many other people fin
277.
▲
by
sbjs
8y ago
I personally choose to have so few goals that I can count them on one hand, and remember them at all times. This means I have to say "no" to a lot of interesting ideas that come to mind, so it's a compromise for sure. But it
278.
▲
What we can learn about UI from the past 18 years
(medium.com)
2 points
by
sbjs
8y ago
|
1 comments
279.
▲
by
sbjs
8y ago
Why does that app even exist? All its features are natively implemented in git. And an RSS reader? I'm starting to get the feeling that Mac apps are stuck in 2005. Say all you want about Microsoft or Electron, but VS Code is the only d
280.
▲
by
sbjs
8y ago
This is a major reason why I refuse to get into the video game industry. I read on TIL last week that the video game industry makes more than the music and film industries combined, and it shows. Every mobile game utilizes unethical or at t
281.
▲
by
sbjs
8y ago
This is amazing! I’ve forked this with plans to translate all of it to TypeScript, which really just means adding <T> about 10 times per file, erasing the java doc comments and replacing them with actual parameter types. Still worth i
282.
▲
by
sbjs
8y ago
I’d be more interested in studies showing that you get more productivity by leaving at 4pm than 5pm since that’s when everyone stereotypically starts to slack and goof around on until 5pm anyway.
283.
▲
by
sbjs
8y ago
The old joke goes, Emacs is a great OS, if only it had a decent text editor!
284.
▲
by
sbjs
8y ago
I think this idea is propagated by Swift developers because that’s the only place I’ve ever seen const used this way at all, ever. That said I started writing articles on JavaScript and React and TypeScript in medium and please subscribe an
285.
▲
by
sbjs
8y ago
I’ve always wondered, where did California’s wealth originally come from? Was it the gold rush that started it all?
286.
▲
by
sbjs
8y ago
That’s exactly what Lua was created for, to be a Turing complete configuration language. You can remove the whole standard library though, leaving only the built in operators, variables, functions, and control flow. To some it may seem ugly
287.
▲
by
sbjs
8y ago
Lua was created as a (dynamic) configuration language and I think it’s great for that. It is as full featured as any modern language, complete with lexical functions, and the only thing it lacks is a thriving ecosystem. Its current ecosyste
288.
▲
by
sbjs
8y ago
> "The most important "program" that reads your source code is probably in your brain." Not if you have a good Integrated Development Environment (or IDE for short)! That's an even better "program" than
289.
▲
by
sbjs
8y ago
1. That's just so wrong. CoffeeScript came out 9 years ago . The transpiling craze peaked years ago, and most of the good features of all those other languages have been pulled into modern ES. There's only a few of them left in s
290.
▲
by
sbjs
8y ago
I don't think wasm and JS are competitors. From what I can tell, wasm currently isn't blessed with the same first-class citizenship in the browser that JS is, and I don't think that's in the works either. It looks like w
291.
▲
by
sbjs
8y ago
A programming language and the tools you use with it are tightly integrated: you're never using a language, you're always using a language via a tool. And if all C compilers you might use have warnings enabled for this buggy expre
292.
▲
by
sbjs
8y ago
This is really exciting! I actually ran into two problems that this already solves, one of which I briefly touched on in the article I posted to HN this morning. One is project structure. I came up with a solution for type-safe RPC that req
293.
▲
From 0 to Type-Safe RPC with TypeScript
(medium.com)
2 points
by
sbjs
8y ago
|
0 comments
294.
▲
by
sbjs
8y ago
You can push updates out to a web app even easier: deploy them. Boom, suddenly your user sees changes next time they visit.
295.
▲
by
sbjs
8y ago
Good idea! What's a good free easy to use blogging platform for software devs?
296.
▲
by
sbjs
8y ago
I feel like this is a major point in this article, if not the major point: "Homepage production became suddenly a question of economics: Go with the system’s default format: zero work. Customizing the system to your format: way more
297.
▲
by
sbjs
8y ago
jQuery does a whole lot more than just handle browser inconsistencies. I feel like a shim to the standard DOM API would be better suited for solving that problem. The DOM API has grown a lot.
298.
▲
by
sbjs
8y ago
Why Clojure? It's slow and not type-safe. If you want something a little more dynamic than Java but without losing speed, did you check out Kotlin?
299.
▲
by
sbjs
8y ago
"In the 15 days before the office redesign, participants accumulated an average of around 5.8 hours of face-to-face interaction per person per day. After the switch to the open layout, the same participants dropped to around 1.7 hours
300.
▲
by
sbjs
8y ago
Just wanted to add to your argument an inverse argument (for JSX, instead of against Vue): JSX is actually just JavaScript with this one special rule: <foo bar={baz}>child1 {child2}</foo> becomes transform(&q
More ›