LogFAQs > #904115397

LurkerFAQs, Active DB, DB1, DB2, Database 3 ( 02.21.2018-07.23.2018 ), DB4, DB5, DB6, DB7, DB8, DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
TopicI hate Java.
1337toothbrush
06/28/18 8:37:19 AM
#29:


treewojima posted...
1337toothbrush posted...
treewojima posted...
RedWhiteBlue posted...
One of the things that really turned me off Java, and in turn coding itself, is the complete complexity and mess that code can be with repetition and methods and calling classes and inheritance and yada yada yada.

I've tried so hard, I just can't do it.

Give me a custom scripting language mod for a game, like Macro Keybind for Minecraft, and I'll master that shit in a few weeks.


try Python

Python is garbage, use Go instead: https://tour.golang.org/welcome/1

Go actually has no concept of classes or inheritance because the designers recognized the unnecessary complexity it brings. Python brought in a really shitty version object-oriented programming to its language because it was the new hotness at the time.


I meant more as an example of a flexible language that can be easily scripted. There are plenty of problems with Python (I'm looking at you, GIL). Plus the origins of Python's OO are more similar to that of Lua, in that they're a natural conclusion of implementing code/data in a table structure. If you want ugly OO that feels grafted on, look at C++ lol

Go is neat, but what does it offer over similar concurrency-oriented languages like Erlang?

The implementation of OO in C++ makes sense from a hardware standpoint. It can be clunky and confusing, but it's due to performance reasons. At least it's type-safe. Python's implementation is a dynamically-typed hellhole with awkward syntax on top (what's with the __init__ bullshit?).

Erlang is a functional programming language whereas Go is imperative, which should be easier for a beginner to grasp. Also, Erlang does all interprocess communication with message passing. Go supports message passing and memory sharing. Erlang has an emphasis on immutability, so there is a lot of copying.
---
... Copied to Clipboard!
Topic List
Page List: 1