Better HN
topnewbestaskshowjobs
Log inSign up

MrHus

76 karma · joined May 5, 2011 (15y ago) · 29 submissions

Submissions

1.

I Migrated from Jest to Vitest(maartenhus.nl ↗)

1 points · by MrHus · 11mo ago · discuss

comment 1y ago · link · parent

I've been working / upgrading a Next.js application this week, and decided to list my gripes I have with its API.

3.

My Gripes with Next.js(maartenhus.nl ↗)

2 points · by MrHus · 1y ago · 1 comment

4.

The state of the front-end and full-stack job market(tsev.dev ↗)

2 points · by MrHus · 1y ago · discuss

5.

Comparing JavaScript Frameworks part 1: templates(maartenhus.nl ↗)

3 points · by MrHus · 2y ago · discuss

6.

Show HN: uiloos a Headless Component Library(uiloos.dev ↗)

2 points · by MrHus · 2y ago · discuss

comment 2y ago · link · parent

I was just browsing HN because I'm procrastinating solving a date based bug. It is literally this bug! Who said surfing HN is not productive!

comment 3y ago · link · parent

Author here, I wrote this post whilst thinking about how difficult I found it to wrote a Tetris (and failed) when I learned how to program. I hope to inspire novice programmers a little.

9.

A Tetris Clone in TypeScript(maartenhus.nl ↗)

2 points · by MrHus · 3y ago · 1 comment

10.

Recreating the Matrix Rain Effect(maartenhus.nl ↗)

2 points · by MrHus · 3y ago · discuss

comment 3y ago · link · parent

I have a pet peeve: I find it annoying when someone uses "const lambda" to define named functions instead of using the "function" keyword.

I thought I'd air my grievances to the world.

12.

The Invention of the Function Keyword(maartenhus.nl ↗)

1 points · by MrHus · 3y ago · 2 comments

comment 4y ago · link · parent

Years ago through HN I got introduced to Richard Buckland's course at UNSW on YouTube. It featured a microprocessor called the e-4917 which has always captivated me.

The reason is because I'm from a generation that learned programming in Java / Python and PHP. Which are higher languages that do not require knowledge about the way the "metal" works.

I've always been jealous of people who got to get their start in assembly, they seem to have a deeper understanding of the computer itself. Whereas I only barely understand the "higher" software parts of the computer.

So when I came across Buckland's videos's it was like this part of the computer was finally revealed to me. Seeing the CPU's interact with the memory taught me a valuable lesson:

That at the lowest level what is in a memory "cell" can be both an instructions to a program or the data used in a program.

I hope that with this post I can reach someone how used to be like me, and get them to a lower level.

PS: I also wrote a part two explaining how I programmed the emulator using React and TypeScript:

https://www.maartenhus.nl/blog/fantasy-cpu-emulator-part-2

14.

Show HN: Made a e-4917 emulator with a short tutorial(maartenhus.nl ↗)

29 points · by MrHus · 4y ago · 3 comments

15.

Creating a Fantasy CPU emulator part 2(maartenhus.nl ↗)

1 points · by MrHus · 4y ago · discuss

16.

Show HN: Made a e-4917 emulator with a short tutorial(maartenhus.nl ↗)

4 points · by MrHus · 5y ago · discuss

comment 5y ago · link · parent

If you do not know what flash fill is, like me, this page shows a video of the feature:

https://support.microsoft.com/en-us/office/save-time-with-fl...

18.

Pipeline Operator: Hack vs. F#(maartenhus.nl ↗)

1 points · by MrHus · 5y ago · discuss

comment 5y ago · link · parent

"The researchers can't say for sure that D.W. was directly controlling his pupils, but from their many tests, they did not find any evidence that he was using indirect strategies."

By reading this paragraph it states that they cannot know for sure. This makes the article's title very "clickbaity" to me.

comment 5y ago · link · parent

This is very true, and what I mostly use lodash for these days. I also like the string utilities such as capitalize, and the utilities for dealing / getting random values.

21.

Lodash's Chain vs. Native Methods(maartenhus.nl ↗)

38 points · by MrHus · 5y ago · 22 comments

22.

Creating a Typewriter Effect using React and a generator function(maartenhus.nl ↗)

1 points · by MrHus · 5y ago · discuss

23.

Show HN: “Fetch” request progress bar for React(github.com ↗)

2 points · by MrHus · 9y ago · discuss

24.

Using ui-router as a Component Router(dontpanic.42.nl ↗)

2 points · by MrHus · 10y ago · discuss

comment 13y ago · link · parent

Everyone knows but it's nice to be reminded sometimes that Apple's level of polish is not the work of gods, and that it can be attained by hard work. The media likes to portray Apple as a magical force and deify's Jobs as the grand Wizard, it nice to see he's just a guy behind the curtains.

comment 13y ago · link · parent

In my case I had a date that I needed to parse from JSON. It was in this format: 2012-01-21. I parsed it using YYYY-MM-dd. It should have been yyyy-MM-dd for the reasons above.

It is not technically a bug but it real easy to get wrong. Perhaps they should have picked sometimg other than YYYY for week years.

comment 13y ago · link · parent

I fixed the same bug today, it happens when using YYYY instead of yyyy as a dateformat. YYYY is the year of the week the day falls in.

comment 15y ago · link · parent

I think its a great idea I'm especially interested in the custom UI code. I could learn a thing or two.