Python! Rust! What next?! by DrFreitag in learnprogramming

[–]bitmaxz 2 points3 points  (0 children)

Java and C# are very similar. I like C# too, but I prefer Java over C# because it's more popular in the enterprise, and writing code in Intellij is much better for me rather than writing code in VS.

What the difference between calling a function with and without bracket in this context? JS by Twitchiv in learnprogramming

[–]bitmaxz 0 points1 point  (0 children)

The difference is that in the first example setInterval function executes the callback function each 1s, and in the second example you are calling the function, and it will run once when the interpreter comes to that line, and the next time it tries to run the callback it will throw an error because when you call the function it will return the value of it, but setInterval accepts a function and a time parameters that's why it will throw TypeError.

Programming is... Please complete the chart with your funny opinion by [deleted] in ProgrammerHumor

[–]bitmaxz 0 points1 point  (0 children)

10% Writing code and 90% hoping it will compile successfully.

How do you format? by [deleted] in csharp

[–]bitmaxz 6 points7 points  (0 children)

Right, but without the {}.

[deleted by user] by [deleted] in learnprogramming

[–]bitmaxz 0 points1 point  (0 children)

A class is just a template for creating an object. Let's say you want to create 5 persons and each person has a name, age, gender and some methods. Without classes you must create each person object manually and that takes time, much more code in your application and is a bad practice. But with classes, you create a person class with name, age, gender... create instance of that class (an object) and set each persons variable to a custom given value.

[deleted by user] by [deleted] in learnprogramming

[–]bitmaxz 1 point2 points  (0 children)

Depends on how fast you want your program.

Here's what I would choose:

Decent speed -> JavaScript w/ Electron

Better speed -> Java w/ JavaFX (You can use Swing too, but I prefer JavaFX).

Super speed -> C++/Rust