HNHacker News
TopNewBestAskShowJobs

gabrieledarrigo

303 karma · joined June 30, 2015

submissionscomments
gabrieledarrigo··on Yes, Claude Code can decompile itself. Here's the source code
A pretty boring article.
gabrieledarrigo··on Yes, Claude Code can decompile itself. Here's the source code
Agreed. The article on the performance reviews is disturbing.
gabrieledarrigo··on Clean Code vs. A Philosophy Of Software Design
> I would never combine functionality to update an order with the data and structure of the an order. The reason is simple: the business constraints don't always live inside the order.

> Here's an example why such an approach inevitably must fail: if the business says that orders can only be made until 10000 items have been ordered in a month, then you cannot model that constraint inside of the order class. You must move it outside - to the entity that knows about all the orders in the system. That would be the OrderRepository or however you want to call it.

It's not that hard.

If the constraint of your example is a domain constraint, and so it's *always* valid, then when you hydrate an Order entity, other than the Order data itself, you also need to provide the total number of orders.

```

// orders is the repository, and it hydrates the entity with the total number of orders for this month

order = orders.new()

// Apply the check

order.canBeCreated()

```

Where the `canBeCreated` method is as simple as:

```

if this.ordersInAMonth > TOTAL_NUMBER_OF_ORDER_IN_A_MONTH ...

```

Fixed.

It's the same as using the OrdersRepository to query the number of orders directly before creating one, but here, the logic is just in the class.

Now, your example is pretty stupid, so I know it must not be taken literally but...

PS: I'm all but not a DDD advocate.

gabrieledarrigo··on Clean Code vs. A Philosophy Of Software Design
> I have better tools for doing that.

For example?

gabrieledarrigo··on Clean Code vs. A Philosophy Of Software Design
Pair programming should never be forced, but when applied... Jeez, it's powerful!
gabrieledarrigo··on I am rich and have no idea what to do
What a problem, eh dude? Damn, this rich guys are incredible.
gabrieledarrigo··on Libsearch: Simple index-free full-text search for JavaScript
Small and simple! I love these types of programs.
gabrieledarrigo··on The barriers to AI engineering are crumbling fast
Just...boring.
gabrieledarrigo··on Web Locks API
Ciao guys, what could be the use case for such API?
gabrieledarrigo··on Build systems, not heroes
I agree 100%. And in fact it's one of the principles of the devops culture. Automation, trust, light processes, early feedbacks.

Companies that relies on heroes and constant firefighting to keep running are doing it wrong. Very wrong.

gabrieledarrigo··on Life, death, and retirement
Damn, I had exactly the same thought. Europoor from Milan here, I'm probably forced to work until 70, so man...
gabrieledarrigo··on VoidZero: Building a Unified Toolchain for JavaScript
My only possible reaction:

https://imgs.xkcd.com/comics/standards.png

gabrieledarrigo··on How Uber tests payments in production
I expected a more deep and detailed article, but my hopes were trashed just after the first, poor, introductory section.
gabrieledarrigo··on AI-generated sad girl with piano performs the text of the MIT License
Technically impressive, but it makes me feel so lost, hopeless, and ignorant.
gabrieledarrigo··on How we communicate
> Automatic occasionally: “Social questions”

Bah. I wouldn't say I like this approach, since it's based on the assumption (wrong in my opinion) that using a tool or a set of rules to enforce social communication, will solve the socialization problem.

Do you want to talk about a book? Talk about it.

Would you like to know your new remote colleague? Book a call with her.

And so on, on a list of examples that I'd like to sum up in this sentence:

if you want to socialize, just socialize, since no tool can do that for you.

----

Then, I'm quite in line with this comment from @nmat

> Face-to-face communication is very underrated nowadays, probably because of the negative connotations associated with meetings. Talking to someone is by far the fastest way to convey information. I often prefer a quick chat to spend 30 minutes writing Slack messages back and forth. I agree that writing has other benefits and it's better in certain cases but we need to get out of the mindset that writing/async is always better.

A direct, face-to-face conversation is usually way faster than a ping-pong chat on Slack or, worse, especially for day-to-day activities.

On the same line of thinking, instead of long, useless meetings, or writing pedantic, bureaucratic, asynchronous long forms (like the 30 bullet points of the article), I'm a big proponent of pair/mob activities within small teams:

Use a visual collaboration tool, a shared document, or a code editor, and write together!

Utilize a timer and change the driver often.

Keep people focused and work together.

I've never seen teams be as efficient and fast as the ones adopting this approach.

Finally, the principle that I like most of the Agile Manifesto, the most important one to me:

> Individuals and interactions over processes and tools

gabrieledarrigo··on Testing how hard it is to cheat with ChatGPT in interviews
> but if you're doing it secretly in an interview that clearly is meant to be "closed book," I think it's fair to say you're cheating.

I would argue that is the opposite: it's fair to say that the interview is a cheat.

gabrieledarrigo··on BiomeJS 2024 Roadmap
I thought the same thing. Just another tool in the infinite list of tools in the JS ecosystem. No, thanks.
gabrieledarrigo··on Practising Programming (2022)
In your opinion peeps, is this still relevant with the advent of LLM?
gabrieledarrigo··on IT employment grew by just 700 jobs in 2023
> Many may forget, or not have been there, but 10-15 years ago tech jobs were notorious for ridiculous workloads/long hours.

And I can't understand sorry, why should we go back to this scenario, exactly?

gabrieledarrigo··on CSS Is Fun Again
Questions are never indiscreet, answers sometimes are (as yours, let me say that).

I've been in jail for a robbery when I was young, and I genuinely wanted to know the experience of the person who wrotes the comment.

gabrieledarrigo··on CSS Is Fun Again
Sorry if I ask you, but why you were in jail?
gabrieledarrigo··on I Love Ruby
> There are no types, only messages.

Yes but...what is the shape of those messages? I ways prefer to know the type of the material I'm working with...

gabrieledarrigo··on TC39: Add Object.groupBy and Map.groupBy
Holy moly, the static method is pretty horrible. Quite sad.
gabrieledarrigo··on More product, fewer product managers
> As a developer, and a development manager, the best product managers I've worked with rarely got involved in the "how".

My experience is completely the opposite. PMs that don't understand the how, that is, they don't know how their product works, are the worst.

Best PMs that I worked with had a technical background.

gabrieledarrigo··on Htmx Is a Erlang
Lol, I dunno who this dude is, but it was very funny.

Ps: Nathan James, pls stop

gabrieledarrigo··on Ask HN: Who wants to be hired? (December 2023)
Location: Milan, Italy Remote: Yes Willing to relocate: No Technologies: Typescript, Javascript, Node.js, SQL, MongoDB, Google Cloud Platform. Résumé/CV: https://drive.google.com/file/d/107dKir9thcqOPgFJPa4EeFpEcXI... Email: darrigo.g@gmail.com

Hi! I’m an experienced Software Engineer from Italy, with a long experience in designing, implementing, and releasing successful web applications.

I worked across a wide range of business domains, including small companies, well-known enterprise corporations, and startups, driving cross-functional teams to adopt best practices, optimize performances, and deliver innovative solutions that meet both user and business needs.

Passionate about:

- Domain Modelling - DevOps culture - Test-Driven Development (TDD), Extreme Programming - Node.JS, Typescript, and Web technologies

I’m also a creative guy, and during my free time, I like painting graffiti and canvases , drawing , and taking pictures with my camera .

I work 4 days per week because I believe in a strong life/work balance.

gabrieledarrigo··on Donkey code
Nope! Things are never important... behaviour is!

And please, after 20+ years of DDD at least, give Evans some credit: name your things after your business domain...!

gabrieledarrigo··on The next generation of serverless
> Serverless apps are applications that are not written as software servers. “Server-less” code is code that responds to events (such as HTTP requests), but does not run as a daemon process listening on a socket. The networking part of serverless architectures is relegated to the infrastructure.

The networking part was always and always will be relagated to the infrastructure. Really not sold to the all "serverless" fiasco.

gabrieledarrigo··on Italian privacy regulator bans ChatGPT
Maybe "qualunquismo" but not whataboutism.
gabrieledarrigo··on Italian privacy regulator bans ChatGPT
Usually this way of thinking is called "benaltrismo".
← PreviousPage 3 of 4Next →