HNHacker News
TopNewBestAskShowJobs

crehn

881 karma · joined November 25, 2016

submissionscomments
crehn··on JSON
> why support single quoted strings? That just makes parsing harder.

And something that a lot of language designs ignore: it makes writing harder and unnecessarily contentious. People will use them inconsistently, which has the usual effects any inconsistency has on cognitive load: causes others to question why/how/where.

crehn··on JSON
But unfortunately YAML is a complex maximalist mess with a million ways to do the same thing and more ways to shoot yourself in the foot.
crehn··on Ask HN: What is a better approach to interviewing?
Some companies (e.g. Amazon) have a separate verification interview to ensure the candidate is the author of the deliverable.
crehn··on A Review of Language Learning Tactics
After learning Korean to a fluent level (and working there for 3 years), here's some things that come to mind:

- Be persistent. Studying languages is often boring, annoying and takes years. Nobody likes memorizing vocabulary. Embrace it. Study every day, even if that means only reviewing 5 words on some days.

- Don't try to analyze and understand everything. Communication isn't a science, treating it as such is unproductive and frustrating to the learner. There will be many things that at first sight make little sense, and that's okay; just move on. Language can be very nuanced, but with persistence you'll eventually "feel" the subtleties.

- Passive learning is super helpful. Change the phone language, watch movies (whether in the target language with subtitles, or your native language with target language subtitles), listen to music, etc. Doesn't matter if you don't understand.

- It can be depressing and you'll want to stop. Even after months of studying hard, go to a party with only natives and see how much you'll understand. Likely very little. Know it's normal, and only temporary.

- The hardest part is reaching a level of fluency where your brain no longer actively translates the language.

- Study from multiple sources. Most textbooks explain the nuances in natural language badly.

- Nearly all dialogue in textbooks is unnatural and robotic. Don't imitate textbooks or you'll sound like one.

- Observe and imitate natives. Often, the forced imitations eventually become a natural part of your speech.

- Stop caring so much. Don't try to be perfect. Speak a lot and allow yourself to make many mistakes, because you will.

crehn··on The Unix timestamp will begin with 16 this Sunday
And how would such a solution not be immediately thrown out during code review?
crehn··on Apple: Person-to-person experiences do not have to use in-app purchase
Even without sideloading, the Google Play Store is so full of trash apps that request dubious permissions and are littered with dark patterns. Not that it doesn't happen on the App Store, but it's significantly worse on Android. I saw the state of my little brother's phone (tween) and it was quite shocking.
crehn··on Apple: Person-to-person experiences do not have to use in-app purchase
That sounds like a good guideline to be honest. Perhaps not the best-worded one, but gets the point across and avoids becoming another Google Play Store.
crehn··on Checked exceptions: Java’s biggest mistake (2014)
While we're talking about terrible decisions, can you guess what the following code will print?

  String s = null;
  switch (s) {
      default:
          System.out.println("Hey");
  }
Hint: it will throw NullPointerException.
crehn··on Checked exceptions: Java’s biggest mistake (2014)
On a slight tangent, I'd rather have only checked exceptions, so I know exactly what might throw where. Instead, I have to rely on potentially outdated Javadoc and debugging runtime exceptions in production to find them.
crehn··on Attention is your scarcest resource
What is it about HN that makes it feel much more productive than other similar sites?
crehn··on Metcalf Sniper Attack
Out of curiosity, how does one “divert power”?
crehn··on Conventions for Command Line Options
Well it does keep things simple, and as a side effect removes the cognitive burden of choosing a certain argument style (for both the developer and user).
crehn··on Cloudflare TV
Or anyone that might want to watch without sound, also falls within “accessibility”.
crehn··on Breathing habits are related to physical and mental health
I dealt with serious anxiety in high school and accidentally learned that just forcing myself to breathe slower made everything much calmer.

No need to overthink any special technique. Just breathe slow, and try not to breathe too shallow. Do it as an exercise for a few minutes. Breathe with the stomach (not chest), like a baby would.

crehn··on It’s OK for your open source library to be a bit shitty (2015)
The less there are dependencies, the better.
crehn··on YAML: Probably not so great after all (2019)
Fun fact: YAML is a superset of JSON. That is, any JSON is also valid YAML.

YAML is a complex and unintuitive mess that allows doing every thing in a million ways. I’m surprised it ever got so much traction. TOML is a breath of fresh air next to it.

crehn··on Show HN: A map of the world's virtual museums
I wish the whole experience wasn’t so laggy (on 2020 iPad Pro).
crehn··on How SNES emulators got a few pixels from complete perfection
For those curious, here it is in action: https://m.youtube.com/watch?v=wtMlEcf8x6Q
crehn··on Ask HN: What projects are you working on now?
Regarding (1), I think the parent still has a point. Too many choices can be stressful to the user.

How do you expect users to interact or choose between "7 minute version" and "9 minute version"? Are they expected to keep going up the layers one-by-one until the full version is reached? Are they expected to intuitively know which one to pick right away?

Too many possible choices also delegates the responsibility of picking the number of layers to the writer, which can be an additional stress.

If possible, I'd try to figure out the most common use cases. The interactions and thought processes of users should be intuitive and dead simple to describe. Other than, loving the idea! Keep it up. :)

crehn··on Microsoft unveils full Xbox Series X specs with 1TB expansion cards
I'm still waiting for console games to be 1080p @ 60 FPS.
crehn··on The Life of a Data Byte
> In ASCII every character is a byte, and in Unicode, that’s often not true, a character can be 1, 2, 3, or more bytes.

In a similar note, Unicode isn't really about bytes. Unicode is essentially just a huge map of numbers to characters descriptions. UTF encodings convert those numbers into a sequence of bytes, and vice versa.

crehn··on Please stop recommending Gitflow
> I watch them struggle with git-flow and for me that's a great thing to see because I see them learning an efficient way to work

Maybe they're struggling because it's not efficient, or intuitive?

crehn··on Why are my Go executable files so large?
There is a big difference between choose and do.
crehn··on Calm Technology
You might even want to enable Increase Contrast and Reduce Transparency for a little extra legibility.
crehn··on Vim 8.2
You don't necessarily need any plugins. Vanilla Vim with the occasional ctrl+N is often enough. If you need a more powerful editor, perhaps it's better to just use something like VS Code.
crehn··on Master–Slave Morality
Counterargument: it was meaningful and interesting to me.
crehn··on I am no longer able to use Google with Lynx
How would I get into such accessibility circles?
crehn··on Google Kills Cloud Print
Still, the risk and maintenance/ownership burden is there.
crehn··on Snake game made in Go
Looks good!

Also made something similar, although with much less features and in a single file: http://github.com/hoffa/snake

crehn··on Working all night is not 'a badge of pride'
As you might deduce from context, overnight here means overtime.
← PreviousPage 4 of 9Next →