this post was submitted on 24 May 2025
38 points (97.5% liked)

Programming

20643 readers
59 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] thingsiplay@beehaw.org 5 points 2 weeks ago (2 children)

Netscape asked Brendan Eich to develop a scripting language that looks like Java, but be object oriented rather than class based.

I don't understand this part. Isn't object oriented also class based?? I mean that's the entire reason why classes exist, to create objects. Isn't it? How is this separated here?

[–] vermaterc@lemmy.ml 6 points 2 weeks ago (1 children)

Object oriented languages can be either class based or prototype based. Java is class based, JS was back then prototype based

[–] thingsiplay@beehaw.org 1 points 2 weeks ago (2 children)

Thanks, I see. I'll research and learn more about the differences. Thought this was an writing error and didn't research yet.

[–] tetrislife@leminal.space 2 points 1 week ago

The first fully-developed prototype-based OO language was Self, original Javascript seems quite similar.

[–] vermaterc@lemmy.ml 1 points 2 weeks ago

I mean: it is a writing error, because you can't compare "class based" to OOP, since they are just different things, but this is what is suspect was the case ;)

[–] anton@lemmy.blahaj.zone 6 points 2 weeks ago

To my understanding, the original meaning of object oriented is more similar to what we call the actor model today.

In reference to the modern understanding of OO, js uses prototypal inheritance, which some consider closer to the original vision.