Better HN
topnewbestaskshowjobs
Log inSign up

brainlessdev

355 karma · joined Feb 3, 2017 (9y ago) · 110 submissions

Submissions

comment 5y ago · link · parent

So is the progress bar on GitHub and many webpages. I think in most sites, users aren't interested in how much it's loaded but rather in the fact that it's loading at all (note that this doesn't apply to all progress bars).

Implementing a fake progress bar can be done once and it works everywhere, but a controlled progress bar that's accurate needs to be connected to some actual progress data, and this is engineering work for questionable results.

comment 5y ago · link · parent

Just curious: what's the connection between paella and Arabs? I lived in Valencia for about 15 years and never heard of this.

In Valencia, it's popularly accepted as a fact that the origin of paella is in the Albufera region next to the city.

I don't mean for this to sound snarky, I'm no historian and my knowledge about this is purely casual.

comment 5y ago · link · parent

The OP of that question is Manishearth, from the Rust core team!

comment 5y ago · link · parent

I use my own extension [0] to warn me about links to domains that I dislike, such as Medium.

[0] https://addons.mozilla.org/en-US/firefox/addon/nay/

comment 5y ago · link · parent

I implemented this extension just to stop myself from clicking on Medium links https://github.com/fnune/nay

comment 5y ago · link · parent

I spent around five years playing and composing for a prog/death metal band :) https://open.spotify.com/track/0Dv4n2pNxb3aJ8WE9KjMKO?si=9ec...

Not everyone's cup of tea!

comment 5y ago · link · parent

Awesome article!

A tip: the images are way too heavy for the 600w you gave them. They range from 2 to 7MB. You can probably get them down to like 50KB each!

68.

CSS: Space between items with and without Flexbox gap(fnune.com ↗)

2 points · by brainlessdev · 5y ago · discuss

comment 5y ago · link · parent

I use type guards as well. It's not criticism: I just stated the fact that you can write incorrect type guards and the compiler will believe you.

I elaborate on ways to use them effectively in the post.

comment 5y ago · link · parent

Good list, but type guards are just as unsafe as type assertions. I wrote a blog post about this: https://fnune.com/typescript/2019/02/27/typescript-series-2-...

TypeScript will believe what you tell it in a type guard's signature without looking at the body of the function further than "does it return a boolean".

comment 5y ago · link · parent

I have it on the side while I work to take meeting notes and then email them to myself, or use it as aid to explain designs/ideas visually.

I sketch blog posts for my blog on it. It has pushed me to write end-to-end without distractions because there's no browser tab to check. I also don't end up finding existing blog posts and ending up demotivated.

I download sheet music from imslp and put it on the tablet, I study and annotate the sheet music and use the tablet to read on the piano.

Sometimes I draw on it, too...

comment 5y ago · link · parent

The reMarkable 2 tablet! As long as you don't expect it to do more than what it's designed for, I've been loving using it and it's helped me enjoy writing a lot more.

73.

Being honest about code coverage(fnune.com ↗)

2 points · by brainlessdev · 5y ago · discuss

comment 6y ago · link · parent

Agreed, that was just with regards to the comment about the sponsor in the video.

comment 6y ago · link · parent

It's a good video, full of information. Ignore the snarky comment(s).

Summarizing:

- Italians in the North are less prone to lactose malabsorption than those in the South - They don't drink cappuccinos after 11 because it's heavy to digest - The video includes some information about why milk is hard to digest, and other things

comment 6y ago · link · parent

As far as I remember Ben Awad's https://www.mysaffronapp.com/ has similar cruft-stripping features as well, and can function as a platform to build your own cookbook.

comment 6y ago · link · parent

Here's a getting-started post I wrote when I switched from Vim to Emacs.

https://fnune.com/2017/12/27/making-emacs-work-like-my-vim-s...

Since then, I'm back to using Vim. I'm planning to write about that, too...

comment 6y ago · link · parent

There is also https://www.jimdo.com/

It offers a good experience for e-commerce and blogging.

comment 6y ago · link · parent

Maybe! My extension offers a different set of features. It shows an angry emoji next to the blocked links, and lets you click on them. When you click on them, you're prompted to confirm that you want to follow the link, alongside a reminder of why you blocked the domain.

comment 6y ago · link · parent

I've created an extension to block links to domains you dislike, I've got mine set up to block Medium links.

https://github.com/fnune/nay

comment 6y ago · link · parent

The author mentions something about omitting HTML tags and links to another article of his own, which could explain this (I haven't read it yet):

https://meiert.com/en/blog/optional-html/

82.

Poor man's async await in TypeScript using generators(fnune.com ↗)

1 points · by brainlessdev · 6y ago · discuss

comment 6y ago · link · parent

That's cool. How can I learn how to do this? What's the background material?

comment 6y ago · link · parent

It looks great. I created an extension with a similar purpose. It adds a confirmation step when you click on blacklisted links, and prepends an angry emoji on blocked text links.

https://addons.mozilla.org/en-US/firefox/addon/nay/

85.

Reflecting on a year of Shape Up after Scrum(fnune.com ↗)

1 points · by brainlessdev · 6y ago · discuss

comment 6y ago · link · parent

Off-topic.

There's a typo on some of the marketing copy: "A new paridigm".

87.

Taking on a Daunting Task(fnune.com ↗)

1 points · by brainlessdev · 6y ago · discuss

comment 6y ago · link · parent

Indeed, at my company I've been working with GraphQL for a while now (about a year and then something) as a frontend developer, and our main way of communication with the backend was writing out a GraphQL file as a draft of how we imagine the API should turn out.

It's nice!

comment 6y ago · link · parent

Thank you! In fact I have been using type-graphql for this project.

I'll make a note to check out Nexus. Some other contenders to go into my tech stack were Hasura, Prisma and Postgraphile, but I wanted something a little bit closer to the vanilla GraphQL experience...

1234