News for hackers. Stuff that matters.
Re:Hard to work with by 29athrowaway on Thursday March 31, 2022 @12:47AM (#30863908)
The problem with software engineering management nowadays is the ubiquituous 18th century sweatshop mentality. In those sweatshops, the worker that completed more pairs of shoes is the highest performing one. But when you try to apply that mentality to more abstract endeavours like software engineering, it doesn't work.

Let's imagine there is a problem that requires to need to implement 100 classes to deal with 100 different types.

A 18th century person would say: I have 100 classes, 5 workers, I am going to give 20 classes for each worker to implement.

A person that actually knows what's going on would simply write template <typename T> class FuckYou, done.

In the wrong hands, software is misery.

Re:Hard to work with by 29athrowaway on Thursday March 31, 2022 @11:01AM (#30867959)
And the generation Z version in case you are wondering is

  function FuckYou(T) {
    return class {
      // something with T
    };
  }
Because you can return classes from a function.
Re:Hard to work with by pas on Thursday March 31, 2022 @11:18AM (#30868175)
in C++? or JS or ...? :o
Re:Hard to work with by 29athrowaway on Thursday March 31, 2022 @12:10PM (#30868791)
My self reply was JS
Re:Hard to work with by pgruenbacher on Thursday March 31, 2022 @11:56AM (#30868627)
zig