[ prog / sol / mona ]

prog


Is CLOS still worth learning?

1 2022-08-17 12:25

And how is OOP useful?

2 2022-08-17 13:49

>>1

Is CLOS still worth learning?

Well, it is integrated into Common Lisp, so if you want to master Common Lisp and read other people's Common Lisp code, you should learn CLOS. Some important libraries such as the Hunchentoot web server (used by this website's pastebin) are written using many CLOS features.

https://en.wikipedia.org/wiki/Common_Lisp_Object_System#Literature has a good list of resources for learning CLOS. The typically recommended book for an introduction to CLOS is Object-Oriented Programming in Common Lisp: A Programmer's Guide to CLOS by Sonya E. Keene.
https://en.wikipedia.org/wiki/Object-Oriented_Programming_in_Common_Lisp

3 2022-08-19 01:30 *

What problem are you trying to solve?

4 2022-08-31 18:05

CLOS is one of the great features of Common Lisp. If you're writing Common Lisp, you need to understand CLOS because it's widely used.
It's useful if the problem you are trying to solve benefits from structured data. But it's also totally different from Java/sepples style OOP

5 2022-09-01 02:41

>>4
Why is C++ known as "sepples"?

6 2022-09-01 14:10 *

>>5
C to SE
PLUS-PLUS to PP
MULTIPLES to LES

it sounds like a disease

7 2022-09-01 19:38 *

>>6

it sounds like a disease

Could be worse: aCePooP.

8 2022-09-02 11:34

In languages like java, OOP is often used as a hack to make up for lack of language functionality. The result is very boilerplate-looking code. However that does not mean that OOP itself is worthless. CLOS in my opinion provides you with oop in the shape of a handy tool, with a focus on what the compiler can do to make your life easier rather than philosophical issues. Even just for that I think it's worth taking a look at. Things that perplex c++ and java programmers for years, like the visitor design pattern, become obvious once you learn what double dispatching is through CLOS

9 2023-01-28 22:15

>>6
CPPOOP

10


VIP:

do not edit these