cativo é uma modalidade de mercado de energia onde o consumidor compra energia direto da distribuidora, a outra modalidade é mercado livre onde o consumidor pode comprar direto da usina
Seems like a great idea to mix Portuguese variable names with English function names. I guess that's an unfortunate barrier in programming languages that they're all written in English.
I dont think i agree. Nowhere in OOP is anyone encouraged to chain long variables like this. This is why classes/functions in js for example have a this context. There is never a need to do what is being done here, its a hacky mediocre solution to which clean OOP would provide better solutions.
I don't mind it. At least it is clear what is being used for each calculation.
I think it needs a few functions to state what is being done, but the long variable names make it easier to ensure that the right metrics are being used on the calculations.
That's why I avoided, because I do know what it's like. Far too many terrible java apps out there, write 3 times run somewhere, maybe. There are a few good java apps though, just nowhere near as many as there should be after 30 years of being a language. Oracle has some good ones of course, since they bought Sun and got the Sun programmers and then incorporated lots of java into the database. They also have some fantastic free applications for their database that are written in java - SQL Developer, ORDS, etc.
Well, never did any C# crap. Just BASIC, Assembler, Fortran, PASCAL, dBase, APL, C, C++, MUMPS, COBOL, some javascript, SQL and PL/SQL. And of course the obligatory UNIX shell scripts in BASH, and all of the headaches and nightmares of creating Make files. Probably a few others I missed, but I think I was pretty effective at avoiding any of the Microsoft crap.
Without those "shitty languages", you wouldn't have a job as C# and java wouldn't exist. And there's more successful programs running from those "shitty languages" than there are from languages like C# or java.
No, there isn't necessarily. Your random stubbornness because you browse only beginner's code and rely on 2 decade old stereotypes which have completely changed would cause you to legitimately run a bad business in the real world. The post doesn't represent code that is actually used and no one that's not an absolute beginner would do something like this post.
64
u/oleodmc Dec 23 '22
ps. that's portuguese
4
u/PacoWaco88 Dec 24 '22
Builder pattern would like a word with you.
4
u/[deleted] Dec 24 '22
Shortest line in java bruh
54
u/grrangry Dec 23 '22
The true wtf is using
doublefor money.45
u/[deleted] Dec 23 '22
jesus
21
u/Brobz Dec 23 '22
looking like brazilian power grids
41
u/[deleted] Dec 23 '22
This is why "Be Explicit" is wrong.
Balance being explicit with being concise. Variables being readable has a goldilocks zone.
9
u/LankySeat Dec 23 '22
Imagine trying to debug this. My god.
9
u/dirtimos Dec 24 '22
I don't mind it. At least it is clear what is being used for each calculation.
I think it needs a few functions to state what is being done, but the long variable names make it easier to ensure that the right metrics are being used on the calculations.
3
u/Fortalezense Dec 23 '22
Pai amado
2
u/Dimboi Dec 24 '22
When the tarifasem impostos is sus
2
u/stuie382 Dec 24 '22
cries in DeMorgan's law
2
u/[deleted] Dec 23 '22
As a mediocre coder who for some reason loves spaghetti code, this is weird
1
u/RavynousHunter Dec 27 '22
Almost looks auto-generated...
1
u/HMS_Impractical Jan 02 '23
tersest c# code
0
u/Opinionated_by_Life Dec 23 '22
And that is just part of the reason I hate java and avoided it at all costs during my 40+ years of programming.
-3
u/TheZipCreator Dec 24 '22
least boilerplate java
-10
u/Inaeipathy Dec 23 '22
stunning work of art
10
u/[deleted] Dec 23 '22
[removed] — view removed comment