HNHacker News
TopNewBestAskShowJobs

ralmidani

2,811 karma · joined May 8, 2014

submissionscomments
ralmidani··on HTML First
Maybe I’ve already drunk the koolaid, but if I end up building a new app from scratch, I would really like to experiment with something similar to what the author describes:

Django for most (if not all) of the server-side code, Django templates generating HTML, htmx handling most interactivity with html attributes and, when necessary, hyperscript (for use cases that can’t be covered easily by htmx). I would probably stick with downloading minified Bootstrap for styling (Tailwind requires a build step, and I don’t think I have done well in the past when I waded into “class soup”).

Has anyone here tried something along these lines for a non-trivial app? How is it going?

ralmidani··on A new home and license (AGPL) for Synapse and friends
You’re free to adopt whichever perspective you prefer. But Free Software is always Open Source. That’s an objective fact.
ralmidani··on A new home and license (AGPL) for Synapse and friends
Free Software and Open Source are essentially the same thing, just looked at from different angles.

https://www.gnu.org/philosophy/open-source-misses-the-point....

“In practice, open source stands for criteria a little looser than those of free software. As far as we know, all existing released free software source code would qualify as open source. Nearly all open source software is free software, but there are exceptions.”

ralmidani··on A new home and license (AGPL) for Synapse and friends
It’s awkward to ask people to assign everything to you in a way that makes you the only entity that can sell AGPL exceptions. If contributors are paid for their contributions that would be awesome, but it’s not clear that they are.
ralmidani··on Windows 10 PC will soon be 'junk'
I’m never inclined to believe them; there’s enough historical record to construe any Microsoft action as malicious, until proven otherwise.
ralmidani··on Windows 10 PC will soon be 'junk'
Doesn’t Microsoft only make Windows 11 “free” if you’ve already paid for a Windows license previously? That means they benefit when you buy a whole new machine.

Furthermore, Microsoft makes money from ads, so a more intrusive UI along with more extreme data harvesting also leads to more profits.

ralmidani··on Windows 10 PC will soon be 'junk'
Severe but temporary punishment is more humane and more effective than life in prison.

I believe this idea applies to tech as well as criminal justice.

We should actually welcome Microsoft’s increasingly anti-freedom, anti-consumer, anti-environment shenanigans as a boon for FOSS.

ralmidani··on Write PHP Code Within Next.js Components
Ironically, these days PHP has its act together - look at Laravel - better than most of the JS ecosystem does.

I don’t mind JS as a core language. Web Browser APIs are pretty awesome (with a few notable exceptions like IndexedDB). But the Node and SPA ecosystem is, speaking objectively, a dumpster fire.

We parody “enterprise” software, where vendors convince large companies to invest in over-engineered garbage.

Node, Express, React, Vue, etc. used to be for hipsters who wanted to cobble something together with maximum velocity and flexibility. But with them now in the big leagues, we’re seeing the same “enterprise” patterns emerge.

This is not an inevitable part of “growing up”; Python/Django and Ruby/Rails have been around for two decades, powered various unicorns, and are used at old-school multinational corporations as well as tech behemoths. But they have not fallen victim to the nonsense that plagues the JS ecosystem.

In fact, a lot of the JS ecosystem is now the worst of both worlds; you have over-engineered “solutions” combined with outrageous churn and zero sense of direction.

ralmidani··on Ask HN: Who is hiring? (November 2023)
Is this a reference to a literary work I’m not aware of?
ralmidani··on The .ing top-level domain
I checked for cod.ing and they said it was available. I got my hopes up and went to Godaddy. It costs over $38,000. I guess in some ways that’s good because the purchaser would more likely be someone who wants to launch a legit business or project rather than a squatter. But as others have pointed out, this whole thing is a blatant money grab.
ralmidani··on Why Is the Django Admin "Ugly"?
I read GP as saying they intentionally make the UX dysfunction for actually features (e.g. privacy settings, finding the “most recent” feed - I didn’t even bother to look for that one recently), and only optimize for eyeballs on the main feed and therefor monetization.
ralmidani··on Windows CE's final day
Be careful what you wish for. Repealing copyright without also making DRM and EULAs illegal would probably do more harm than good.
ralmidani··on Ask HN: Who wants to be hired? (October 2023)
Location: “Columbus, OH”

Remote: :true

Willing to relocate: if days_in_office <= 3

Technologies: I am strongest in Elixir, Ecto, Phoenix, and LiveView, and have some exposure to Absinthe. I also have experience in Python, Django, and Django REST Framework. Also Node, Express, React, Ember, Polymer (precursor to Lit), and some Vue. Dabbled in Ruby/Rails and Swift. Interested in learning Go, Rust, and Clojure.

LinkedIn: https://www.linkedin.com/in/ralmidani

Email: ragheed.almidani@proton.me

ralmidani··on Reviewing a Dell Linux PC 23 years ago
I hear about it, but I have no first-hand experience with how terrible Windows installation has become. I do have the privilege of being a developer who doesn’t need anything Windows-specific.

Another irony is that most folks who are making an autonomous decision to use GNU/Linux can probably figure out how to install and update it, so if you want to make good money pre-installing, selling to consumers, and supporting/updating the OS, you need to make a massive marketing push to convince folks to switch.

ralmidani··on Reviewing a Dell Linux PC 23 years ago
You’re right, except you had to install it for her. Viability and practicality mean people who aren't devs or power users can install the OS and update/upgrade by themselves.
ralmidani··on Reviewing a Dell Linux PC 23 years ago
For me the target is “GNU/Linux is viable and practical for the average user”, not “GNU/Linux has 30% market share”. I haven’t tried System 76 so I don’t know much about GNU/Linux outside the Framework line, but upgradeable graphics in the upcoming 16 inch models means you could dual-boot with Windows for AAA gaming and maybe a handful of Windows-specific apps, and GNU/Linux for machine learning and just about everything else.
ralmidani··on Reviewing a Dell Linux PC 23 years ago
The peripherals don’t “malfunction” in the strict sense, they’re just not good. To their credit, the mic and cam do have hard kill switches.

Also, the built-in fingerprint reader works great on Ubuntu and Fedora (Fedora even has it integrated with the terminal).

For more context, I rarely use laptops in my lap; I work from home and prefer at least some semblance of ergonomics, so for me they’re really just “easily-movable computers” i.e. I can work from the basement when needed, and on the dinner table when the house is empty.

ralmidani··on Reviewing a Dell Linux PC 23 years ago
I don’t have experience with GNU/Linux going back that far, but even since 2014 (when I got started with Ubuntu), I’ve seen things get much, much better.

These days my personal and professional daily drivers are, respectively, a 2021 and a 2022 Framework laptop, both with Fedora/GNOME updated regularly. The software is so much more usable than any MS OS since Windows 7, and even MacOS of the past 2-3 years (many people I talk to have remarked on how MacOS quality and usability have been degrading recently).

The only pain points I notice with my Framework are not strictly software-related (dislaimer: I don’t play much in terms of modern games anymore); power management/suspend (an atrocity in my experience), and quality of internal peripherals (the mic, webcam, and trackpad are almost useless, so I use just use a dock and external peripherals - and they work great with minimal hassle).

Not to sound like a broken record, but 2024 will probably be the year of the GNU/Linux desktop, especially with Framework’s AMD 16-inch laptop with upgradeable GPU making a huge splash, and MS and Apple continuing to alienate developers and power users. I’m actually glad they’re getting worse because it pushes more people toward FOSS - severe but temporary punishment is actually more effective and less cruel than life in prison.

ralmidani··on Ask HN: Is it worth learning Ruby on Rails in 2023
I’ve built toy apps with Ruby/Rails and larger apps with Python/Django. Honestly, I like Django more for its less magical approach, ORM with automatically generated migrations for common cases, and great ecosystem (check out Django REST Framework, Django Filter, Django Reactor, and Django Unicorn, to name a few).

If you already like Django and have learned its ins and outs, time spent learning Rails would be better spent actually building something with Django. Also, a lot of big, successful companies have been built with Django, among them Pinterest and Instagram.

With that said, if you want to try something new and need something better suited for scalable, real-time applications, the combination of Elixir & Phoenix is similar to Rails but also less magical, and it runs on a battled-tested runtime with fault-tolerance and low latency built in.

Finally, if you’re building a CRUD-ish SAAS app that needs a constant server connection, check out Phoenix LiveView for a very robust and dev-friendly solution. For the type of apps it was meant for, it’s really the technology to beat (I use it for my day job)!

ralmidani··on Diablo
Thanks! Fixed.
ralmidani··on Diablo
I agree with the drug analogies.

I bought Diablo in 1996, I stayed up about 40 hours playing it. To the point that I started to literally hallucinate and click on things that weren’t actually there.

I downloaded the relatively new iOS Diablo game a few months ago and sank tens of hours into the game before waking up and putting an end to the madness. I’m morally opposed to “pay to win” games and wasn’t tempted to buy anything, so fortunately I escaped without financial damage (but the time I put into the grind can’t be replaced).

Granted, there are people who are more susceptible to addiction, and I appear to be one of them (thankfully, I was raised in an observant Muslim family). But that doesn’t absolve Blizzard of responsibility for what they’ve unleashed.

ralmidani··on Tuition costs have risen 710% since 1983
I don’t want to trivialize the amount of work that goes into airbags, electrical infrastructure, or plumbing.

However, the human body is much more complicated. Would you trust the life of a loved one who, God forbid, has cancer or needs surgery to a person with a fraction of the education and training physicians receive?

By the way, I’m reminded of a joke: a doctor called a plumber for a faucet leak. The plumber fixed it in 5 minutes and charged $175. The doctor said “how can you charge that much for 5 minutes of work? I spend a whole hour with a patient and charge less!” The plumber said “that’s exactly what I used to say when I was a doctor.”

ralmidani··on Tuition costs have risen 710% since 1983
I looked for a credible source for this claim. Hospitals say they’re losing money on residencies but there doesn’t appear to be an easy way to verify this. What if the federal government is falling for/complicit in a big lie (wouldn’t be the first time, see PPP “loans” when COVID started)?
ralmidani··on Tuition costs have risen 710% since 1983
Medical school is education, and in the US it’s astronomically expensive (some people graduate with half a million dollars of debt).

Residency is more like on-the-job training (a hospital still makes money when a resident sees and treats you). It just takes longer to train a physician because there are human lives at stake.

Yes, teaching fellows and others in academia are often taken advantage of and work for free, but that doesn’t mean physicians are evil for getting paid during residency.

ralmidani··on Rust has been forked to the Crab Language
https://en.m.wikipedia.org/wiki/AtScript
ralmidani··on OPPO’s Tuzla factory closed quietly
Turkey has more freedom, human rights, and rule of law than does Egypt (where production is reportedly moving). I know, the Sisi regime hasn’t set a high bar, but it’s ridiculous to frame this as anything but a business decision.
ralmidani··on Ask HN: What is your proudest little invention or discovery?
Figuring out a pattern for finding the square of, say, 10, then 11, then 12, etc. In my mind, the formula was: x^2 = (x - 1)^2 + (x - 1) + x.

For example, if you know that the square of 10 is 100, the square of 11 is 100 + 10 + 11 = 121. The square of 12 is 121 + 11 + 12 = 144.

Another way to think about it is enlarging a grid along both dimensions: first add an extra column (x - 1), then add another full row (x).

I "found" the pattern by observing and thinking about the relationships. I never came up with a formal proof - I'm a developer, not a mathematician! Here's a good explanation of why this works with intuitive images rather than just equations and words: https://betterexplained.com/articles/surprising-patterns-in-...

ralmidani··on PyPI Was Subpoenaed
Does a "subpoena" mean a judge was involved? The post says the subpoena was issued by the DOJ.
ralmidani··on Do not call: States sue telecom company over billions of robocalls
Why do consumers get prosecuted for circumventing DRM, even if just to claim back their ownership of content and devices they bought, but companies get away with actually malicious circumvention (spoofing) on a much wider scale?

Also, technically speaking, how can big telcos make sure they route a call to the right phone, and also claim to be helpless against spoofing?

ralmidani··on Don’t open the details in a modal window, have it be a separate page
Not your main point, but in the Berkeley videos case I blame, well, Berkeley. They could have taken the videos offline temporarily, worked on transcribing them, and brought them back gradually (they have the resources or, if they’re too cheap, could have resorted to crowdsourcing). Taking that wealth of knowledge offline so abruptly, and with no plan to ever bring it back, is really a disgrace. The videos live on thanks to Archive Team, but they’re not as easy to discover.
← PreviousPage 4 of 22Next →