HNHacker News
TopNewBestAskShowJobs

2h

308 karma · joined January 15, 2023

Discord srpen6#6983

GitHub 2a.pages.dev

submissionscomments
2h··on This is valid Python syntax
> a, b = b, a

> (don't know why this is so famous, I never, ever used that in prod)

This allows you to sort an array in place. It's heavily used in Go:

https://godocs.io/sort#example-package

2h··on Play (1) Linux manual page
> just dumps an audio file to the sound output

did you even read the linked page? thats not all this can do by a long shot.

2h··on YouTube legal team contacted Invidious developers
> They don't understand that we never agreed to any of their TOS/policies, they don't understand that we don't use their API.

yeah, they DEFINITELY DO:

https://github.com/iv-org/invidious/blob/e7bed765/src/invidi...

not sure what backwards logic they are using to come to this conclusion, but its objectively wrong, and wont hold up in court. Granted, I am also guilty of this in my own project, but I dont pretend that I am not using the API, I just dont care because my project is tiny. They no longer have that luxury.

2h··on I'm Not Invidious
> They don't understand that we never agreed to any of their TOS/policies, they don't understand that we don't use their API.

yeah, they DEFINITELY DO:

https://github.com/iv-org/invidious/blob/e7bed765/src/invidi...

not sure what backwards logic they are using to come to this conclusion, but its objectively wrong, and wont hold up in court. Granted, I am also guilty of this in my own project, but I dont pretend that I am not using the API, I just dont care because my project is tiny. They no longer have that luxury.

2h··on Kera Desktop: open-source, cross-platform, web-based desktop environment
> desktop environment

not really. you literally cannot create a file. if I want to create a text file, its not possible. and no, I dont mean a Google Doc or some crap.

2h··on Desktop GPU Sales Lowest in Decades: Report
agreed. did they just forget that cryptomining existed?
2h··on Rust module system encourages bad practices
wildcard import, definitely no drawbacks to those!
2h··on Rust module system encourages bad practices
sibling comment is wrong. this is the typical flow on a new package:

1. go mod init something # create go.mod

2. go mod tidy # create go.sum

3. have fun

2h··on This is fine.
https://thenib.com/this-is-not-fine
2h··on Tell HN: "I don't care about cookies” extension bought by Avast, users jump ship
it is an option.

just because you might find one choice extremely distasteful, doesn't mean the option ceases to exist. so I will say again, pick your poison. you opt in, or fail to opt out of automatic updates, then you accept anything that might happen because of that.

2h··on Tell HN: "I don't care about cookies” extension bought by Avast, users jump ship
> I know how to disable automatic updates

doesn't seem like it:

> I can be a passive user of an excellent extension for years, and wake up one morning to discover that my browser has (silently!) upgraded the extension

you want to roll the dice with automatic updates, you have only yourself to blame when they break something you care about. people always scream BUT MUH SECURITY, and at the same time ignore every other awful change that is rammed through automatic updates. pick your poison.

2h··on Tell HN: "I don't care about cookies” extension bought by Avast, users jump ship
Firefox:

1. Open application menu

2. Add-ons

3. Extensions

4. click gear

5. uncheck Update add-ons automatically

2h··on Fq: Jq for Binary Formats
This has got to be the pettiest gripes I have heard in a while. It's already built, you literally just extract and run:

https://github.com/wader/fq/releases/tag/v0.6.0

2h··on Intelligent Brains Take Longer to Solve Difficult Problems
when tackling a large problem, in the beginning I find it hard to concentrate because I dont know "the best way", but even from the beginning I can understand that you could handle it about 99 different ways. I want to chase down nearly all of them so I can decide the best one, but sometimes its better to just get something crappy done 100%, then you can go back and iterate. otherwise you might get stuck on side quests forever:

https://youtube.com/watch?v=zViYpS3BIqY

2h··on Automatic emergency braking should become mandatory, feds say
> MB

https://wikipedia.org/wiki/Mercedes-Benz

2h··on Judge rules Wyoming corner crossers did not trespass
apparently you've never heard of an easement.
2h··on It’s not wrong that "🤦🏼‍♂️".length == 7 (2019)
this one one of those things that people point to when comparing languages, but in reality rarely matters. with Go, you just get the number of bytes, which the the correct default thing to do:

https://godocs.io/builtin#len

if the language default was anything other than this, THAT WOULD BE WRONG and unexpected. I would prefer the default to be the dumb, fast thing. then if I want the slow, fancy thing, I can import some first or third party package.

2h··on Zig is hard but worth it
here is this persons GitHub. posting because its missing from their blog for some reason:

https://github.com/karlseguin

2h··on World Capitals Voronoi (2014)
> Vatican is entirely encircled in Rome, therefore any area outside Vatican is closer to Rome than the Vatican

this is only true if the rule is "any point inside the area". if the rule is "any point on the border", then your comment fails here:

    +--rome-border
    |
    |
    | x (closer to vatican border)
    |
    +--vatican-border
2h··on Software licenses masquerading as open source
I often use non commercial license:

https://polyformproject.org/licenses/noncommercial/1.0.0/

And without fail, people will howl ITS NOT OPEN SOURCE. They ignore that the code is on GitHub, and as long as you're not trying to make money with it, then do whatever you want with it. I don't like the idea of companies getting code for free and giving nothing back. I do like to support people who want my software for personal use.

2h··on Iguana: fast SIMD-optimized decompression
I don't agree with this. The whole point of tools like this, is that we don't live in age of dial up internet anymore, and haven't for a long time.

Back then you wanted maximum compression like XZ, because the slowest part of the process was the download. Now especially with XZ awful decompress rate, the slowest part is extract. In many cases it's better to have 9% larger size, for 500% increase in extract, like you get with ZST.

2h··on Rarbg Is No More
> Compare to YIFY/YTS, which uploads bitrate-starved "HD" schlock that looks worse than rarbg's 480p.

YES. I have always wondered why YTS is popular, as the quality is always overstated and always garbage. sorry but 1 MBPS is not "HD", no matter what codec you are using.

2h··on Why F# evangelism isn't working (2015)
> Functional programing is different.

I think the problem with this line of thinking is that some people insist on using functional tactics EVERYWHERE, even when it doesn't make sense. I get that its ugly to mix functional and imperative code, and maybe some languages dont even allow that. but they should. thats why I like Go, because sometimes a simple for/while loop IS the correct answer.

2h··on HBO Max new Captcha system
torrent uploads dont just come from magic fairies. I write tools to download from sites like this, and it helps if you can automate the login process.

its not strictly required, as in most cases you could just save cookies or similar locally, but weaker login systems are preferred.

2h··on Rust: The wrong people are resigning
uhh:

https://youtube.com/watch?v=LonzMviFCNs

2h··on Google account deleted after 2 hours of Aurora
just laziness - I usually do `git commit -v`
2h··on Google account deleted after 2 hours of Aurora
only works for Open-Source Apps
2h··on Google account deleted after 2 hours of Aurora
thank you for the valuable feedback.
2h··on Google account deleted after 2 hours of Aurora
If it helps I have a tool for downloading apps. It downloads directly from Google Play:

https://github.com/4cq2/googleplay

2h··on Defining a new HTTP method: HTTP Search (2021)
> One advantage of GET is I can just copy the URL and share it.

no, you cant. if the server requires any headers such as Authorization or Cookie, this method will fail.

← PreviousPage 3 of 12Next →