HNHacker News
TopNewBestAskShowJobs

nraf

115 karma · joined June 25, 2014

submissionscomments
nraf··on The April Fools joke that might have got me fired
I got a three day suspension from school for doing this. I sent something mundane like “hello” to entire school. Few minutes later, the IT admin came running down, told me off and took my details.

Made the mistake of telling a couple friends what happened. Said friends thought it would be hilarious to send swear words to the entire school (I was not there).

They played dumb saying they didn’t know what would happen and got off with one day each, I got suspended for three days.

I wouldn’t have minded so much except the next day was an inter-school chess tournament. Thankfully the sympathetic chess coach told me to wait behind the school the next morning and picked me up in the school bus.

nraf··on People are bad at reporting what they eat. That's a problem for dietary research
The estimating is often enough to make better choices.

I know I’m not going to be able to eat my main, a couple slices of pizza, one or two entrees and a dessert with only 800 calories left in my budget.

Sure, I might be somewhat off in my estimate, but in practice, I might forgo the entrees and dessert (or share a bite from someone else), set some of my main aside to take home, and have a slice of pizza.

nraf··on Merry Christmas Everyone
Following your logic, Christianity would be not be inviting to those in Muslim-majority countries.
nraf··on CSS @property and the new style
As someone who really enjoys working with CSS, but also working with colleagues who struggle with it, I strongly recommend Kevin Powell’s YouTube channel.

He has touched on exact feature a few times, here’s a video he uploaded a week ago that shows one useful feature that registered properties enables: https://youtu.be/U8NykwZNbGs

There’s also this article that breaks down registered properties with an easy-to-follow example: https://moderncss.dev/providing-type-definitions-for-css-wit...

nraf··on Supermium – Chromium fork for Win 2003/XP and newer
Our first computer was an MS-Dos machine that our local high school were getting rid of back in 1994. I learned a lot from playing around on the machine, trying to understand the command line.
nraf··on The Timer in WatchOS 10
While I do use timers occasionally (mainly when baking or pressure cooking), I’m surprised to learn that people will set multiple timers just to caramelise onions.

I find that for most cooking tasks, sight and sound are more reliable indicators, and in many cases, the food will need to be stir or flipped so as not to burn.

nraf··on Why don’t Americans eat mutton?
Been getting shoulder on sale for under $7 a kg at Saccas in Melbourne
nraf··on Breakfast cereal is in long-term decline
Overnight oats / bircher muesli is served cold and requires no cooking. The time aspect is to give the oats time to absorb the liquid - cold oats swimming in freshly poured milk isn't the most appetising way to eat oats.

Of course you can "speed up" the process by blending them into a smoothie.

nraf··on Coffee in a Can
As a Melburnian, I can second that Melbourne is coffee-obsessed, and Starbucks is a step up your average takeaway shop coffee.

With that said, there’s a very discernible difference in quality between a decent cafe coffee and a Starbucks coffee.

My heuristic is the size of the small takeaway cup. If the small size is 8oz, it’s almost a certainly going to be average.

nraf··on Morocco earthquake kills more than 1,000
There was an earthquake in Melbourne, Australia earlier this year and a common theme (myself included) was thinking a car had rammed into the house.
nraf··on Show HN: Puck – Open-source visual editor for React
This looks very cool. Is anyone aware of something similar for Angular? We have a half-baked version that's been in pre-alpha for our webapp, but if there's something out of the box that we could leverage...
nraf··on Are cooking videos making us better cooks?
Agreed, I enjoy his YouTube videos, but find other YouTubers who are make as-good or better content, but his articles on Serious Eats were in a league of their own.

There are gems in his videos, but it's a few tidbits here and there compared to the content in his written articles.

nraf··on Are cooking videos making us better cooks?
Many of these items are complety arbitrary. As someone who's been cooking some pretty elaborate dishes for over a decade, I don't actually recall ever coming across these two distinctions.

Why is cinnamon sugar "composite" whereas 5 spice is atomic? Who defines these? Are you suggesting that if you use packaged cinnamon sugar on donuts you can't claim to have made them?

For reference, I mostly roast and grind from whole spices. If I need garam masala, Chinese 5 spice, Lebanese 7 spice, etc, I'll make it from scratch. If I new cumin or coriander powder, etc, I'll grind them in my spice grinder.

Are you suggesting that jarred pasta sauce and pizza are different to each other? Following your criteria, I'd classify both as composite.

Not to say that I disagree with most of the list - there's a distinction between highly processed and cooking dishes from scratch, but it's more nuanced than what you've presented here.

nraf··on Ask HN: What is your policy regarding smartphones for your children?
My experience (as someone who spends too much time on my phone) is that a smartwatch helps avoiding me getting sucked in by my phone.

It’s much less usable and I hate constant notifications on my wrist, so I’ll usually have it on mute and do a quick check at my notifications occasionally to see if there’s anything urgent (usually work or a message from my wife).

I’ll mostly ignore my group chats on WhatsApp and emails, and there’s no risk of me getting sucked into group coversations with friends, YouTube or the Internet (I don’t have social media apps on my phone so that’s not too much of an issue), which is where the real time sink is for me.

nraf··on I don’t buy “duplication is cheaper than the wrong abstraction” (2021)
> for example, the same several lines of code duplicated across distant parts of the codebase dozens of times, and with inconsistent names which make the duplication hard to notice or track down

While I think there’s merit in deduplicating these situations, one pitfall is introducing coupling and tangled dependencies when DRYing.

There are ways around this of course, but I’ve come across a number of instances where deduplication has led to unnecessary coupling between modules.

nraf··on Why Htmx Does Not Have a Build Step
I’ve found Angular updates to be mostly painless since they’ve automated most of the migrations using `ng update`.

That said, I do wait 2-3 months to give time for dependencies to update.

nraf··on Debian is at the heart of the most successful Linux distros
My apologies, I assumed your lawn was Open Course.
nraf··on Htmx is part of the GitHub Accelerator
Curious if anyone familiar with Drupal’s AJAX implementation (at least how it was in v5-7, I haven’t used Drupal v8 onwards) back in the day and has used this can offer a comparison?

A sense a lot of familiarity

nraf··on Math for kids outside of the Calculus Sequence
Ah… IB must’ve been why I found the discrete mathematics subject at university so much easier than my peers did - I’d already been exposed to a lot of it.
nraf··on Throw away your first draft of your code
We do this occasionally as a tech spike - if there’s a lot of uncertainty or if we need to evaluate between a couple different approaches, we’ll dedicate 2-3 days to hacking away with the aim of lifting the “fog of war”.
nraf··on Tremor – The React library to build dashboards fast
If you practice test-driven development, the mindset is slightly different.

Humans can't think of everything all the time - TDD guides you to think about one thing at a time.

No one is sitting there adding a disabled prop on their component that then disables an input for no reason. You had intent when writing it. It's possible that a co-worker distracted you, or you went for a break, or you went down another rabbit hole, and ended up skipping disabling the input based on the prop.

If you're practicing TDD, you would have written a failing test before creating the disabled prop. That test will continue to fail until the productive code has been written. It helps to protect against those thinking errors in the first place.

nraf··on Tremor – The React library to build dashboards fast
An example where it’s helped me personally is when migrating from Angular Material to Ant Design. The test cases gave me confidence the expected behaviour was preserved
nraf··on Tremor – The React library to build dashboards fast
Can you elaborate on what’s problematic with this test? Testing that the component does what expected based on input is telling me the component is working as expected.
nraf··on Observable API Proposal
Is this an issue with observables or an issue with RxJS allowing you to shoot yourself in the foot?

A saner API (as shown in the proposal) has some obvious benefits in handling certain use cases without necessarily devolving into the crazy streams one sees with RxJS.

nraf··on Show HN: Continue – Open-source coding autopilot
Any plans for supporting Jetbrains IDEs?
nraf··on Launch HN: Argonaut (YC S21) – Easily Deploy Apps and Infra to AWS and GCP
This looks very interesting. Been maintaining terraform scripts for a while that are frankly a nightmare to deal with at this stage.

Are there any plans to support private clouds in future?

nraf··on Study finds 90% of Australian teachers can't afford to live where they teach
Clearly you don’t live in Melbourne… good baristas make a massive difference and cafes will pay for them here
nraf··on Tarteel – AI-powered Quran companion
I’m not involved in the project, I’ve just been using it recently and was surprised to see it hadn’t been posted on HN.

It uses Whisper from what I can tell, they’ve released a few models on huggingface: https://huggingface.co/tarteel-ai

nraf··on Do Papercuts Matter?
Papercuts might matter, but there's a time and a place for everything. If you have limited resource-constrained, and the choice is between solving minor issues or driving the product forward, do the latter.

That doesn't mean you shouldn't be improving quirks and annoyances in the product, but such things should be proportional to work that delivers value.

At some point, it can devolve into perfectionism and grind all meaningful progress to a halt.

nraf··on Do Papercuts Matter?
Either that or it's a front
Page 1 of 3Next →