Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hzhou321
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
49 ms
·
31.
▲
by
hzhou321
4y ago
Only use one notebook at a time. Always write down a date first, on every page if your notes spans to another page. Write down your notes sequentially. Had a diagram in the middle of the page? Continue notes at next page unless you are anno
32.
▲
by
hzhou321
4y ago
> "They aren’t a record of my thinking process. They are my thinking process." This exactly! I think with pen and notebook. I also think without pen and notebook, such as during my driving and running. Without notebooks, I ofte
33.
▲
by
hzhou321
4y ago
If we only can have one 20x programmer on the team and the rest, let's say 100 or so, have to be 1x programmer, then absolutely the emphasize should be on 1x programmers. But if it is one 20x programmer on a team of 10, that doesn'
34.
▲
by
hzhou321
5y ago
I think you are thinking of "redundant" in terms of information. A syntax does not carry any information on its own. It is a frame for information to reside in.
35.
▲
by
hzhou321
5y ago
I think Java Script compiler will assume its guesses for the semicolon cases. Not every one is happy about it.
36.
▲
by
hzhou321
5y ago
> Language syntax is redundant so that compilers can detect errors. Unfortunately, programming language syntax is not as redundant as we would wish. When the code is in the valid syntax, the compiler can parse it. When the code isn'
37.
▲
by
hzhou321
5y ago
The compiler "guessed" your errors. This does not mean the compiler "knows" your errors. A rephrase of your question is -- Why compilers don't always assume the "guessed" correction of your code? This is b
38.
▲
by
hzhou321
5y ago
> Once I dared to clean this up and reuse the authentication response, but it broke everything. I never figured out why. To this day I sometimes lie in bed wondering what could have caused this. Is it just me that get piqued by the soun
39.
▲
by
hzhou321
5y ago
I never thought that you are supposed to copy the code from a book blindly. If you do that, there must be some library that you can use that work better. So treating the code as pseudo code, I thought numerical recipes were excellent, bette
40.
▲
by
hzhou321
5y ago
Color schemes doesn't work unless we are talking about a dozen standard schemes. Otherwise, it is drowning users in choices. What we needed is an interactive fine tuning. Doing it with config files isn't working. We need a web app
41.
▲
by
hzhou321
5y ago
It's not the right abstraction you are making. I assume here we are discussing abstrations above the base programming language level, such as structured vs spaghetti code.
42.
▲
by
hzhou321
5y ago
Abstraction is about the core idea without distracting details. Your core idea is likely to either have a finite bound (if the core idea includes bound) or have no bound (if your core idea is just about number). `int32` have the detail of s
43.
▲
by
hzhou321
5y ago
> Abstraction in general is usually said to be something which helps readers understand code without delving into the details. I agree with this. And to me, this means a good abstraction is necessary to be ambiguous. For example, number
44.
▲
by
hzhou321
5y ago
Why would he want to do programming professionally? I only do it professionally because I cannot afford to do it for fun.
45.
▲
by
hzhou321
5y ago
I guess the word "context" has been misused in computer science. An interface is a computer context. In particular, an interface is full of non-negotiating details. A human context is about why (we need it), what (we want), and ho
46.
▲
by
hzhou321
5y ago
What are the key differences between a human audience and a machine interpreter? It is not the language or prose. It is the structure and order. For machines, details comes first. You declare all the actors and types with every non-forgivin
47.
▲
by
hzhou321
5y ago
[Disclaimer: I only read the first part.] Let's say we include in the C standard library a routine, `const char *scan_str(int fd)`, one only need to remember to free the returned string once finished with it. Or we can even get away by
48.
▲
by
hzhou321
5y ago
The mistake of Knuth is instead of "Literate Programming", he made it, or at least let most people take it, into "Literate + Programming". Depend on which part you focus on, it is either "code" with copious amo
49.
▲
by
hzhou321
5y ago
> If logs bring you some sort of value, then log away. If they don't, then don't. The issue is -- some people find value in the logs but some other people don't. I am in the strong camp that find logging provide negative v
50.
▲
by
hzhou321
5y ago
It appears that the mean, the language and tooling, has become everything, and the end, the software or the program or the results, has been reduced to nothing.
51.
▲
by
hzhou321
5y ago
Focus on the 10%. What an insight!
52.
▲
by
hzhou321
5y ago
For me, the biggest con is the bad code developers commit in order to suppress warnings, both true positives and false positives. The latter really pushes me in the camp of haters firmly. The more warnings you turn on, the more false positi
53.
▲
by
hzhou321
5y ago
An ebook device can easily hold many books and makes it equally easy or difficult to switch chapters or switch books. I think that is the very reason I still much much prefer physical books. Picking up a physical book confines me to a set o
54.
▲
by
hzhou321
5y ago
No, the compiler or preprocessor should process a higher level instruction that you write using the editor. The editor can run the preprocessor or compiler or a chain of them with single click and load or view any intermediate code with con
55.
▲
by
hzhou321
5y ago
> Simple. Programs should themselves be programmed(Generated). Anything that has a structure should be generated, never written. This is the idea behind compilers/assemblers. And if you extend that idea, that's true for some th
56.
▲
by
hzhou321
5y ago
Not sure about the example semantics, but with MyDef ( https://github.com/hzhou/MyDef ), it is trivial -- $call value_ops, val, operate, operate subcode: value_ops(v, @ops) type_t $(v) = allocate();
57.
▲
by
hzhou321
5y ago
On the other hand, I am also quite annoyed that some projects do yearly major version after 1.0.
58.
▲
by
hzhou321
5y ago
Yeah, after 1.x, the 2.0 is one last savior. Beyond that, there is no hope.
59.
▲
by
hzhou321
5y ago
An under powered expensive hardware for running games that are not designed for it? Doesn't sound like a good buy.
60.
▲
by
hzhou321
5y ago
> This would predict that being tactless and accepting tactlessness from others are strongly correlated. This is because most of us will try to understand other people from their own perspectives. This is the case even when one tries to
More ›