HackerTrans
TopNewTrendsCommentsPastAskShowJobs

chilling

no profile record

Submissions

Adding view count and like button to 11ty

annoyscript.vercel.app
14 points·by chilling·il y a 2 ans·12 comments

Show HN: [Shan, Shui]* – Infinite vector art generator

shan-shui.vercel.app
4 points·by chilling·il y a 2 ans·4 comments

CSS Bonfire

megaemce.github.io
2 points·by chilling·il y a 2 ans·1 comments

bonfire.

megaemce.github.io
1 points·by chilling·il y a 2 ans·0 comments

Working with JavaScript arrays in ninja style

annoyscript.vercel.app
2 points·by chilling·il y a 2 ans·2 comments

Ask HN: What are the hidden performance tricks for JavaScript?

10 points·by chilling·il y a 2 ans·16 comments

comments

chilling
·il y a 2 ans·discuss
Sometimes I feel sorry for myself when I read articles like this. At the end of the page, I usually start asking myself, "Why was I even curious about this?" Anyway, I will probably use this knowledge in 10 years. Hopefully (so far, that’s how things have been going for me).
chilling
·il y a 2 ans·discuss
IT WAS JUST A PRANK BRO! JUST A PRANK
chilling
·il y a 2 ans·discuss
I mean... we humans are also pretty bad at following instruction too.

Turn left, no! Not this left, I mean the other left!
chilling
·il y a 2 ans·discuss
I know, I suspect that too. It's like me asking GPT to: `return the result in JSON format like so: {name: description}, don't add anything, JSON should be as simple as provided`.

ChatGTP: I understand... here you go

{name: NAME, description: {text: DESCRIPTION } }

(ノಠ益ಠ)ノ彡┻━┻
chilling
·il y a 2 ans·discuss
> Claude responds directly to all human messages without unnecessary affirmations or filler phrases like “Certainly!”, “Of course!”, “Absolutely!”, “Great!”, “Sure!”, etc. Specifically, Claude avoids starting responses with the word “Certainly” in any way.

Meanwhile my every respond from Claude:

> Certainly! [...]

Same goes with

> It avoids starting its responses with “I’m sorry” or “I apologize”

and every time I spot an issue with Claude here it goes:

> I apologize for the confusion [...]
chilling
·il y a 2 ans·discuss
Very nice tutorial, and extremally nicely done!

It's worth knowing that some of those effects can also be achived (of course much much more simplified) in all modern browsers using the Web Audio API. I created mobbler[0] using that, and I also wrote a small tutorial on how some of the effects can be achieved using simple modules (it might seem too complex at first glance, but you can just look at the pictures)[1].

[0]: https://github.com/Megaemce/mobbler

[1]: https://github.com/Megaemce/mobbler/wiki/Tutorials
chilling
·il y a 2 ans·discuss
Such a breeze! I love to remind myself that some things I take for granted require extraordinary skills that I just don't have the time or willingness to process and understand.

I think that's the reason why I love to watch Real Engineering/Practical Engineering channels on YouTube. I watch what seems like a "simple" task, such as pouring concrete, and then suddenly realize that it's actually not that easy. Or "How It's Made" - Chips? Easy, right? Well, no, lol!
chilling
·il y a 2 ans·discuss
pictures from internet mostly don't represent an accurate reality (in Indonesia is even more true than everywhere else). The other thing about Sulawesi is that the trasportation there is horrible and very time consuming. It's also not really touristic so better to bring your local friend with you.
chilling
·il y a 2 ans·discuss
I'm not that older than you, but I decided to do stuff that I want instead of doing stuff that are good for me.

> what makes you happy the most looking back?

Saving money, "retiring" at the age of 30, traveling for 2 years, entering a monastery, leaving the monastery, and then starting to think about work again for real, not just as a way to escape the system.

BTW. After 3.5 years of retirement, I finally grow up to start something myself, which is an idea that was hunting me since teen years.
chilling
·il y a 2 ans·discuss
It's not only music. The distraction caused by the dopamine boost from social media can even make chocolate taste not sweet.
chilling
·il y a 2 ans·discuss
Well, well, well... Not so long ago, I joined the opposing camp where everyone was arguing to drop null into the Mountain of Doom.

https://medium.com/@hbarcelos/why-i-banned-null-from-my-js-c...
chilling
·il y a 2 ans·discuss
my disclaimer was supposed to mean: I live here, I am interested in the current and past history of this country, I am involved, I have an Indonesian partner and Indonesian friends, but you have your right to seek the truth for yourself, which I strongly encourage you to do.
chilling
·il y a 2 ans·discuss
Modern history of Indonesia is also brutal, strange and very hard to grasp and accept. Just 6 months ago, a new generation choose a murderer, linked with previous coup as their new president because he was looking cute and post dancing videos on tiktok.

[I live in Indonesia as an expact]
chilling
·il y a 2 ans·discuss
First of all, the 11ty documentation seems to be designed for people who already know what they are looking for. This is a typical bias from the people who create the documentation, as they are already familiar with the material.

I have a long history of improving extensive documentation for my past employers, and the first thing I always start with is a general question: Can I follow the stream of thoughts when reading the docs? Does it have a well-prepared welcoming page that can guide me to the information I need? (Sometimes you are just curious about release dates, and other times you might have forgotten the name of a plugin).

Documentation, as I understand it, should be a pleasing experience that takes you on a journey, allowing you to decide how deep you want to go.

The issue with 11ty's documentation is that every single page is overwhelming with technical details introduced right away. There is no foreplay, no gentle introduction—just straight into the details. I hate it; it makes me feel like it’s designed as a gatekeeper of knowledge (I've seen this in my previous companies too).

Designing documentation should start with simple ideas that gradually lead to more complex concepts (just like in coding, where we start with variables and functions before moving on to more complex structures like classes and logic). Simplified diagrams are also a very welcoming idea for a starter page.

To make it more 11ty-focused, their documentation is missing:

1. A welcoming page explaining what you are currently seeing and what you can expect.

2. A simple go-to project, rather than an overwhelming list of 30+ startup projects (why not just showcase a simple blog with one post?).

3. A "Set up your first project" page (I’ve chosen my first project, where should I go next?).

4. Instructions on how to extend your project (covering advanced topics like modules).

5. General organization—the whole page is cluttered with too many links, text blocks, paragraphs, and images.

6. Explanations of basic concepts (for example, it took me three days to understand why some pages have three or more syntaxes).

7. ... and more, but I just can't stand even looking at their docs

A really good example of documentation is React: https://react.dev/learn
chilling
·il y a 2 ans·discuss
You are right. It just should be like so:

Get:

   const likes = (await kv.hget(postTitle, "likes")) || 0
Post:

   const likes = await kv.hincrby(postTitle, "likes", 1);
chilling
·il y a 2 ans·discuss
thank you kind soul. I just push new version of the script so it only accepts 3 likes per visit. Not ideal, but a quick fix (:
chilling
·il y a 2 ans·discuss
so how would you approach this?
chilling
·il y a 2 ans·discuss
are you the one that is actually DDoSing my Vercel KV lol? I had like 5k requests in the last few hours ^^

As I mentioned in the blog, I have a free tier, so I just got an email from Vercel that KV will stop accepting new request for today.
chilling
·il y a 2 ans·discuss
[dead]
chilling
·il y a 2 ans·discuss
Just watch the Kurzgesagt on that matter[0].

[0]: https://www.youtube.com/watch?v=UebSfjmQNvs&pp=ygUVZnJlZSB3a...