Timeline for answer to Why shouldn't classes be designed to be "open"? by Spencer Rathbun
Current License: CC BY-SA 3.0
Post Revisions
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 12, 2013 at 20:45 | comment | added | Giorgio | @Michael K: In OOP a first class function is just an object with exactly one method. | |
| Jul 13, 2011 at 15:20 | comment | added | umlcat | It's difficult to teach Java or DOTNet Languages to new students. I usually teach Procedural with Procedural Pascal or "Plain C", and later, switch to O.O. with Object Pascal or "C++". And, leave Java for later. Teaching programming with a procedura programs look like a single (singleton) object works well. | |
| Jul 12, 2011 at 20:11 | comment | added | Michael K | That could be solved, if Java had first class functions. Meh. | |
| Jul 12, 2011 at 19:38 | comment | added | Spencer Rathbun | @Michael of course not. I stated that you may want a procedural system, that is, one without OO concepts. I've seen people use Java to write purely procedural code, and it doesn't work if you try and interact with it in an OO fashion. | |
| Jul 12, 2011 at 19:17 | comment | added | Michael K | BTW, OO and procedural are most emphatically NOT mutually exclusive. You can't have OO without procedures. Also, composition is just as much an OO concept as extension. | |
| Jul 12, 2011 at 18:09 | history | answered | Spencer Rathbun | CC BY-SA 3.0 |