Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: I dislike object-oriented programming in general

by Aristotle (Chancellor)
on Oct 28, 2007 at 18:03 UTC ( #647719=note: print w/replies, xml ) Need Help??


in reply to Re^3: I dislike object-oriented programming in general
in thread I dislike object-oriented programming in general

The presence of the explicit struct; the necessity of manual assignment of values (as opposed to implicit capture); manual management of the memory involved: none of these can make functional-style code so ugly as the mere fact that Cís syntax provides no device for writing functions anonymously and inline.

Once you combine the latter fact with the faults you mention, you inevitably run into a curious equivalence. Structs with function pointers; to functions written out of line; which accept a pointer to a user data struct: does that not sound oddly familiar? It should: there is no decidable distinction between writing OO-style C and functional-style C. Both involve the exact same mechanics of construction.

Makeshifts last the longest.

  • Comment on Re^4: I dislike object-oriented programming in general

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://647719]
help
Chatterbox?
holli writes MonkLinks 2.0
[holli]: Just to have a look what all the fuzz about the new JS features is about
[holli]: tag auch. wir sind ja unter uns :)
[Corion]: Hi holli ;)
[Corion]: In a way, it's sad that Firefox kills off the add-on functionality... But, as n-gate usually writes, "Firefox tries to be more like Chrome"
[holli]: it's not always possible to do a complete rewrite without cutting off some pigtails
[Discipulus]: indeed! new firefox seems poorer: many tab crash, and you open this link in FF?
[Discipulus]: problem scrolling even main page..;=(

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2017-11-20 19:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (291 votes). Check out past polls.

    Notices?