HNHacker News
TopNewBestAskShowJobs

asalahli

299 karma · joined April 1, 2018

submissionscomments
asalahli··on 'Empty shelves with no books': School Library Discards pre-2008 books
Damn, I feel like whenever I see a Canada related article on HN it's always some absurd dystopian shit like this, never anything positive.

As a Canadian it genuinely hurts.

asalahli··on Knightmare: A DevOps Cautionary Tale (2014)
I'm less surprised by them leaving dead code around, honestly. I've seen that happen at virtually every company I've worked for.

What completely baffles me everytime I come across their story is that they repurposed an existing flag instead of making a new one! Why?

asalahli··on Wikimedia DNS
Not to be confused with DNS over Wikipedia[0]

0. https://news.ycombinator.com/item?id=22790425

asalahli··on Ask HN: Tell us about your project that's not done yet but you want feedback on
I love the concept (and the name too) of vulgar computation!
asalahli··on Ask HN: In which areas have you compared 3+ tools and formed strong preferences?
I've always been under the impression that the poor contrast is to discourage text posts. Can't remember whether I've read that somewhere or it's just my own assumption.
asalahli··on Copy is all you need
Huh, did twitter stop letting unauthenticated users read tweets? I can't get past login form.
asalahli··on Let's make a Teeny Tiny compiler (2020)
> Since when is C a high-level language?

Umm, since the day it was created?

High level languages were understood to be the ones that abstracted away the implementation details of the underlying architecture. Pascal and C were definitely considered high level languages.

asalahli··on Intel mulls cutting 16 and 32-bit support, booting straight into 64-bit mode
Yup, I've misread and confused the two too many times
asalahli··on Show HN: Jesth – Next-level human-readable data serialization format
You snark is unwarranted IMO. How's this any similar to s-expressions than, say, TOML is? Or YAML
asalahli··on Ask HN: Whats up with people trying to run Doom on everything?
This is the kind of answer I was looking for. Thank you!
asalahli··on The simplicity of single-file Golang deployments
Yes. Is reinventing the wheel always a bad thing, though? Not if you ask me, not if the new wheel has novel characteristics and performs better in some aspects.
asalahli··on The simplicity of single-file Golang deployments
Parent is saying those crates themselves are reinventing the wheel, not talking about using a crate
asalahli··on No tech in classroom: Professor considers going to basics because of ChatGPT
> "I think the best thing that could happen to universities and colleges is that they're forced back to the Socratic method, this traditional system where we sit around with students and talk about ideas," said Daly.

Man, I would have loved this when I was in university. Lazy professors reading from boring slides were the major reason I skipped on most of the lectures.

asalahli··on Twitter will open source all code used to recommend tweets on March 31st
Open source =/= community, though, nor contributions. It just means releasing the source code with an open license
asalahli··on Pgrok – Poor Man’s Ngrok
Welcome to Zombo.com :)
asalahli··on Lisp-powered laptop with a battery life measured in years
> an electronics project book, a breadboard and some simple components are all you need to get really really far in combining electronics like this.

Well, don't leave us hanging, do recommend a book to start with

asalahli··on Physically Demanding Work Tied to Male Fertility
I just pictured a dude sitting on a chair, working, wires going to his testicles and a monitor on a side displaying a temperature chart and beeping regularly (for some reason).
asalahli··on Stack Overflow is a cacheless, 9-server on-prem monolith
It is absolutely a better interpretation. The former signals arrogance while the latter shows that OP accepts the inferiority of their guess in comparison to the actual architecture.
asalahli··on I, Libertine
Austin McConnell has the perfect combination of good storytelling and finding the most interesting random topics. Love his videos.
asalahli··on What if writing tests was a joyful experience?
I understood both this quote and the one I quoted above as OP arguing that automated testing will not save one from thinking about and fixing possible edge cases therefore automated testing has no value.

I agree with the first part but not the conclusion. My point is that with both manual and automated testing, you still needs to think. It's just that automated tests let you build an executable knowledge base of all the edge cases, errors, security issues etc. you've thought about in the past, and run them with every code change. Hence the value.

asalahli··on ABC: A C compiler for printable x86
The difference is that xor is available to him (he mentions that in the video), while addition needs to be achieved by combining multiple instructions.
asalahli··on ABC: A C compiler for printable x86
In the accompanying video[0] at 7:36 mark, he goes to great lengths to express (A or B) as (A and B) + (A xor B).

Can anybody explain why it can't simply be expressed as (A and B) xor (A xor B)? What am I missing here?

0. https://www.youtube.com/embed/LA_DrBwkiJA

asalahli··on What if writing tests was a joyful experience?
> Ultimately the best test is when you ask yourself "wait, what if someone sent this" and you try it to see if you can break your own code. That's just a spidey sense in the back of your head. If you didn't have the specific doubt to begin with, I don't know how you could write a unit test to disprove it anyway.

I can't speak for others but that's precisely how and why I write tests. It goes like "Wait, what if someone sent this" -> check what happens -> write a test to automate that check -> optionally, fix the code to handle this specific case.

Then, over time you accumulate tests that check all these weird edge cases for you and it doesn't take much to run them over and over again every time you change the code.

asalahli··on Django Styleguide
Wow, 8 years of using Django and I did not know about either of these. Thanks!
asalahli··on Django Styleguide
Fellow uWSGI fan here. Unfortunately uWSGI is now in maintenance mode, not because is complete which would've been fine, but because the maintainers are not able to dedicate time to it[0]
asalahli··on Django Styleguide
In my view (hehe), Django's class based views is a good idea implemented poorly. In theory you should be able to use any of the built-in class based generic views with minimal customizations to suit your needs, except when you want to do such customizations you're left dealing with a huge inheritance tree of mixins. It's all magic unless you know or wanna read the documentation on what each mixin brings to the view, that is _if_ you know what mixins are involved exactly, of course.
asalahli··on Web Components Guide
If they have no use for it, why would they?
asalahli··on PHP: Prolog Home Page
It's amazing that the FAQ in the repo readme actually contains the first two questions I had when I saw this. And yet, I'm even more confused.
asalahli··on Reverse Engineering TikTok's VM Obfuscation
Does adding your website to privacy.resistFingerprinting.exemptedDomains not work?
asalahli··on For Want of a JOIN
Also, caching can be done with materialized views
← PreviousPage 4 of 6Next →