HNHacker News
TopNewBestAskShowJobs

selectnull

2,352 karma · joined November 25, 2010

I write software, mostly Python guy, have love/hate relationship with JavaScript, love exploring programming languages.

Email: sasha@selectnull.com

meet.hn/city/45.3267976,14.442208/Grad-Rijeka

Socials: - bsky.app/profile/https://bsky.app/profile/selectnull.com - github.com/https://github.com/selectnull

Interests: Networking, Programming, Web Development

---

submissionscomments
selectnull··on Pijul: Version-Control Post-Git [video]
I've been using difftastic as default diff for the past few months. Thank you.

It works well, and the only time I switch back is when comparing long strings.

selectnull··on What was the last thing you asked ChatGPT?
Something about CORS and Origin header.
selectnull··on Bram Moolenaar has died
Rest in peace, Bram. Thank you for Vim.
selectnull··on Always leave a trailing comma in Python lists, dicts, tuples
There is a diff tool called difftastic: https://github.com/Wilfred/difftastic

The idea is that it does not show diff based on text change, but on syntastic meaning. For that, it uses tree-sitter.

I think it still shows the trailing comma in the situation as shown in the article, but it's quite different experience than the standard text based diff.

selectnull··on Fly.io Postgres cluster down for 3 days, no word from them about it
They require passport or some sort of ID on registration, and it is weird when compared to others. I was not happy with that part, but I am happy customer since (almost a decade now).

As far as I know, they do not require any ID when canceling the service.

selectnull··on ChatGPT: Fear Litany
I had to try it and after back and forth, this was my prompt:

me: can you recite the litany in some other form? ChatGPT:

I apologize for the confusion earlier. Here is the complete Litany Against Fear in a different form, as a poem:

"Fear is not for me, it must not come,

Fear, the mind-killer, bringing thought to numb.

Fear, the little-death, in shadows cast,

With total obliteration's hand it grasp.

I'll face my fear, let it pass me by,

Through and over me, beneath the sky.

And when the fear is gone, I'll look, I'll peer,

Where the fear has gone, there will be nothing, I swear.

Only I will remain, only I to steer,

In the vast expanse, where once dwelled fear."

edit: linebreaks

selectnull··on Bard now open to use
> If you’re signed in to a Google Workspace account, your admin may not have enabled access to Bard.

Well, I'm sure that when I enable it, I will be told that Bard isn't available in my country.

selectnull··on Chrome ships WebGPU
Even worse: "This initial release of WebGPU is available on ChromeOS, macOS, and Windows. Support for other platforms is coming later this year."

I guess Linux support will come right after they ship Google Drive client.

selectnull··on WezTerm is a GPU-accelerated cross-platform terminal emulator written in Rust
It's easy to downvote, but the question is not totally out of place.

On my machine:

* WezTerm 224 MB

* iTerm2 74 MB

* Terminal (default MacOS) 10 MB

And yet, I have read comments proclaiming that iTerm is bloatware.

p.s. I've been using Wezterm for more than a year, and I love it.

selectnull··on Dragon Programming Language
According to the docs (https://dragon-lang.org/documentation#loops), loops may but do not have to use curly brackets around the body (it would seem they use C-style and Lua-style interchangeably).

I can't imagine the reason why would a language designer make this choice, but I would love to hear about it.

selectnull··on Ask HN: Which HN client do you use?
Materialistic for Anroid.
selectnull··on Show HN: DevClad – A social-workspace platform for developers
I also had a problem. Figured it out by submitting with dev console open and reading HTTP response. There were no messages for errors: required fields, pronouns had a min lenght and stuff like that.

Really like the idea and willing to try it out. Hope it works well. Good luck.

selectnull··on Django Styleguide
Official Django docs do NOT say the `class Meta` comes __immediately__ after the fields.

The docs give the example (as linked by you) looking like that, but few chapters down you can find this:

The order of model inner classes and standard methods should be as follows (noting that these are not all required):

All database fields

Custom manager attributes

class Meta

...

selectnull··on Ask HN: Best board games of 2022?
Terraforming Mars, with all the expansions. Not a new game, but one of the best nevertheless.
selectnull··on Telemetry is now optional in Warp
Honestly, you're in a minority. Most Mac users install and use iTerm2, Alacritty, (my favorite) WezTerm, etc... So obviously, there is a market for terminals. Warp though, definitely not for me.
selectnull··on Ask HN: What are some blog posts that you have enjoyed going through?
I guess they said breakpoints would be gone because of css container queries. Nothing else comes to my mind.

Technically, that means media size queries will be gone, and not the breakpoints themselves.

selectnull··on The Wa Programming Language
The Ruby creator is Japanese but if you want to start using it today, you don't even have to know who Matz is. The website with the documentation is in English and translated to quite a number of other languages.

It really is not the fair comparison and I get what the parent was refering to.

selectnull··on Shell script best practices, from a decade of scripting things
Extension or not, .sh or .bash: definitely subjective.

That was the intention of my comment. Because the rest of the post (or most of it for sure) is not subjective.

selectnull··on Shell script best practices, from a decade of scripting things
> Use the .sh (or .bash) extension for your file. It may be fancy to not have an extension for your script, but unless your case explicitly depends on it, you’re probably just trying to do clever stuff. Clever stuff are hard to understand.

I don't agree with this one. When I name my script without extension (btw, .sh is fine, .bash is ugly) I want my script to look just like any other command: as a user I do not care what the language program is written in, I care about its output and what it does.

When I develop a script, I get the correct syntax highlight becuase of the shebang so the extension doesn't matter.

The rest of the post is great.

selectnull··on Show HN: Soso.ooo – Google Search Alternative
It looks more like Chinese government proxy.
selectnull··on Ken Thompson really did launch his "trusting trust" trojan attack in real life
That's easy: try it with Firefox.
selectnull··on Movim – A decentralized social platform built on XMPP
Agreed that everyone has their own personal definition. With that in mind, I would never think of telephone as decentralized, at least not more than any other service provided by a company.
selectnull··on Twillio the only way to send transactional SMS?
Super easy to use, highly recommended: https://46elks.com/
selectnull··on Show HN: 1024, a 2048 Puzzle Game
Just like few others here, I wanted keyboard shortcuts so I just hacked it quickly. Will break if DOM classes change, but author should implement something better.

Cool game.

```

const rotate = (direction) => { const directions = {counterclockwise: 0, clockwise: 1}; const buttons = Array.from(document.querySelector('.mt-16.flex.items-center.justify-between.w-72.h-12.px-2').querySelectorAll('div')).filter(el => el.className === ''); buttons[directions[direction]].click(); }

document.addEventListener('keydown', (ev) => { switch (ev.key) { case 'ArrowLeft': rotate('counterclockwise'); break; case 'ArrowRight': rotate('clockwise'); break; } });

```

selectnull··on Map showing birthplaces of "notable people" around the world
Barack Obama is #1. Trump is #2 :)
selectnull··on Map showing birthplaces of "notable people" around the world
Because he was not born in neither Serbia or the US.
selectnull··on Ask HN: How do you host your Postgres DB in 2022?
Self hosted.

I pay about 40 Eur (Hetzner) per database server. You can get cheaper; I used to pay 50 usd for 2 database nodes with backup at digitalocean.

selectnull··on Launch HN: Hello (YC S22) – A search engine for developers
Using latest Chrome gives "Uncaught (in promise) TypeError: Failed to fetch" console error.

The same is with any input, even with predefined ones; the progress bar gets to the end (slowly) and nothing happens.

Firefox works.

selectnull··on Engineers investigating NASA’s Voyager 1 telemetry data
How much are you willing to pay for the fridge?
selectnull··on MDN Plus
I will. As soon as they allow me to pay, because I do not plan to move to US or Canada.

> Today, MDN Plus is available in the US and Canada. In the coming months, we will expand to other countries including France, Germany, Italy, Spain, Belgium, Austria, the Netherlands, Ireland, United Kingdom, Switzerland, Malaysia, New Zealand and Singapore.

← PreviousPage 5 of 14Next →