News for hackers. Stuff that matters.
Re:Easy Interfaces with Zig 0.10.0 by vegai_ on Thursday November 17, 2022 @02:51AM (#33636109)
> If you had that reaction, you might want to take some time to explicitly free your thought process from OOP-isms.

If you have this reaction, perhaps you should take a humility lesson before claiming that a few syntax tricks is all it takes to outsmart people who spent their entire university careers thinking about these problems.

Re:Easy Interfaces with Zig 0.10.0 by hsn915 on Thursday November 17, 2022 @02:52AM (#33636119)
Nah, OOP is bad. It's been a while since I met anyone, online or offline, who still takes OOP seriously.
Re:Easy Interfaces with Zig 0.10.0 by vegai_ on Thursday November 17, 2022 @02:54AM (#33636124)
/s, right?
Re:Easy Interfaces with Zig 0.10.0 by hsn915 on Thursday November 17, 2022 @03:01AM (#33636163)
No.
Re:Easy Interfaces with Zig 0.10.0 by vegai_ on Thursday November 17, 2022 @03:27AM (#33636298)
Well, you've met one now, so you can update that assumption. And also if you look higher up this thread, the author of this article takes it seriously as well. So that's two already in a pretty short time!
Re:Easy Interfaces with Zig 0.10.0 by eska on Thursday November 17, 2022 @06:36AM (#33637527)
The comment you’re referring to merely refrains from making a value judgment, while you’re turning it into an approval of OOP.
Re:Easy Interfaces with Zig 0.10.0 by vegai_ on Friday November 18, 2022 @05:05AM (#33652645)
>Thinking in OOP terms in, say, Java is great.

How did you interpret this statement?

Re:Easy Interfaces with Zig 0.10.0 by eska on Friday November 25, 2022 @08:27AM (#33742163)
Compare:

thinking in OOP terms in say, Haskell, is terrible. -> doesn’t mean OOP is terrible or that Haskell is terrible.

Thinking in functional terms in Haskell is great. -> doesn’t mean functional programming is great or that Haskell is great.

All it means is that the language is designed to be used with that paradigm.

Re:Easy Interfaces with Zig 0.10.0 by sph on Thursday November 17, 2022 @03:54AM (#33636462)
Poe's Law strikes again!
Re:Easy Interfaces with Zig 0.10.0 by kristoff_it on Thursday November 17, 2022 @03:06AM (#33636189)
> before claiming that a few syntax tricks is all it takes to outsmart people who spent their entire university careers thinking about these problems

I don't think I have written anything of that sort. Thinking in OOP terms in, say, Java is great. Zig is not an OOP language though, and it cares about mapping nicely to CPU instructions more than it cares about mapping nicely to UML diagrams, so thinking in OOP terms in Zig is not that great, more often than not.

I've seen plenty of people coming into Zig expecting it to conform to their expectations towards object orientation or functional purity. Neither will be able to have a good time if they can't let go of their preconceptions.

Re:Easy Interfaces with Zig 0.10.0 by vegai_ on Thursday November 17, 2022 @03:29AM (#33636309)
Sorry for misunderstanding the mood and context. In context of Zig, this makes a lot of sense, making my calls for humility premature and tad ironic.
Re:Easy Interfaces with Zig 0.10.0 by matheusmoreira on Thursday November 17, 2022 @03:32AM (#33636326)
People spend entire careers thinking about object-oriented programming?
Re:Easy Interfaces with Zig 0.10.0 by vegai_ on Thursday November 17, 2022 @03:33AM (#33636335)
Heh. I'm sure they thought and worked on others things too, but many focused on it, yes.
Re:Easy Interfaces with Zig 0.10.0 by matheusmoreira on Thursday November 17, 2022 @03:38AM (#33636362)
Any recent innovations? Because even traditionally object-oriented languages like Java and C# seem to be getting more functional over time, and the endless attempts to add classes to Javascript only make it worse.
Re:Easy Interfaces with Zig 0.10.0 by pjmlp on Thursday November 17, 2022 @07:03AM (#33637797)
Lots of them, people only have to look beyond Java and C#.

Many of those "functional" features like LINQ, were already present in Smalltalk collections and CLU.

As for what inovations, OOPSLA, ECOOP, ACM, IEEE proceedings have plenty of research papers on the matter.

Re:Easy Interfaces with Zig 0.10.0 by revskill on Thursday November 17, 2022 @06:11AM (#33637355)
Not quite, people think in Inheritance instead.
Re:Easy Interfaces with Zig 0.10.0 by pjmlp on Thursday November 17, 2022 @07:01AM (#33637779)
Re:Easy Interfaces with Zig 0.10.0 by anonymoushn on Thursday November 17, 2022 @04:34AM (#33636718)
A lot of people have spent their entire industry careers dealing with these problems, and the result seems to be the sentiment you've encountered in this comment section.