Better HN
topnewbestaskshowjobs
Log inSign up

nraf

115 karma · joined Jun 25, 2014 (12y ago) · 86 submissions

Submissions

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Following your logic, Christianity would be not be inviting to those in Muslim-majority countries.

comment 2y ago · link · parent

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...

comment 2y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Been getting shoulder on sale for under $7 a kg at Saccas in Melbourne

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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...

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

> 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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

My apologies, I assumed your lawn was Open Course.

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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”.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Any plans for supporting Jetbrains IDEs?

comment 3y ago · link · parent

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?

comment 3y ago · link · parent

Clearly you don’t live in Melbourne… good baristas make a massive difference and cafes will pay for them here

comment 3y ago · link · parent

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

123