The one thing you cannot do in object-oriented programming but you can in functional

3 years ago by canpolat to c/csharp

Download the source code for this demo at Patreon: https://www.patreon.com/posts/one-thing-you-do-85222122In Object-Oriented Programming, objects are instanc...
load all comments
Fordiman 4 points 3 years ago

Creating new objects would confuse your ORM vs. Always create new objects? Well, you've convinced me.

If you just made copy constructors in the first example, the problem wouldn't have existed. This is wholly contrived, and I feel dumber for having watched it.

Not even saying I like OOP, or that functional isn't usually a better paradigm - but this was the goofiest argument I've seen for it.

path: 0 769346, hotness: undefined, score: 4, children: 0
csharp
csharp

@programming.dev

login for more options
1819
275
7

A community about the C# programming language

Getting started

Useful resources

IDEs and code editors

Tools

Rules

  • Rule 1: Follow Lemmy rules
  • Rule 2: Be excellent to each other, no hostility towards users for any reason
  • Rule 3: No spam of tools/companies/advertisements

Related communities

go to feed...