Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hibbelig
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
211.
▲
by
hibbelig
6y ago
I argue that it’s not possible to determine the mime type of a file from its contents. For example the content could be malformed. An editor or IDE should still highlight it so the user can find the syntax error. Of course, for some files i
212.
▲
by
hibbelig
6y ago
"Finally, a command line shell for the 90s" That line is what got me to try it. I didn't like it so much at that time. Then I tried it again a few years later. And I switched back, again. Recently, I've tried it agai
213.
▲
by
hibbelig
6y ago
If you search for the heading "All-New Design Enabled by M1" (near the beginning), then there is an image that shows the layout of the small keyboard. Further down, under "Touch ID Comes to iMac, Along with Color-Matched Acc
214.
▲
by
hibbelig
6y ago
Having used one, I guess people just behave differently. For example, when riding an elevator, you might be looking at your smartphone, but if you take the stairs, you don't. Getting onto and off a paternoster is pretty exciting, so y
215.
▲
by
hibbelig
6y ago
Once I saw kids begging and I wanted to give them money. But they pointed at the packed leftover food from the restaurant. Then I knew it was not a scam and it taught me about the living conditions in that place. Thank you for the chance to
216.
▲
by
hibbelig
6y ago
> Genuinely curious why multicursor is a big deal? It is easy to see what is going to happen. Also, you can do things that aren't possible (or very hard) with regexes. Example: You want to add an argument at the beginning and at
217.
▲
by
hibbelig
6y ago
I guess the appeal of Datalog is the recursion that can be expressed in rules: has_descendant(?ancestor, ?descendant) :- has_child(?ancestor, ?child), has_descendant(?child, ?descendant). Here, the assumption is tha
218.
▲
by
hibbelig
6y ago
I thought it was about empty strings... Going to check that
219.
▲
by
hibbelig
6y ago
The ADHD bit was in the OP. Don’t scold your parent poster
220.
▲
by
hibbelig
6y ago
We had student surveys at university, and one professor was admired for his leg work during lecture :-)
221.
▲
by
hibbelig
6y ago
What are you doing? Nutella goes with cheese (Gouda) and salami goes with honey!
222.
▲
by
hibbelig
6y ago
What does this mean for the different devices? Will more be supported? I’ve got a cubietruck and a pinebook pro...
223.
▲
by
hibbelig
6y ago
> You may not use "git cat" very often, but what about "git checkout <SHA>"? If commits were stored as diffs, then Git would have to rebuild a tree of the very first commit, then replay every single diff up to
224.
▲
by
hibbelig
6y ago
Here is the paragraph that describes what rebase does: > This operation works by going to the common ancestor of the two branches (the one you’re on and the one you’re rebasing onto), getting the diff introduced by each commit of the br
225.
▲
by
hibbelig
6y ago
> If you think a commit is a diff, you have a mismatch between the mental model and what's actually happening behind the scenes. This will make it difficult to understand concepts later on. I find that thinking of commits as snaps
226.
▲
by
hibbelig
6y ago
They say that UTF-16 is a fixed width encoding. But I don’t think this is the case.
227.
▲
by
hibbelig
6y ago
About verbosity: you needed to define classes for so many things. Eg you want others to hook into processing in certain places. So you create a listener interface with some methods. And the provider needed to work with those, and the consum
228.
▲
by
hibbelig
6y ago
I believe that Unicode has multiple representations for Latin characters with diacritics: ä can be represented as a single character, but it can also be represented as two characters, “a”, plus “add two dots to the previous character”. You
229.
▲
by
hibbelig
6y ago
Uncle Bob works for a consultancy. And I guess it’s easier for them to get funding to reimplement something (then it’s greenfield) than to maintain some existing piece of software.
230.
▲
by
hibbelig
6y ago
I find that Lazygit provides a nice UI for staging, too: You can state an entire file or just lines(!) from a file. I wish it allowed me to stage a hunk, too. But I make do with staging all lines from that hunk. It is not a lot more effor
231.
▲
by
hibbelig
6y ago
But making a separate commit for the minor fix is onerous once your working copy has accumulated other changes. That's what the OP says -- you have to use "git add -p" and that is onerous.
232.
▲
by
hibbelig
6y ago
They made sure that the employees cannot select a different employer because they are in a small town in the middle of nowhere with no other employers.
233.
▲
by
hibbelig
6y ago
I reported a bug to a neighboring team. They responded to try again and they would revert back tomorrow. So I asked whether they had applied a quick fix and they would undo the fix tomorrow? So then I learned a new meaning of revert that is
234.
▲
by
hibbelig
6y ago
I see. Thanks! Quite a few pitfalls there, though. If I was doing computer graphics often, the geometry wouldn't be a problem I guess. But I've not done any such thing in decades. If the job needs the geometry, then it might be
235.
▲
by
hibbelig
6y ago
> 1. Write code that takes in a rectangle, coordinate, and distance, and tells if that coordinate is within the distance of the rectangle. Distance from the center of the rectangle? Easy. From the closest corner? Easy. From the clo
236.
▲
by
hibbelig
6y ago
So the benefit to the employer is that they can let the people go when no longer needed. The benefit to the employer is that they might be able to secure a permanent job. It looks lop sided to me.
237.
▲
by
hibbelig
6y ago
Don't forget that the notice period applies to all companies and all employees. So the whole culture expects that, and works with the long lead times.
238.
▲
by
hibbelig
6y ago
They are saying that they need to run Docker precisely because they need different package versions. Given that Docker is required, Linux is attractive because then you can run Docker without running a Linux VM.
239.
▲
by
hibbelig
6y ago
You can ask IntelliJ to analyze your code and then it will tell you the places where a method could be static, for example. As far as I know the Java compiler doesn’t warn about this. So building the project will not tell you. Eclipse has a
240.
▲
by
hibbelig
6y ago
No! Because I wouldn't have done all the failing things. Example: I am a Unix user and I want to delete a directory. But I don't know how to do that. So I say "ls /bin" and think that maybe the "d" in &
More ›