DEV Community

Discussion on: The scientific proof of that OOP is a mass psychosis

Collapse
 
wjohnsaunders profile image
wjohnsaunders

So if I posted a really long example in C doing the same parallel fetch of 2 URLs, by calling posix threads and curl APIs, would that disprove your theory? After all C is not OOP, never has been. I think you are confusing the term OOP with the level of abstraction that a language operates at. C and C++ operate much closer to the CPU hardware, where higher level languages operate much further away.

Also I am interested in how Hyperlambda would allow that code example to be unit tested. Some languages with introspection have the ability to redirect to mocks, is Hyperlambda like that? C++ does not, so you have no choice but to make those "seams" used for testing visible in the code. e.g. m_Factories.

Collapse
 
polterguy profile image
Thomas Hansen

I am interested in how Hyperlambda would allow that code example to be unit tested

It's a "click button thing", the system automatically generates integration tests by allowing you to replay HTTP invocations.