News for hackers. Stuff that matters.

flavious

Re:Zig Is Self-Hosted Now, What's Next? on Wednesday October 26, 2022 @06:13PM (#33350306)
Yes, that would be amazing, full classes of approaches to problem solving would be unlocked at once and we wouldn't have to invent new languages, DSLs, transpilers, etc, but just leverage zig.
Re:Why OO Sucks by Joe Armstrong (2000) on Friday March 26, 2021 @12:24PM (#26593956)
Contracts are actually quite necessary for modularity. In OOP we have data types (interfaces, classes).

As long as other paradigms provide contracts/abstractions, modularity can be achieved there also.

Faked modularity doesn't count. Leaky abstractions neither.

Re:Exotic Programming Ideas: Module Systems on Friday November 13, 2020 @03:52PM (#25087343)
I'm not your goto java guy, but the module system of java and how modules can provide implementations for interfaces is really great.
Re:That coworker who never stops refactoring on Thursday August 13, 2020 @07:39AM (#24142273)
Over-abstraction also has a non-negligeable cost.
Re:That coworker who never stops refactoring on Thursday August 13, 2020 @07:34AM (#24142239)
Fred should learn how to squeeze in his refactorings into other, related tickets. And to learn how to argue about why an user story is more points worth, without explicitly saying the R word.
Re:That coworker who never stops refactoring on Thursday August 13, 2020 @03:32AM (#24140861)
And how does the team feel about it?
Re:That coworker who never stops refactoring on Thursday August 13, 2020 @03:30AM (#24140849)
Sounds like the effects of temporal coupling, or "settism and gettism", or other principles, which are violated. People are blinded nowaways too much by SOLID, and forget about the remaining 20 principles.
My rule scales with the scope of the dependency:

"If you think that creating a wrapper around the library is too expensive, then the dependency is not worth having".

Re:Remark42: Self-Hosted, Lightweight Comment Engine on Sunday August 02, 2020 @08:56AM (#24028417)
Not questioning your decision at all, but can you explain the whole thought process which led you to the conclusion that it is a better fit?
Linux user for 15+ years, Slack, now Arch in the past 10 years.
Re:A look at modern PHP on Friday May 08, 2020 @03:00PM (#23118203)
Normally, bright developers acquire a new language* within a few weeks, if they already know the paradigm from another language. Hack is OOP, and so are many others, so I would expect a bright developer to learn hack in 2-3 weeks, not months.

Heck, I just read the docs of hack for 2 hours, and I already got a good sense of what the language can do. I worked with PHP internals, and a bunch of other languages in my career.

* as language we define the language, its syntax and semantics, not any other library or the ecosystem. And yes, the standard library is still just a library. Knowing a list of functions and parameters does not mean knowing a language.

Re:Rules of thumb for a 1x developer on Sunday May 03, 2020 @02:47PM (#23060997)
> Rule 20: When somebody says Agile, push for Kanban, not Scrum

From my experience, scrum is better. The idea is that you can measure progress and you can learn from mistakes with scrum.

Kanban doesn't help in that regard.

Also, a good scrum master will tell you some things:

- a successful sprint is one in which not all stories were finished, because the goal was ambitious

- do not sweat over spill-overs; they happen all the time, it's not the end of the world as long as you work 8h/day really focused and give your best

I know that in the US you got modern slavery with insame working and commuting hours, but life is decent in places like Europe.

Very good article, intuitively I'd say some overlap with "the pragmatic programmer".
Re:The Art of Command Line (2015) on Saturday May 25, 2019 @10:11AM (#20009151)
I've written many thousand lines of code in bash (along with way more in 15 years of programming in other languages) and I must tell you:

Never again!

Use xonch at least.

Define "We".
Who knows, maybe he has valuable things to share. It's like that with any book. It also depends on the readership.
Re:Ask HN: Best Centralized Backup Solution on Friday December 21, 2018 @11:59PM (#18739010)
borgbackup.
As a programmer, I leave a small portion of code uncommitted at the end of the day.

Next day, I just look at the git diff, and I'm mentally back right where I left.

Code monkey thinks he can help beginner become a researcher? Not so fast, tiger.
Re:I don't want to learn your query language on Saturday September 08, 2018 @02:12AM (#17939689)
When I was a junior, I could write my queries in SQL in 30 minutes for the report which was asked from me, but I needed two more days to figure out how to do it with the ORM.

For juniors, it's best to have a less abstractions.