Better HN
topnewbestaskshowjobs
Log inSign up

usrbinbash

4,687 karma · joined Dec 4, 2021 (4y ago) · 1,693 submissions

Submissions

comment 4y ago · link · parent

Portknocking is not part of TCP.

It's implemented at the application layer via a daemon listening for knocks and opening the firewall on demand.

comment 4y ago · link · parent

I think the 2 things that had the most impact on my productivity are:

1. cutting back on how many tools and software I use as much as possible. I don't need super sophisticated GUI editors if I have a well configured vim, I don't need a graphical password manager, I don't need a graphical VPN client. This may sound 70s-retro-ish but I found I get more done by using simpler tools.

2. stopped playing computer games. I used to be an avid gamer, MMORPGs, MOBAs, RTS, I was in several guilds, and teams. At one point I realised the immense amount of time this eats up, and what I could do if I spent that time doing something, anything else.

comment 4y ago · link · parent

> Receiving Email from strangers

Lets walk through the proposed solutions to this issue, because this is the biggest problem I see with the proposed new way of mailing:

> In the simplest case, the server might never give out stamps

For me, that's not feasible. I hand out my mail addr. with cards, as signature, its on websites, in READMEs, etc. I knowingly invite people to contact me via mail.

> The server might require the putative sender to solve a CAPTCHA of some kind.

How does that work if the mail is generated automatically, eg. a coworker makes me the recipient of a customers monitoring system? How does this work if the mail is generated without a GUI, eg. using a terminal mail-client?

> The server might require the sender to write a short sentence of why they want to reach the recipient. If that contains keywords chosen by the recipient, the server issues the stamp.

How does this solve the problem of being able to be contacted by strangers? The would-be sender has to know the keywords. If these are publicly available, eg. in a README, then there is no security, if they are not, sending a mail becomes guesswork for the sender.

> The server might require some sort of proof of work.

Let's forget for a moment how much trouble is caused by the energy consumption of cryptocurrencies, but how would that work on, say, a mobile device with already limited battery power?

> The server could require a very small payment.

The article points out the problem with this already. This would mean companies that can afford the fees are now free to spam me with advertising, but someone from an underprivileged community, who found a bug in my project, may think twice about contacting me.

-----

Edit: In my opinion, spam and phishing are not problems that should be solved by changing or replacing SMTP.

Don't get me wrong, I am not defending SMTP. It has a lot of shortcomings that need to be addressed, the biggest are an incabability to transmit binary data without resorting to base64 encoding, and the lack of built-in encryption support.

But spam and phising are issues to be solved at the application level, not the protocol level. Spam isn't that different from portscans, and we don't change TCP/IP to prevent these.

comment 4y ago · link · parent

>think of commiting your code in the meta-verse or in VR using Apple Glass

How is that different from what I do today in my terminal? The code is text. A delta of that text is uploaded to a repository.

"metaverse" is just a pretty marketing-term. Underneath, it's yet another I/O-device.

And btw. I have yet to see anything in VR, and I use my Quest2 almost daily, that could even come close to the efficiency and simplicity of writing code on a keyboard, and controlling software with commands typed into a terminal.

comment 4y ago · link · parent

Instead of thinking about how we can teach our ML models to filter out the discrimination in human society, we should think how we can get rid of the discrimination in the first place.

comment 4y ago · link · parent

>For loops do not have guarantees about in-place mutation;

Every modern language has a `for elem in range` construct, giving exactly that guarantee, as long as the element isn't a pointer.

Besides, I neither want nor need such a guarantee. There are many scenarios where in-place mutation is exactly what I want to do in a loop, and I don't want to fight the language, aka. my craftsmans tool, to do it, just because it imposes an arbitrary restriction on what I can or cannot do.

Is this a potential source of bugs? Of course it is. That's why I have tests, code reviews and debuggers.

And besides, nothing prevents me from doing the functional approach in languages like Golang, Python or Julia *if I want to*. I simply refuse to use languages that that force a paradigm on my code. This is true not only for "pure functional" languages, but also Java, which wants me to use OOP everywhere.

To me, paradigms are tools. They need to be there when I need them, and get not get in my way when I don't.

comment 4y ago · link · parent

>They are well understood and most people can understand them with little to no additional education past what they learned in their business or engineering bachelors degrees.

Imperative code:

    Take A and B.
    Add C ml of Water.
    Stir for 2 minutes.
    If it thickened, add D grams of flour, else go back to stiring.
This is easily understood by everyone, degree or no. Once someone figures out loops and the difference between statement and expression, they can essentially understand imperative code.

comment 4y ago · link · parent

>and you have to read it all to find out what it does.

Which isn't a problem, because as long as its all loops'n branches, the code is easy to understand.

comment 4y ago · link · parent

>I have no beef with if+for, but a large part of the reason they're "goto tools", if you will, is because industry is slow to assimilate many state-of-the-art ideas, sometimes by as much as 40 years.

For assimilation to happen, the state-of-the-art solution also has to result in a net gain over the existing solution, and the higher the differential in complexity between the two, the bigger that gain has to be.

comment 4y ago · link · parent

blub sounds like the prefect language to implement bubble-sort

comment 4y ago · link · parent

Really good article!

comment 4y ago · link · parent

I prefer to minimize the amount of lines of shellcode I write. Preferably to zero.

I know it's hard. I get it. bash is convenient, and because it is, I have written more bash deployment pipelines, buildtools, utils, watchdogs, crons, etc. than I care to count.

But also, bash _is not a programming language_ outside of the technical definition. It is a command interpreter, and the reason why large shellscripts suck, is because they are written using a command-interpreter as a general purpose PL.

Have something larger than 40 LOC bash? rewrite it using an actual programming language.

comment 4y ago · link · parent

Every single "lowcode/nocode" tool suffers from 2 problems that are imo unsolveable:

1) Sooner ~~or~~ rather than later, there is a use case that goes beyond what the tool can do "easily" 2) Just because tools make coding easier doesn't mean its not coding any more.

1
5354555657