Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
beautron
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
beautron
3y ago
I enjoyed the attention given to Herculaneum in a computer game called Rome: Pathway to Power (released in 1992). You start the game as a slave who has to escape Herculaneum before Vesuvius erupts. I loved the game as a kid. It's sort
32.
▲
by
beautron
3y ago
These are orthogonal concepts. Roman numerals can describe scale degrees and harmonic function in any temperament. They do not require equal temperament to "work"; they work just as well in just temperament. The numerals describe
33.
▲
by
beautron
3y ago
I grew up with a C64, which I loved. But my Dad would tell me stories about the Amiga, and we'd go look at one in the neighborhood computer store (Software Etc.—loved that place!). The store clerk was more than happy to show off the ma
34.
▲
by
beautron
3y ago
If the box is simple, then it's easier to cast each individual complexity of the system, as needed, into an interpretation that fits and reinforces the box.
35.
▲
by
beautron
3y ago
I feel like were talking past each other. I'm not saying that C has a slicing operator, or that it's typical to define one as a function, or that it's typical to define a slice-like struct in C. I'm saying that if you lo
36.
▲
by
beautron
3y ago
Yes, I'm saying Go's slice operator (and slice type, and related functions) grew out of experience from the way arrays are used in C. To me, this becomes obvious if you read The Practice of Programming by Kernighan and Pike, the
37.
▲
by
beautron
3y ago
Dear Lord, no! I depend on cgo for my game! What's more, I have no complaints about cgo. It hasn't been a performance problem at all (my game runs smoothly at 240hz). And the interface for binding to C is quite simple and nice to
38.
▲
by
beautron
3y ago
I think slices are wonderfully intuitive... if you've worked with C. Slices encapsulate an ubiquitous C pattern, where you pass to a function: a pointer (to an initial array element), and a length or capacity (sometimes both). This pat
39.
▲
by
beautron
3y ago
Emacs uses the word "mode" to mean something different than Vim does. An Emacs "mode" corresponds more closely to what Vim calls "plugins" (Emacs's "major modes" are like Vim's "filetyp
40.
▲
by
beautron
3y ago
For me, Vim is not only (drastically) faster, but also more fun. In Vim, I enjoy the process of text editing itself (in addition to any joy derived from the substance of the text edited).
41.
▲
by
beautron
3y ago
> Vim purports to be more efficient than other editors because it's a modal editor, but that's nonsense. My understanding is that Vim purports to be efficient because it lets users make precise edits (large or small) with minim
42.
▲
by
beautron
3y ago
> You have to glue together small painful commands to do what you want. Painful? Physically or mentally? Physically I find Vim to be pain-free. I've studied and I practice good typing form, which is important—I would look there befo
43.
▲
by
beautron
3y ago
Modes are the core concept on which Vim's design is structured. They organize both the interface and the user's mental model of the text editing process. I did a quick case-insensitive search over Vim's help files, and they m
44.
▲
by
beautron
3y ago
Oh wow! Hadn't heard it like this before, but now I like this way the best. I can finally see clearly where that "extra" rotation comes from.
45.
▲
by
beautron
3y ago
How does Vim feel sluggish? Everything in Vim feels instantaneous to me.
46.
▲
by
beautron
3y ago
This is an enjoyable book! It's an easy read, and the code is nice and straightforward. It avoids getting lost in any programming weeds, revealing the maze algorithms and techniques clearly. I used what I learned to add a maze generato
47.
▲
by
beautron
3y ago
>> I'm always saying that good way to learn language patterns and idioms is to look into standard libraries implementations. > >Why would that be true? This isn't always true, and can't be generally expected, but
48.
▲
by
beautron
3y ago
A few months ago I wanted to add arithmetic parsing to my game's debug console, and went with this approach. While researching the area, I came across this exact blog post, and thought it was perfect. It explains things clearly and con
49.
▲
by
beautron
3y ago
For me, it's less that I want to "tile" windows, than that I want whichever one I'm using to be fullscreen and distraction-free. I don't like visual clutter. If I'm using a program, I want it to be the only thi
50.
▲
by
beautron
3y ago
I'm making a game in Go, and it runs perfectly smooth on my 240hz monitor (and should run perfectly smooth on 1000hz monitors once we get there). The garbage collector has not been an issue, because I use memory the same way as if I we
51.
▲
by
beautron
3y ago
I enjoy Aliens—it's the bigger, more over-the-top production of the two. But I prefer Alien for its intimacy and slowly growing horror. John Hurt's character's arc stunned me as a child, and is still one of my favorite turns
52.
▲
by
beautron
3y ago
Same for me on centurylink. I've run into this on a number of sites. I don't like it.
53.
▲
by
beautron
3y ago
> Later comes along Go. No dependency management at the start. There ended up being two ways of specifying dependencies. At least one included putting github.io/username/package into your code. That username changes and all you
54.
▲
by
beautron
3y ago
The caller can check if the result != nil. If I get a result that came with a non-nil error, and I still plan to do something with the result, then it seems natural to think about the possibility that the result might be nil. I would consul
55.
▲
by
beautron
3y ago
Documentation has immense value beyond just this specific error situation. Its a burden worth taking on regardless of how errors are handled. So it's not that a type is more of a burden than documentation, but rather that a type is a
56.
▲
by
beautron
3y ago
I've been using Go for almost a decade, and I don't recall this ever biting me. It doesn't feel like a trap. Go has a convention of documenting each function with a comment (which is adhered to by the standard library, my own
57.
▲
by
beautron
3y ago
This is exactly how I feel about Go error handling (which I prefer to other languages). Error checks become a syntactic formalism that are easy and quick to type, easy and quick for the eye to scan, but have just enough presence to make sur
58.
▲
by
beautron
3y ago
I don't consider this an anti-pattern, but part of the flexibility gained by Go's lightweight approach to error handling. I believe Go was even designed with this use case in mind (the standard library uses it in many places, and
59.
▲
by
beautron
3y ago
This is a neat perspective. I think it can help for avoiding creator's block (more commonly known as "writer's block," but I'm being more general here). It's easy to avoid getting started because you don't
60.
▲
by
beautron
3y ago
I see what you did there ;) Yes, Paul McCartney is a big fan of the album Pet Sounds. He bought a copy for each of his children to teech them about music. He elaborates about Pet Sounds a great deal in the interview below: https:/
More ›