[ home / overboard ] [ soy / qa / raid / r ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki ]

A banner for soyjak.party

/pol/ - International /Pol/itics & /Bant/er

Politics & countrywars
Catalog
Name
Email
Subject
Comment
Flag
File
Password (For file deletion.)

File: assburgers.gif 📥︎ (526.8 KB, 380x290) ImgOps

 â„–3995100[Quote]

Functions should produce side effects and change the control flow.
There should not be a complex abstract tree of inherited classes in your code.
Programming paradigms lost. Procedural programming won.

 â„–3995103[Quote]

do (You) agree?

 â„–3995106[Quote]

I don't know what a "Factory" is, but judging by the name it's something very bloated.

 â„–3995109[Quote]

use goto and gosub today

 â„–3995112[Quote]

So we have a class Circle, that inherits class Elipse, that inherits class CurvedShape, that inherits class Shape, that inherits class VisualObject or whatever.
I am sorry, but why not just use a function that, given x, y and r, draws a circle centered at (x;y) with radius r?

 â„–3995132[Quote]

or when we have functions GetCursorX, GetCursorY, GetCursorState. Three functions, but why not a singe one int GetCursorInfo, takes pointers to x, y and state variables, stores data in them and returns 1 if it failed? Oh course, that would be a side effect, that would go against the FUNCTIONAL paradigm, where functions are the 1st class values that take one argument and return it, and also can be passed to other functions.
I am sorry, but this isn't LAMBDA calculus, we're programming software that needs to be fast and effecient, we need to look at things through practical lens rather than some kind of paradigm. Functions are labels that store address of a location in .text section, that sets up a stack frame, performs some calculations in it, then it returns value through a register and goes back to caller address. There will always be implicit side effects.

 â„–3995145[Quote]

>>3995132
If you use OOP obviously you're using a framework. When you're using a framework then you most of the time don't care about the performance. Only CGQDs actually ultilize SIMD but it's such a SNCA unless you're working with a 16bit microcontroller or something like that. Modern PCs can handle ton of bloat and shitty vibecode it's not 1967 when you have to optimize your C8 anymore.
It's not wrong if you care about performance over verbosity but nu-devs and LLMs don't loke that

 â„–3995151[Quote]

>>3995100 (OP)
Can you explain in more detail what this means?

 â„–3995152[Quote]

I only barely know some Python.

 â„–3995155[Quote]

.

 â„–3995169[Quote]

>>3995151
He's complaining about the modern day SWE landscape where jr devs have to learn bloated theories like Design pattern, citing it as lowering code productivity and runtime performance



[Return][Catalog][Go to top][Post a Reply]
Delete Post [ ]
[ home / overboard ] [ soy / qa / raid / r ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki ]