Updated java thing

This commit is contained in:
qorg11 2022-02-16 08:54:31 +01:00
parent 7f05584778
commit a5092d1b28
No known key found for this signature in database
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 19 additions and 8 deletions

View File

@ -15,9 +15,9 @@ Java is the new COBOL.
Java is object oriented. So that make it suck automatically.
## Bloated syntax
~~~
## Stupid syntax
>\>`Car car = new Car`
~~~{.java .numberLines}
public class HelloWorld {
public static void main(String[] args) {
@ -32,6 +32,21 @@ I'm sure the "public class" and "public static void" aren't really necessary. Th
```System.out.println```? Jesus that's stupid
## The stupid concepts of object programming language
>\>Every object inherits implicity from `Object`
>\>`Object` doesn't have a new method that can be used by any object
As we really care about... I don't really know what they care about,
you can't change the object attributes from outside the class, so you
have to create, for each object attribute, 2 methods, one to get the
value of the attribute and other to set the value of the attribute. I
don't know who the fuck thought this was an smart idea (But I don't
really think changing an object's attribute is a good idea, unless
it's something specific like a linked list and you need the len, in
which case you can simply set the thing as `public`)
## Virtual machine
Sooo. You have to run a virtual machine to run any program made in Java. Why?
@ -47,11 +62,7 @@ The programmer was too lazy to port the software to other operating system. So w
## Alternatives to Java
* C
* Perl (Perl DON'T HAVE TO be Object Oriented. Actually perl is anything you want)
* Any Lisp programming language
* Anything that isn't Object-Oriented
* Jumping onto the eye of the hurricane
* Anything! (Except C++ and JavaScript)
# ABOLISH THE CLASS SYSTEM