Better HN
topnewbestaskshowjobs
Log inSign up

Ajnasz

19 karma · joined Nov 6, 2020 (6y ago) · 25 submissions

Submissions

comment 1y ago · link · parent

I created an alternative because of nvm's slowness: https://github.com/Ajnasz/znvm

comment 2y ago · link · parent

Can't change the zoom on the page, what terrible UX.

3.

DHTML Goodies – A library of free DHTML and Ajax scripts(dhtmlgoodies.com ↗)

10 points · by Ajnasz · 2y ago · discuss

comment 2y ago · link · parent

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?

comment 2y ago · link · parent

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

comment 2y ago · link · parent

The only cookie I would accept that I don't accept any other cookies.

comment 3y ago · link · parent

But if you already have it in your favorite language, why would you need to translate it to bash or jq? :)

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

A HTML, JavaScript, CSS question. How hard is that?

15.

Webdev question: Do you know the basics?(old.reddit.com ↗)

1 points · by Ajnasz · 4y ago · 1 comment

comment 4y ago · link · parent

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

comment 4y ago · link · parent

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

comment 4y ago · link · parent

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

comment 5y ago · link · parent

It's web based, not vim based, isn't it?

comment 5y ago · link · parent

Have you tried zathura? https://pwmt.org/projects/zathura/

comment 5y ago · link · parent

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?

comment 5y ago · link · parent

Some years ago Slack advertised itself as a tool to replace e-mail too..

comment 6y ago · link · parent

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

comment 6y ago · link · parent

Still no tail call optimization? ¯\_(ツ)_/¯

comment 6y ago · link · parent

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