Why didn't you write your last code in JS or Java Sup Forums?

Why didn't you write your last code in JS or Java Sup Forums?

Because I do data science

I did

I used Kotlin.

US presidential election hacker detected.

>JS
It wasn't for the front end.
>Java
Worse for productivity than C#, F#, Kotlin, Scala, Haskell, OCaml, Common Lisp, Clojure, Racket, Erlang, Elixir, etc.

wot, java has named params now?

no, IntelliJ is just showing the parameter names

That's very nifty.

Dignity.
And they arent suitable for RTOS stuff

I need to mathematically prove my programs.

and what matematically fags uses?
>if you say python you deserve to get a shot in the head

>using intellij idea
мoй ниггep

For the past year I've been developing with Jython (best Python).

I'm trying to learn some java, but it is so fucking verbose. Why the hell is public static void main necessary?

The answer might not make much sense until you understand full on application development, feel free to read about it but it might be best to just roll with it for now.

I write boring corporate crap in knockout and jax-rs every day.

>hell is public static void main
this kind of complains raises from unformal young unexperience programmers in every sense

when you get a formal job or you work in a big project that requieres formal unit testing you gonna understand it.

public: the main method needs to be callable from outside the class it's defined in

static: you don't want to have to instantiate an object and call new ChingChangChong().main() to run your program

void: callers of the main method need to know they're not getting a value back after the method runs

haskell, C, asm.
I'm not a researcher yet but I do help researching how to make specialized AI and anything functional is good (recursivity and shit).
C is also good as you can make the right data structures for pretty every paradigm ever.

typical pajeet, trying to memorize instead understand.

Unit testing is a huge waste to make some guy in a suit feel good. So much more work could be completed if it was ignored.

Because my parents names me Thomald

>Unit testing is a huge waste to make some guy in a suit feel good.

I am not talking to you pajeet, we people who works with models and science needs to do validations.

Washing your hands before surgery is a huge waste to make some guy in a suit feel good.

Have you been living under a rock? C# replaced Java years ago.

c# is a fucking java copy with some c++ abortions and shitty practices.

because I wrote it in TypeScript and Kotlin

>microcucks actually believe this

>t. cuck who accidently fell for a meme, and now feels compelled to defend said meme due to the amount of time wasted on it

That sounds comfy af

C# is objectively superior to Java but shills use it for political reasons

no, people who do actual programming for money know that differences between C# and Java 8 are negligible and what actually matters is the whole package. and when in comes to the whole package, Java destroys C#

>whole package.
Yeap, I knew gay people use Java but you didn't have to put it in my face like that.

// Hello1.cs

public class Hello1
{
/* use Main

C# didn't but Kotlin is about to.

Java is the only language where you have to instantiate an object just to write something to the console. It's fucking horrible.

Because Javascript is a complete abomination and Java is too awkward and inflexible.

>I don't know Java

>Java is the only language where you have to instantiate an object

>instantiate an object...

do you know what a fucking static member is ? gtfo.

this

no, he doesnt even know OOP.

You're right, Java is really for niggers. My mistake

Anybody here?

ayy

I just like C# more than java because it is slightly less verbose.

Programs return an exit code though. And that is not abstracted in Java because you can System.exit(-1).

I can only speak for game-dev,
but there is a reason all the good engines (except ogre maybe)
support either C, C++ or C#,
but none on Java.

And on top of that, the ones who use an abomination of JavaScript currently slowly replace them with proper languages

JS has hardly anything to do with Java.

Specify what the value of x is after the statement is executed


int x = 5;
x++;
++x;


I get seven. Can someone verify this for me? I'm just learning Java.

that's correct

Also wrote last line of code in Java on IntelliJ IDEA

Wrong complaint retard. You meant to say, Java popularized the shit "everything including modules is a class"pattern. You get classes that never once are instanced.

Thank you.

Can I verify another?


Specify what the value of x is after the statement is executed


boolean y = true;
boolean z = false;
boolean x = true;

x = !y || z;


For this I got false. Again, this is Java.

that's correct

Thanks, appreciate it.

This guy gets it. Formal verification is the only tool to write secure software. Unit tests are useless pos made up to scam mathlets into feeling safe sense of security.
Don't know about your project, but we use C because:
we mainly deal with infrastructure right now
compcert
framac
the machine model can be very simple so proofs are trivial in some cases

x = false
as
!(true) || false
false || false

What about this?

Specify what the value of x is after the statement is executed. Java still.


1. boolean y = true;
boolean z = false;
boolean x = true;

x = y && z || true;


2. int y = (int) 5.2;
double x = y;


3. double x = 5;
int y = 2;
x = x/y;

Are you giving us your CS homework?
anyways why not just write a java program with your q's and print the result?

I literally just finished my latest JS code.

I'm using code academy and these are the problems they're giving me. I'm just learning on my free time.

You could write all these in a Java program and execute it to see the results after you came up with your thoughts on the result.

I'll stop being lazy. Not a way to learn, you're right.

>uses JS and Java in the same breath as if they're interchangeable

fuck off you moron

>true
>5
>2.5

>java
that isn't even java

Фaггoт

I would recommend something else, which is how I learned programming:

Take breaks between doing your courses.

In these you do not think about the problems, but WHAT exactly you could cool do with the knowledge you already have.

Do a calculator. Do a little robot talking to you. Code a virtual girlfriend by scanning some input and then checking it with if(!x && || == etc and then giving a response, the usecases are infinite.

20% percent of coding is knowing things, 30% is understanding them, 50% is imagination

because my skin color is not shit color

Because I needed to manipul
Ate csv files and Pythons Pandas is king in that area. Also Python Numplot.

>not using intellij for java

I still don't understand how shit like Maven work.

I just want to make some libraries and then use them in my real projects but this maven faggotry gets in the way.

Because I generally stay away from languages that require interpreters.