[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Why didn't you write your last code in JS or Java /g/?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 74
Thread images: 3

File: java.png (19KB, 500x500px) Image search: [Google]
java.png
19KB, 500x500px
Why didn't you write your last code in JS or Java /g/?
>>
Because I do data science
>>
File: chingchangchong.png (37KB, 1653x628px) Image search: [Google]
chingchangchong.png
37KB, 1653x628px
>>62396714
I did
>>
I used Kotlin.
>>
>>62397150
US presidential election hacker detected.
>>
>>62396714
>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.
>>
>>62397028
wot, java has named params now?
>>
>>62397399
no, IntelliJ is just showing the parameter names
>>
>>62397450
That's very nifty.
>>
>>62396714

Dignity.
And they arent suitable for RTOS stuff
>>
>>62396714
I need to mathematically prove my programs.
>>
>>62398239
and what matematically fags uses?
>if you say python you deserve to get a shot in the head
>>
>>62397028
>using intellij idea
мoй ниггep
>>
>>62396714
For the past year I've been developing with Jython (best Python).
>>
>>62396714
I'm trying to learn some java, but it is so fucking verbose. Why the hell is public static void main necessary?
>>
>>62398582
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.
>>
>>62396714
I write boring corporate crap in knockout and jax-rs every day.
>>
>>62398582
>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.
>>
>>62398582
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
>>
>>62398320
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.
>>
>>62398582
typical pajeet, trying to memorize instead understand.
>>
>>62398678
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
>>
>>62398783
>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.
>>
>>62398783
Washing your hands before surgery is a huge waste to make some guy in a suit feel good.
>>
>>62396714
Have you been living under a rock? C# replaced Java years ago.
>>
>>62398888
c# is a fucking java copy with some c++ abortions and shitty practices.
>>
>>62396714
because I wrote it in TypeScript and Kotlin
>>
File: javacsharptopbrands.jpg (513KB, 1291x3600px) Image search: [Google]
javacsharptopbrands.jpg
513KB, 1291x3600px
>>62398888
>microcucks actually believe this
>>
>>62398888
>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
>>
>>62399087
That sounds comfy af
>>
>>62399130
C# is objectively superior to Java but shills use it for political reasons
>>
>>62399663
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#
>>
>>62399726
>whole package.
Yeap, I knew gay people use Java but you didn't have to put it in my face like that.
>>
>>62399663
// Hello1.cs

public class Hello1
{
/* use Main <- so they dont find we tried to make our java copy also string instead S breaking well coding practices */
public static void Main(string [] args )
{
//use a singleton for Console hur duur we are more avance than java fags
System.Console.WriteLine("Hello, World!");
}
}
>>
>>62398888
C# didn't but Kotlin is about to.
>>
>>62399910
Java is the only language where you have to instantiate an object just to write something to the console. It's fucking horrible.
>>
>>62396714
Because Javascript is a complete abomination and Java is too awkward and inflexible.
>>
>>62400031
>I don't know Java
>>
>>62400031
>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.
>>
>>62398947
this
>>
>>62400105
no, he doesnt even know OOP.
>>
>>62399910
You're right, Java is really for niggers. My mistake
>>
Anybody here?
>>
>>62401415
ayy
>>
I just like C# more than java because it is slightly less verbose.
>>
>>62398737
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
>>
>>62396714
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.
>>
>>62401822
that's correct
>>
>>62396714
>>62397028
>>62397399
>>62397450
>>62397999
>>62398419
Also wrote last line of code in Java on IntelliJ IDEA
>>
>>62400031
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.
>>
>>62401925
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.
>>
>>62402022
that's correct
>>
>>62402034
Thanks, appreciate it.
>>
>>62398783
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.
>>62398752
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
>>
>>62402022
x = false
as
!(true) || false
false || false
>>
>>62402324
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;
>>
>>62402382
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.
>>
>>62402420
I'm using code academy and these are the problems they're giving me. I'm just learning on my free time.
>>
>>62402462
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.
>>
>>62402487
I'll stop being lazy. Not a way to learn, you're right.
>>
>>62396714
>uses JS and Java in the same breath as if they're interchangeable

fuck off you moron
>>
>>62402382
>true
>5
>2.5
>>
>>62400031
>java
that isn't even java
>>
>>62398419
Фaггoт
>>
>>62402504
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
>>
>>62396714
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.
>>
>>62398419
>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.
>>
>>62396714
Because I generally stay away from languages that require interpreters.
Thread posts: 74
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.