News for hackers. Stuff that matters.

Ajnasz

Re:Speeding Up My ZSH Shell on Tuesday July 22, 2025 @03:38AM (#44644211)
I created an alternative because of nvm's slowness: https://github.com/Ajnasz/znvm
Re:Error Handling and HTTP Handlers in Golang on Tuesday August 27, 2024 @08:15AM (#41366701)
Can't change the zoom on the page, what terrible UX.
How often developers encounter performance issues coming from the slow framework, so they need to switch to a fast one? Which one is the slow?
Re:Why Is README Capitalized? on Friday April 12, 2024 @03:11AM (#40010123)
> Avoid using more complicated markup languages like HTML in the README file, however, because it should be convenient to read on a text-only terminal

And that's what README.md files from these days hardly can follow on Github.

Re:Dear Paul Graham, there is no cookie banner law on Tuesday March 19, 2024 @04:51AM (#39753929)
The only cookie I would accept that I don't accept any other cookies.
Re:Interactive Examples for Learning Jq on Wednesday November 08, 2023 @10:31AM (#38191809)
But if you already have it in your favorite language, why would you need to translate it to bash or jq? :)
It might be useful for you that, in Go, maps do not shrink their memory usage when elements are deleted.

[1]https://vivasoftltd.com/golang-mistakes-1-maps-and-memory-le...

[2]https://medium.com/@quicktechlearn/maps-and-memory-leaks-in-...

Re:Godly – Astronomically good web design inspiration on Wednesday August 23, 2023 @03:34AM (#37232880)
What happened with the "above the fold" rule, that we put important info where the user don't need to scroll. I clicked through some of them and I only see huge titles with parallax.
Re:Gopher Wrangling. Effective error handling in Go on Thursday June 22, 2023 @08:47AM (#36431312)
I guess it's the same in most of languages. If you raise a general exception with a custom message you'll have to check the message not it's type.
This whole "I accept these cookies" is broken from the beginning. First of all, why they want to use any of those cookies which are not needed? Use a session cookie, so I can be logged in and I can access to the data and page, but the others are nonsense.

Also, I would accept one cookie, which stores that I don't accept other cookies.

I like the idea of using channels.

Maybe it would be good to be able to pass a context for the store, so the loop stops when the context cancelled.

Re:Thank You, Firebug (2017) on Wednesday August 10, 2022 @04:51AM (#32409352)
Firefox 1(?) already had the error console, which told the _correct line_ where the error happened with more meaningful messages. Unlike IE where the message was something like `Unknown error at line 10203` when you had only a big HTML table and some inline JS. That was already a big improvement, but then Firebug was another dimension.
Re:Webdev question: Do you know the basics? on Wednesday May 11, 2022 @04:06AM (#31337138)
A HTML, JavaScript, CSS question. How hard is that?
Re:Ask HN: Share your personal site on Thursday April 07, 2022 @01:53AM (#30941058)
https://ajnasz.hu

A personal blog mostly in Hungarian, lately some English posts which is far from perfect, but some might find useful if a search engine honor the site.

It's 16 years old, started with drupal, then some years ago I changed to metalsmith [1], because the content isn't dynamic at all, and it was fun to try something new. I also started to move to hugo, but they didn't merge the pr [2] which would have helped in the transition. :(

The look is still similar to what it was in the beginning, in terms of colors at least.

[1] https://github.com/metalsmith/metalsmith [2] https://github.com/gohugoio/hugo/pull/7295

Re:A study of real world data races in Golang on Wednesday April 06, 2022 @08:33AM (#30931302)
> 4.2.2 Idiomatic err variable capture.

I'm trying to reproduce that in this play: https://go.dev/play/p/3wkkfN3bMfH

Based on the study, I expect that the final print would print `err final value err:bar, 2`, but it's `<nil>`. And it is because it uses the shorthand variable declaration, which will make it to be in the scope of the go function closure.

Am I missing something?

Usually I don't accept cookies. Sometimes it's not that hard, but sometimes you would need to click through like hundreds(!) of checkboxes, so you don't want the cookie from them, which is ridiculous.

I would accept only one cookie, that I don't want to accept any other cookie, but surprisingly usually they don't store this information. :(

Re:Show HN: Vim-based time and task planning tool on Thursday November 11, 2021 @11:33AM (#29189868)
It's web based, not vim based, isn't it?
Re:Pv – An Electron app for viewing PDF with Vim keybindings on Tuesday September 07, 2021 @03:40AM (#28442059)
Have you tried zathura? https://pwmt.org/projects/zathura/
Re:JavaScript for Shell Scripting on Monday May 10, 2021 @12:53PM (#27108088)
What is it good for? Why would you want to execute shell commands from JavaScript. If you already know the command, then why don't you just use the shell? Or why don't you just use JavaScript libraries/frameworks/whatevers if you can't make a shell script work but you know JavaScript?
Re:Front: The $1.3B Startup Slackifying Email on Wednesday December 02, 2020 @07:47AM (#25275844)
Some years ago Slack advertised itself as a tool to replace e-mail too..
Re:Dev Fonts on Friday November 20, 2020 @12:00PM (#25162319)
I used Envy Code R [1] for many years, recently I changed to Iosevka Term SS10 [2], which is kinda same.

[1] https://damieng.com/blog/2008/05/26/envy-code-r-preview-7-co...

[2] https://github.com/be5invis/Iosevka

Re:V8 has optimized new JavaScript language features (2018) on Sunday November 08, 2020 @02:05PM (#25028034)
Still no tail call optimization? ¯\_(ツ)_/¯
Re:Switching from Vim to Intellij on Friday November 06, 2020 @05:47AM (#25006656)
> - add JSdoc tags so that IntelliJ can detect type mismatches.

Yes, it's so awesome when colleagues writing lots of useless stuff into the code so they IDE can show some fancy popups here and there.