HNHacker News
TopNewBestAskShowJobs

djhaskin987

1,604 karma · joined March 1, 2017

https://about.djha.skin New username @ djha-skin
submissionscomments
djhaskin987··on The future of Nginx: Getting back to our open source roots
Interesting context, thank you.
djhaskin987··on The future of Nginx: Getting back to our open source roots
I think my favorite reaction to Amazon's aggression is Grafana Labs. They released their code under Affero GPL but let you use a different license if you pay them. Sort of like a new version of the Qt model.
djhaskin987··on VS Code – What's the deal with the telemetry?
It just makes me feel very happy that I use neovim. OSS used in all dev tools is the only way around this problem. Not that I have full OSS in my whole pipeline; I still use GitHub (though I am seriously considering a move to sr.ht).
djhaskin987··on Ask HN: Which subredits do you follow?
https://gist.github.com/djhaskin987/d6398bf0695f21d34808bfc0...
djhaskin987··on Ask HN: Which subredits do you follow?
I don't. I follow a bunch of RSS feeds on Feedly instead. Blog posts sent to be of a much higher quality than random posts on Reddit.
djhaskin987··on Float Toy
I still don't see the point of half precision. What applications are you implying are obvious? Actually curious.
djhaskin987··on Ask HN: Is there a spiritual successor to del.icio.us?
For the curious, yes, I do think so. Sure, it's big; doesn't mean it's not getting smaller. I also think that it will continue to get smaller. I think its heyday is past.
djhaskin987··on Are You Intellectually Humble?
I mean, no. I think I'm humble enough to realize that I'm not.
djhaskin987··on Ask HN: Is there a spiritual successor to del.icio.us?
This is just sort of how the internet is going right now. Global, free services like that are starting to make less money. Facebook is circling the drain, Twitter is in hot water. Going decentralized is sort of getting more popular. Companies are focused more on profitability than growth right now, so there's little incentive to grow these platforms and more incentive to ruin them in the hopes of making money.

I find myself using markdown files these days to store my links. That way I can also store context around the links by writing stuff around the links. This sounds foolish, but it does in fact check all your boxes:

- You can publish this markdown file on GitHub pages so it has integration with browsers

- People can follow you using RSS (yes, people still do this, myself included)

- I use Epsilon Notes and FolderSync Pro on my Android device to sync the markdown files over Dropbox so there's mobile app support

- Portable across time because it's just text

- Widely supported by different tools

This is actually also my note-taking system. I have shortcuts in them that allow me to take screenshots and store them next to the markdown and link to them. I store links by simply making a link in the markdown file of the paragraph I'm working on.

djhaskin987··on Nix Is Going Mainstream
Partially-tongue-in-cheek, partially-serious: what is Nix?
djhaskin987··on I wish I could organize my thoughts
It makes me think of Paper Website[1]. If I were Drew, I would write down all my thoughts on paper. Then, when I wanted to share them, I might use similar tools described in that website to share.

1: https://paperwebsite.com/

djhaskin987··on ConEmu – Handy Windows Terminal
I am very loyal to ConEmu. They were here long before Windows Terminal showed up and they are still the best one. Easy to set up color schemes, support for all the different types of terminals. I also love that "like slime for vim"[1] supports them. I doubt I'll ever switch.

1: https://github.com/jpalardy/vim-slime

djhaskin987··on Wisp: Whitespace to Lisp
This looks like Haskell, and it is just as difficult to tell program structure here as with Haskell. I seriously have to stare at any 3 to 5 lines of Haskell for about 30 seconds before I get anything about what they're saying and I have that same feeling here. Maybe Haskell should use less dollar signs and more parentheses.
djhaskin987··on Using Landlock to Sandbox GNU Make
I wonder why there was no mention of simply contributing these 200 lines to GNU make proper instead of forking. Super cool though.
djhaskin987··on When Google puts 4 paid ads ahead of the first
> When Google puts 4 paid ads ahead of the first organic result for your own brand name, you’re forced to pay up if you want to be found. It’s a shakedown. It’s ransom.

This is not a shakedown. Google is only responding to people who are placing ads on their ad platform. They aren't denying anybody food or shelter.

If anything it's interesting that so many advertisers want to advertise against that keyword. Really it's not Google that the author should be angry at, it's his competitors who are paying a lot of money to compete with him.

djhaskin987··on Ask HN: Will I Ever Recover?
You are not your job. You never were. Every single person on this planet has intrinsic worth that has nothing to do with what they do or how they think. You are important regardless of where you have worked.

I often find the most painful employers and experiences are the ones that I gain the most out of in terms of development and growth. Not fun to hear in the moment but afterwards it's a gift.

djhaskin987··on AWS Nitro Enclaves
Excerpt:

> Enclaves are fully isolated virtual machines, hardened, and highly constrained. They have no persistent storage, no interactive access, and no external networking. Communication between your instance and your enclave is done using a secure local channel. Even a root user or an admin user on the instance will not be able to access or SSH into the enclave.

> Nitro Enclaves uses the proven isolation of the Nitro Hypervisor to further isolate the CPU and memory of the enclave from users, applications, and libraries on the parent instance. These features help isolate the enclave and your software, and significantly reduce the attack surface area.

So it sounds like one virtual machine attached to another virtual machine via something like a point to point NIC. At that point, why not just have that program on its own VM? If the answer is "because I don't want other programs on that VM to get access to it", my response is that you simply don't have any other programs running on the machine, you can list the program as the init process for example.

That's effectively just what they're just doing here.

djhaskin987··on Digital Extrovert ≠ IRL Extrovert
In my experience the opposite is true. Introverts are among the most prolific writers on the internet. Indeed much of the text written on the Internet is written by them. As an extrovert I find a much smaller need to write. I find it boring. I like reading what others write though.
djhaskin987··on Getting Better at CI
Lost me at "code saves itself automatically." Code history ought to be curated with care.
djhaskin987··on Par, a Text Formatting Program
I love this because I use markdown heavily in vim. I can't get vim markdown plugin to support auto bullet point insertion and nice `gq` bulleted list paragraph formatting at the same time[1]. However, vim lets you set a program that will do the paragraph formatting for you. I think I could use this to get `gq` to work while still having auto bullet point insertion!

1: https://github.com/preservim/vim-markdown/issues/232

djhaskin987··on Atomicwrites' old versions have been purged from PyPI
That's fair, he owes us nothing[1]; I agree with that. But it's not unreasonable to protect the larger community with basic security practices, either.

1: https://gist.github.com/richhickey/1563cddea1002958f96e7ba95...

djhaskin987··on Atomicwrites' old versions have been purged from PyPI
From the GitHub README:

> PyPI wants me to enable 2FA just because I maintain this package, which I don't care for. So this package is now unmaintained.

Just set up a KeepassXC file and put your 2FA info in there? You don't need to give PyPI your phone info, PyPI takes TOTP[1]. 2FA is pretty normal; I don't see why the author has a problem with it. It doesn't violate privacy (since it's not actually tied to any PII like a phone number), it takes like 10 seconds to set up, and it protects your packages from hackers. Perhaps the author simply doesn't see the point of 2FA, since he implies the PyPI authors only did it for compliance reasons (and not for normal bolt-your-doors security reasons, which is more likely)?

He calls setting up 2FA "an expense of my free time" when surely it took more time for him to delete and re-add his package than it would have to just set up 2FA.

EDIT:

To be fair, the maintainer owes us nothing[2], sure. But it's not unreasonable to protect the larger community with basic security practices, either.

1: https://pypi.org/help/#twofa

2: https://gist.github.com/richhickey/1563cddea1002958f96e7ba95...

djhaskin987··on What is a logical merge conflict?
It actually says that the test will catch it hours later and that the assertion will fail?

The contrived example would only ever happen if the developers in question didn't talk to each other. A lack of coordination is the real problem and cannot be solved by tooling. You can never tool your way out of a communication problem.

djhaskin987··on What is a logical merge conflict?
> The industry solution to this problem is adding a merge service in the loop to protect your main branch from these harder-to-find conflicts.

Or maybe just:

1. Catch this during code review?

2. Run unit/integration/regression tests on PRs?

This just feels like another post from a vendor who wants to "sell you a DevOps" when proper culture and process is probably the better answer.

djhaskin987··on DRY is an over-rated programming principle?
I often find that DRY is in conflict with Conway's law[1]. It's almost always better to let Conway's law win. If I help write a build script for one team, I often copy and paste it into another's git repo to instead of trying to share it. It's often way better than factoring it poorly[2] or getting the two teams to coordinate on changes they need to make to it. Best to let the two copies diverge in that case.

1: https://www.wingolog.org/archives/2015/11/09/embracing-conwa...

2: https://sandimetz.com/blog/2016/1/20/the-wrong-abstraction

djhaskin987··on Ed is the standard text editor (2014)
I have written several scripts -- some throwaway, some not -- that use ed. If you know what you need to do to edit a file and need it automated, ed is just super handy. Here is a shell script that deletes all comments from a yaml file, then comments out a particular key:

    ed $file << COMMANDS
    g/^#.\*$/d
    /yaml_key:
    s/^/#/
    w
    q
    COMMANDS
djhaskin987··on Man's Search for Meaning
I've listened to this book. Short read, great book. Makes you think about how disasters can affect people for good or bad.
djhaskin987··on Twitter officially rolls out its long-form content ‘Notes’ feature
I wonder how much of twitter's culture is going to influence these blog posts. Is it still going to feel like twitter? Is that a good thing?
djhaskin987··on Don't let dicts spoil your code (2020)
This opinion gets at the heart of the reason to use type languages or not. After all, what is a dict but an untyped struct?

Untyped languages are excellent for smaller code bases because they are more comfortable to program in and faster and more general. Types of polymorphism possible in these languages are simply not possible or much harder in typed languages. Also, as others have said, the problem domain may not be as explored yet.

Typed languages really start to shine as a code base gets huge. In these instances well maintained untyped language code bases start collapsing under the weight of their own unit tests, while moderately well or poorly well maintained instances of untyped language code bases become a mess. Mostly this is due to difficulties in communication when the code base gets worked on by so many people that it's hard for them all to communicate with each other. In these cases a typed language keeps everyone on the same page to some extent.

Both camps will hate me for saying this I think, but it's what I've observed over the years.

It also may sound like I prefer typed languages, but in fact my favorite languages to work in are Clojure and Python. My code bases as a DevOps engineer rarely pass the 10,000 line mark and never pass 100,000 line mark. It's much more comfortable for me in these untyped languages.

Untyped languages also really shine in microservices for the same reason.

djhaskin987··on Lisp is Not an Acceptable Lisp (2006)
The more I read, the more I think this is why Rich Hickey created Clojure. This describes a pessimistic view of the landscape shortly before Hickey created the language. It provides a good insight into all the problems in Lisp at the time. Clojure answers a lot of these problems.
← PreviousPage 2 of 9Next →