Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. 🇳🇴 Thor — backup account (thorthenorseman@octodon.social)'s status on Wednesday, 24-Oct-2018 01:32:42 EDT 🇳🇴 Thor — backup account 🇳🇴 Thor — backup account

    OOP is overrated. The supposedly important parts of it, like inheritance, only make it harder to write a program. Bundling code and data doesn't require OOP at all, just functions that can be assigned to data structures, and some notion of "this" as an implicit argument to such functions. In fact, one could accomplish pretty much the same thing by making overloaded functions that depend on the types of the arguments passed to them.

    In conversation Wednesday, 24-Oct-2018 01:32:42 EDT from octodon.social permalink
    1. 🇳🇴 Thor — backup account (thorthenorseman@octodon.social)'s status on Wednesday, 24-Oct-2018 01:39:17 EDT 🇳🇴 Thor — backup account 🇳🇴 Thor — backup account
      in reply to

      If some kind of logical grouping of data structures and functions is desired, that's what modules (source files) are for.

      The only challenge with overloaded functions is for dynamically typed languages. Then again, there is no rule that you can't have a dynamically typed language with declared types.

      In conversation Wednesday, 24-Oct-2018 01:39:17 EDT from octodon.social permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.