Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kbd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
241.
▲
by
kbd
6y ago
> which are more readable in all but the simplest cases. Except in practice, the vast majority of comprehensions are simple.
242.
▲
by
kbd
6y ago
I would have preferred 'stripprefix' for unity with 'strip', 'rstrip', and 'lstrip'
243.
▲
by
kbd
6y ago
I feel a bit misled that two of the "five types of aliases" are functions and regular aliases a second time. Tldr: 1. aliases, 2. suffix aliases, 3. global aliases
244.
▲
by
kbd
6y ago
I haven't done TypeScript/JavaScript in a while. What's the status of ESLint taking over from TSLint (for both the tool itself and the vscode extensions)?
245.
▲
by
kbd
6y ago
One more thing that stands out about the Go... This falls under Windows being a mess, but I want to second what someone else in the thread called out: the software keyboard is just frickin' terrible. "No one on the team must actua
246.
▲
by
kbd
6y ago
> It needs the stand because it doesn’t support itself with the keyboard (like a laptop). Yeah it's primarily a tablet form factor and doesn't come with a keyboard. But that makes it a tablet that stands on its own with the bui
247.
▲
by
kbd
6y ago
> The way the fin awkwardly sticks out of the back By "fin" you mean... the stand? So, the stand means that it doesn't stand on its own? What? You clearly haven't tried one because the built-in stand is fantastic an
248.
▲
by
kbd
6y ago
I've been flagging all the "here's a random wikipedia page" low-effort posts, I recommend people do the same.
249.
▲
Nimporter 1.0 released (seamlessly import Nim code from Python)
(reddit.com)
95 points
by
kbd
7y ago
|
6 comments
250.
▲
by
kbd
7y ago
For reference: $ \cat hellogo.go package main import "fmt" func main() { fmt.Println("hello") } $ go build hellogo.go $ \cat hellonim.nim echo "hello" $ nim
251.
▲
by
kbd
7y ago
Even better, show your local/remote branches in most-recent order and interactively pick the branch to switch to using fzf: https://github.com/kbd/setup/blob/f3ebd5ef2bc8a010357b574c02...
252.
▲
by
kbd
7y ago
I'm interested now that PowerShell is cross platform. For someone reasonably fluent in bash/zsh (and Python, etc.) already, could someone give examples of where they might use PowerShell? http://nushell.sh/ is an
253.
▲
RedMonk Programming Language Rankings: January 2020
(redmonk.com)
9 points
by
kbd
7y ago
|
0 comments
254.
▲
by
kbd
7y ago
Not sure what you're referring to because there is no "union" method/function. There is currently no non-symbolic built-in way to combine dictionaries in an expression. You may be interested to read PEP 584's list o
255.
▲
by
kbd
7y ago
The best way to do dictionary union is already symbolic: {**d1, **d2} This provides a clearer symbolic notation for dictionaries analogous to what's already available with sets. FWIW the pep discusses what this would look like
256.
▲
by
kbd
7y ago
The PEP has this section: > The new operators will have the same relationship to the dict.update method as the list concatenate (+) and extend (+=) operators have to list.extend. Note that this is somewhat different from the relationship
257.
▲
by
kbd
7y ago
Thank goodness sanity prevailed on the operator! We had a whole discussion on HN last time[1] about this, where I argued that dicts are logically subclasses of sets and therefore should share operators. When I saw this headline I accepted m
258.
▲
by
kbd
7y ago
Nim also works very well in vscode. Inline compiler errors as you edit, and so on.
259.
▲
by
kbd
7y ago
It's frustrating that they'd release a new CLI and nowhere address its relation to their existing 'hub' CLI. Edit: found a note in their readme on github: https://github.com/cli/cli#comparison-with-h
260.
▲
by
kbd
7y ago
Eiffel is the reason I always looked at Java as a horrible fad. In high school when I was reading everything I could about software development, I read Object Oriented Software Construction. Immediately after, I read a book on Java 1.2 to l
261.
▲
by
kbd
7y ago
Maybe because it's the layer of the stack most ancient, unsafe, and in need of replacing.
262.
▲
by
kbd
7y ago
So it's purely a bill to spawn discussion... again 18 year olds are old enough to join the military but "it is clear that persons under 21 years of age are not developmentally mature enough to safely possess [cell phones]", t
263.
▲
by
kbd
7y ago
What on earth is their justification? You can drive a car, vote, and go to war at 18 but not use a cell phone? What politician would put their name behind this?
264.
▲
by
kbd
7y ago
I wonder why https://markojs.com/ never gets any traction. It wasn't listed in the front-end frameworks section, even in the free-form part.
265.
▲
by
kbd
7y ago
Lazygit can do this too: https://youtu.be/CPLdltN7wgE?t=70
266.
▲
by
kbd
7y ago
> Also you can spin up multiple development branches of the same codebase without having to switch branches or stash changes (a big deal when you have one giant monorepo). Could you elaborate on this? I’m not familiar with these cloud ID
267.
▲
by
kbd
7y ago
Here's a presentation at PyCon 2017 by the author of pgcli and mycli that's a great answer to your question: https://www.youtube.com/watch?v=hJhZhLg3obk
268.
▲
by
kbd
7y ago
It’s at a disadvantage vs pgcli and mycli because they’re in Python and have access to the excellent Prompt Toolkit (which also powers ipython), while usql is in Go. I started using mycli recently and it actually made me joyful about how go
269.
▲
by
kbd
7y ago
> All id's are named ID or id. From someone who's done a lot of data modeling, imo this is not good advice. I recommend naming your IDs "{table}_id". Then it's extremely clear what it refers to when it's use
270.
▲
by
kbd
7y ago
TIL, thanks.
More ›