HNHacker News
TopNewBestAskShowJobs

munchbunny

6,784 karma · joined April 24, 2012

submissionscomments
munchbunny··on Against SQL
I don’t know if that’s really true these days. Each SQL server has its own dialect with nuances you have to pick up sooner or later, and if you’re a backend engineer for more than a couple years you’ve likely dealt with multiple types of data stores.
munchbunny··on How JavaScript Works: deep dive into call, apply, and bind
Yup in terms of patterns that are easier/harder to understand, I much prefer arrow functions over bind and map/forEach over apply. And explicit function parameters over call though how to replace call is often contextual.

It’s not that I inherently think call/apply/bind are bad (JS programmers should understand them), it’s just that they are old JS-isms and arrow functions/map/forEach/etc. follow pretty consistent conventions across multiple programming languages (readability) and with JS compilers you mostly don’t have to explicitly write JS in the old way any more.

It’s kind of like using malloc/variants in C++, you should be able to understand it, but you mostly shouldn’t need it in new code.

munchbunny··on How JavaScript Works: deep dive into call, apply, and bind
Agreed, this article takes a long time to explain the easy part and slides right past the hard part, which is the mess that is the this argument in general.
munchbunny··on Boring Problems Need Attention Too
It's also not just edge cases in English or any specific language. The concept of a "word" doesn't exist in some languages. Chinese, for example, only has something comparable that is contextual and not syntactic. So how do you define "word count" in a document that mixes Chinese and English? Ignoring the Chinese characters altogether seems incorrect in the spirit of the metric, and trying to count using English syntax rules will still give you something incorrect in the spirit of the metric.
munchbunny··on Hackers used Slack to break into EA Games
As long as your authentication scheme is based on a bearer token, you can't really prevent it, but binding to IP and setting short expiry can help motivate it.

If you want to avoid this, you have to use something in your authentication scheme that can't leave the device/user, so we're talking certificate or other public key crypto based schemes.

TLS mutual authentication is one common tactic for this, although the scenario itself is uncommon.

munchbunny··on Seven Years of Factorio Friday Facts (2020)
Having a PM to help me stay focused would not be a bad thing when I play Factorio. However, that would probably come bundled with having a PM constantly ask me to half-ass (I mean MVP) three different new projects in the factory in the time it would normally take me to full-ass one project.
munchbunny··on Malloc broke Serenity's JPGLoader, or: how to win the lottery
Normally I wouldn't expect it either, but if you know it caps out at single-digit numbers of elements, then it's not the worst idea.

I'd still just use a plain array, but my point was that hash maps aren't necessarily big and unwieldy.

munchbunny··on Microsoft Teams Calls will soon include end-to-end encryption
I don't necessarily agree with their decision to put it behind a button that isn't obvious, but I can see why they made that decision. Every additional step required to set up a chat makes actually getting to a chat more tedious.

All of the encrypted messaging apps have to deal with the fundamental problem of deferring trust verification to something else, somewhere else, and that work has to go somewhere, sometime. It seems Signal has decided that (1) it shouldn't be centralized, like through Keybase, and (2) verification of identity on first contact is less of a risk than MITM, and the fact that it's possible and people do it is enough of a general deterrence. It'll stop anyone who wants to be stealthy.

munchbunny··on Malloc broke Serenity's JPGLoader, or: how to win the lottery
That's what I was thinking after reading the rationale, there are plenty of options that don't involve a hash map.

That said, linearly scanning is not much different from a hash map with linear probing that has no empty slots left, so it's not necessarily obvious that the hash map actually takes that much more space.

munchbunny··on What Influences Keyboard Input Speed
The paragraph immediately following what you quoted gives links to the papers and analysis that support these conclusions.

Bit of an odd opener, but at least the author backs it up.

munchbunny··on Stop overstimulating your mind with digital entertainment
My personal experience is that creativity, paradoxically, is a lot like exercise: it's often best done on a regular basis, on a schedule, and you need time to accumulate momentum, and you get better at it with repetition.

It's also best done without the pressure of "I must come up with something". Sometimes there really is pressure and I have to spend some time to trick myself to build up momentum.

I like to schedule time to go on a 30 minute walk with my phone in Do Not Disturb mode.

munchbunny··on Ask HN: Do you still use email?
I use email a lot. Just not to communicate with friends.

Personal email:

* Digital records

* Email newsletters

* Transactions

* Notifications

Work email:

* Almost everything. I'd collapse in within a week if I couldn't write/read long form communications to discuss complex topics with colleagues.

munchbunny··on Analysis of blood markers predicts human lifespan limit
I find it funny how people believe a simple molecule made from a dozen atoms is somehow the elixir of immortality

We've absolutely been here before with vitamins, both the fact that they're simple molecules and part where we over-promise what they can do. (Example: vitamin C mega-dosing)

munchbunny··on Why Is It So Hard to Detect Keyup Event on Linux?
What's obvious to you might not be obvious to everyone. I've only heard reference to the issue previously but never looked at a detailed discussion, mostly out of not caring because I've never had to do something that depended on detecting keyup events in Linux in a non-browser context.
munchbunny··on The Missing Semester of CS Education
If word processing were as complex to use as a shell, I’d probably suggest a tutorial on word processing early in the major.

I don’t have to regularly look up how to bold text even in Markdown, but I do have to regularly look up various Bash-isms.

munchbunny··on Vue 3 drops IE11 support plan
Even ignoring non-Microsoft browsers, there's Edge as a still-Microsoft, still-Windows alternative to IE that can be remotely/centrally managed with the same mechanisms. There really shouldn't be any reason to stick with IE11 anymore.

The only real remaining argument I can think of for IE11 is if you still have business-critical, legacy ActiveX applications.

munchbunny··on Starting a crypto project
As someone who works on stuff that involves cryptography but not cryptocurrency, I agree, but at this point I consider it a lost cause. Cryptocurrencies have taken over so much of the popular imagination that even when I say "cryptography" I get responses like "oh you mean like Bitcoin?"
munchbunny··on Beginner’s guide to mechanical keyboards
I agree for the most part. There are, however, two cases that come to mind for me as keyboards that did make a substantial difference:

1. Split-key keyboard. Got one when I was getting RSI issues in my wrists. That keyboard really did make a difference.

2. Butterfly keyboard on the Macbook. I hated it. My typing precision suffered. It's certainly subjective, but I was dropping my A's everywhere.

Other than that, my current mechanical keyboard has been mainly just a "it feels nice" thing, not a "I'm a better programmer because of it" thing.

munchbunny··on Beginner’s guide to mechanical keyboards
My personal experience has been that it's not the membranes that wear out first, it's the little plastic feet that hold the keys.
munchbunny··on Beginner’s guide to mechanical keyboards
I've never encountered this sort of problem with ANY keyboard I've owned in 30 years, no matter how crappy.

I have, but only under very specific circumstances: playing Overcooked with two players on one keyboard. This will occasionally mean six keys simultaneously pressed and then someone notices key presses just go missing.

Also, not all keyboards with mechanical switches have N-key rollover. Many tout "anti-ghosting" which means different things that you have to look in the specs for.

munchbunny··on Beginner’s guide to mechanical keyboards
These days you can get solid mechanical switch keyboards in the $60 to $100 range. The only downside is that they all seem to come with LED backlighting and obnoxious gamer marketing, but once you turn off the light shows they're perfectly good keyboards. I think they would qualify for "Model T" status.

They have mechanical switches but often lack N-key rollover (I think the blog post gets this wrong) and instead have a watered down form marketed as "anti-ghosting". But that's more than enough for all purposes except maybe Emacs olympics and social prestige with keyboard-philes.

I bought a Filco Majestouch 2 three years ago when I finally had to retire my 8 year old Sidewinder X4, which was a $40 membrane keyboard with deeper-than-usual key travel. I can definitely say moving from that to the Majestouch 2 has not made me a better programmer, typist, or gamer. And it hasn't helped with ergonomics either. It just feels better the same way shelling out the extra couple hundred bucks for a high end graphics card makes games feel better.

I owned an actually ergonomic split-key keyboard as well (Goldtouch) when I developed RSI-related wrist problems as a teenager and kept it around for 15 years. That keyboard made an actual difference and I would take it out of the closet whenever my wrists started acting up even from the Majestouch 2. But you don't usually see ergonomics front and center in super expensive mechanical keyboards - because IMO in that price range and in that community it hasn't been about practical concerns for a while. And that's fine - I'm not going to judge someone's choice of things to collect - but I see no practical benefit to spending substantially more on mechanical keyboards.

munchbunny··on DPA blocks facial recognition system in Italy and MP proposes moratorium
If they're going to physically threaten you into unlocking your phone, a PIN or passcode won't change that.
munchbunny··on DPA blocks facial recognition system in Italy and MP proposes moratorium
If we’re getting that deep into the hypotheticals, couldn’t said person just not set up biometric logins?

For the rest of us where physical coercion to unlock the phone isn’t in the threat model, it really does improve on the trade offs between security and convenience.

Feels disproportionate to say we should not do the latter because of the former.

munchbunny··on Google have declared Droidscript is malware
> Non-plain English is usually a flag that the person you’re dealing with is not smart.

I don't think it's that they're not smart. It's that they have a separate agenda, often deflecting responsibility. People often use this sort of indirect wording even without consciously realizing it.

munchbunny··on Alphabet reports Q1 earnings
Personally I've felt that useful results have been pretty consistently on the first page for a while, and some of the specialized widgets have even improved that, but over the last ~3 years more and more of that has become an exercise of dodging the ads to find the actual result. Feels like the frog getting boiled.
munchbunny··on A Pixel Is Not a Little Square (1995) [pdf]
Fair point. I'm not really thinking of it as little squares, I'm more just thinking in terms of integer coordinates in a 2-d Cartesian space. But I do think I'm inherently abstracting the "screen" as a grid of square pixels because it's a serviceable abstraction that is substantially simpler than "here is the whole signal processing pipeline that sits between my <image> tag and some phone user's eyes."

I suppose you're right that what I'm describing is just the lack of conscious mental model for what the pixel represents, versus when I'm writing a shader, where I'm actively thinking through the mental model of a pixel.

munchbunny··on A Pixel Is Not a Little Square (1995) [pdf]
I agree in the sense that image scaling definitely requires you to think of pixels as more than just squares, but IMO browsers and OSes have gotten good enough at it that as a web developer you mostly don’t have to think too hard about it other than to remember to use high enough resolutions.
munchbunny··on A Pixel Is Not a Little Square (1995) [pdf]
> But today... aren't they, at least as a first-order approximation? (With some further adjustments to avoid antialiasing artifacts, desired sharpness, and so forth.)

It still depends on what you’re using them for. Image that will be rendered straight to a webpage? Yeah, it’s probably a fine first order approximation. But that’s not the only context that gets rendered on a modern screen.

Say you’re using it for 3-d scenes. Yeah you absolutely should pay attention to what the paper says about footprint and sampling and filtering because, when you render it onto the screen, all of the processing steps between pixels on a texture to pixels on a screen require awareness of pixel footprint.

munchbunny··on Feasibility of stealthily introducing vulnerabilities in open source software [pdf]
I doubt not being able to contribute to the Linux kernel will affect their CS department's rankings. Maybe it'll affect their reputation in the short term.

The teaching hasn't changed, and the CS field is a very large space, and the Linux kernel is a prominent but small part. That's not to say the Linux kernel is insignificant, just that the CS field is very big.

Personally, I see this as a group of researchers going about it outside well-understood ethical patterns for pentesting and getting punished for it. I think it's necessary for the university to be made an example of, but I don't think it necessarily reflects badly on the whole CS department. Hopefully the IRB does a postmortem of this and concludes that ethical review also needs to field-specialist input in general.

munchbunny··on Surface Laptop 4
It’s driving two 1920x1200 displays. Then again I’m also using a first gen Surface Book and first gen dock, so this was well before 4K displays were becoming common.
← PreviousPage 10 of 34Next →