HNHacker News
TopNewBestAskShowJobs

arunix

190 karma · joined July 18, 2012

submissionscomments
arunix··on Kotlin-Lsp: Kotlin Language Server and Plugin for Visual Studio Code
What are the IntelliJ alternatives you prefer?
arunix··on Migrating to Postgres
Also, the Query Object style, e.g. JOOQ and SQLAlchemy Core

https://martinfowler.com/eaaCatalog/queryObject.html

arunix··on A flat pricing subscription for Claude Code
How much do you pay for Gemini 2.5 Pro?
arunix··on Jumping Spiders
I didn't understand the vampire thing. That seemed like the least realistic part of the story.
arunix··on Chess324 – A Chess Variant to Reduce Draws
Could you add a diagram showing how castling works in this?
arunix··on Deregulation in Argentina: Milei Takes "Deep Chainsaw" to Bureaucracy
What's the difference between Japan and developed?
arunix··on Rhombus Language
That syntax suggests the first pair will be flipped, and the rest will just be as they were, i.e. more like flip_first
arunix··on Half My Life with Perl
Consider

    % perl -v | head -2

    This is perl 5, version 40, subversion 0 (v5.40.0) built for x86_64-linux
    % 
    % perl -E 'use feature "switch"; my ($x, $y); given ($x) { $y = 1 when /^abc/ }'
    given is deprecated at -e line 1.
    when is deprecated at -e line 1.
This is also mentioned in the docs:

  Smartmatch is now seen as a failed experiment and was marked as deprecated in Perl 5.37.10. 
  This includes the when and given keywords, as well as the smartmatch operator ~~. 
  The feature will be removed entirely in the Perl 5.42.0 production release.
https://perldoc.perl.org/perldeprecation#Smartmatch

>> In python you can't tell whats a variable and whats a list, and whats a dictionary by looking.

In Perl, sigils are used to distinguish between scalars/lists/hashes. Sigils and references are not the same thing.

https://www.perl.com/article/on-sigils

https://perldoc.perl.org/perlreftut

arunix··on Half My Life with Perl
The key idea in CLOS is multi method dispatch, which Moose does not provide.

Moose out of the box has its own set of problems, leading to other workarounds, e.g.

Moo (a similar but much less bloated solution)

MooseX::Extended - Moose with more sensible/correct defaults

https://metacpan.org/dist/MooseX-Extended/view/lib/MooseX/Ex...

arunix··on Half My Life with Perl
OO in Perl is lower level compared to Java or C++, so e.g. instead of having a class construct, you have to simulate a class - typically by binding (blessing) a data structure to a namespace. Then any functions in the namespace become methods that can be called via the data structure (object).

In practice, this has turned out to be a mixed blessing because of how tedious it is to do this repeatedly. So over the years there have been many libraries created to make this easier, each with different features.

There's currently work underway to modernise Perl's built in OO to address these problems.

On the other hand, this makes some things easier, e.g. Design by Contract can be added to Perl just by writing a library.

Another example, adding traits to PHP required updating PHP itself, whereas in Perl there are libraries to do that.

arunix··on Half My Life with Perl
given/when are deprecated and will be removed in a future release.

References are a PITA - cumbersome to use, and they make code less readable.

Perl doesn't have first class functions (you can pass or return functions via references, but that's cumbersome and less readable compared to languages with better FP support).

arunix··on The case against static typing in PHP (2023)
What did you mean by "viral"?
arunix··on Mastering Ruby debugging: From puts to professional tools
Can you say more about how pry goes beyond the REPL?
arunix··on Bazel 8.0
Perl had a similar motto ("Making Easy Things Easy and Hard Things Possible")

https://books.google.com.sb/books?id=3Fc4DQAAQBAJ

arunix··on How to use Postgres for everything
What are its advantages compared to a more dedicated job queue system?
arunix··on Sombrero Galaxy dazzles in new James Webb image
Elliptical galaxies are ball-shaped.

https://en.wikipedia.org/wiki/Elliptical_galaxy

arunix··on Agile Is Dead
Moved on to ... what?
arunix··on Mergiraf: a syntax-aware merge driver for Git
There was such a project long time ago.

https://boa-constructor.sourceforge.net/

arunix··on Functional Programming in Go
What's horrible about that?
arunix··on Is the US an Ochlocracy?
Would sortition be resistant to bribery/lobbying?
arunix··on Is the US an Ochlocracy?
Can you say more about the EC being awarded proportionally according to each state’s vote? Wouldn't that mean some state's vote won't matter?
arunix··on This Microservice Should Have Been a Library
Why Golang / Postgres in particular?
arunix··on KDE Linux
Is Aurora more stable than Fedora Kinoite?
arunix··on Alexander the Great's tunic identified in royal tomb at Vergina?
In The Boys from Brazil, they try to get around that by creating circumstances similar to that experienced by the historical warlord.

https://en.wikipedia.org/wiki/The_Boys_from_Brazil_(film)

arunix··on Rama on Clojure's terms, and the magic of continuation-passing style
Why is it called Rama? (there may be an FAQ, but I couldn't find it)
arunix··on I'm a feminist and I think it's harder to be a man than a woman
I'm not sure what that proves - the actor's wife is married to the actor, not to the character played by the actor.
arunix··on Psilocybin bests SSRI for major depression in first long-term comparison
That sounds great. How can I try it?
arunix··on What's New in Ruby on Rails 8
Is this correct? Practically every job advert I've seen claims they are using microservices (and want candidates with such experience).
arunix··on Golang – when programmers had smaller egos
Can you say more about how your code changed?
arunix··on Foundations: Why Britain Has Stagnated
It doesn't tell me your reasons or where you moved to. (And it ends on a positive note)
← PreviousPage 2 of 8Next →