Java without Eclipse - Programming On Unix

Users browsing this thread: 4 Guest(s)
z3bra
Grey Hair Nixers
I must have hurt yourself or someone close to you to receive such a huge amount
of insults from you.

You don't know me, you don't know my beliefs or ideas, and yet you judge me
based on a single post you (mis)read that I wrote almost 3 years ago. That's
rude.
I hope that after reading the following, you'll stop thinking that I am a
"fucking stupid arrogant idiot reactionnary dick".

part 1: Why makefiles + java

I've always been really curious to know how everything works under the hood.
When our high-school teacher taugh us Java, he asked everyone to fire up
eclipse, copy-paste an "hello world" he wrote and press the magic green button
to show that it works. During the C courses, the teachers were asking us to
compile everything by hand on the command line, and write makefiles so we could
understand the full process from writting the code to running it.
So, this "magic green button" in eclipse left me quite curious, and I wanted to
know more about it. I then asked the teacher what it was doing, and all I had
as an answer was: "You don't need to know how it works, as it has all been
automated for you." (or something along those lines).

Needless to say, I wanted to know more about it, so I started googling "how to
build a java project", and things like that. I was already good enough in java
to "skip" the basics the teacher was explaining, and digging how it works
under the hood.

So during the first courses, I started trying to "replicate" the job done by
this magic button with the only other build technology I knew: make.

When we started a project with my classmates, everyone was assigned a role by
the teacher, and I was designated "architect". We were using Ant to build the
project, but after setting it up correctly, I wanted to check if I could apply
what I learnt with the makefiles to this project, as a proof-of-concept.

I did, and it worked! My teacher was telling me all along that java projects
*HAD* to use eclipse to build them (or any IDE basically). Proving your teacher wrong is something oddly satisfying (even if today, I understand what he was
saying), so I wanted to share it with the world! Hence this blogpost.

This was an anwser to my teacher saying "You NEED Eclipse when you work
with Java". To whom I replied "No, you don't need Eclipse. All you need is an
editor and a build system."

Makefiles might not be the best way to build a java project. At my company, we use gradle, which works perfectly fine, and builds our big project perfectly.
And even if some of our developpers use Eclipse, everyone fires up a shell
when they need to build the project. That's why I think the point I was making
in this post is still valid.

part 2: misleading people

The point of this article was not to make people use makefiles + java instead
of an IDE. It was to show that all the magics that happens behind the scene
can be written by hand using a well-known build system.

Quote:but posts like that is fucking stupid, and people just swallow it.
The goal of this post was to teach people how to build a java project "by-hand"
rather than just clicking the magic button. I think it's important to
understand how the tools you're using actually work.

Quote:A few days after I joined I saw a kid in the channel ranting about how much Java
sucks. He was talking about how much he hated object oriented programming.
A few hours later he asked what an object was.
That's sad.
This chan actually suffer the "rant on everything mainstream" illness, and I
encourage people to check by themselves instead of repeating shit they hear.
Whenever I suspect someone to rant without particular knowledge/reason, I try
my best to prove them wrong, even if it's about a topic I don't agree with.

I also try not to tell people "Use X because Y sucks".

Now please stop being a jerk on people you don't know, for no particular
reason. We try our best to make this place a fun and peaceful place for
everybody, and it starts by avoiding insulting random people.
So yeah, in case you get banned, I hope this would serve as a warning for
future readers that we expect our users to respect each others.

peace.


Messages In This Thread
Java without Eclipse - by z3bra - 18-10-2013, 04:25 PM
RE: Java without Eclipse - by z3bra - 18-10-2013, 08:04 PM
RE: Java without Eclipse - by Ippytraxx - 18-10-2013, 08:27 PM
RE: Java without Eclipse - by venam - 19-10-2013, 02:06 AM
RE: Java without Eclipse - by crshd - 19-10-2013, 08:38 AM
RE: Java without Eclipse - by z3bra - 19-10-2013, 08:47 AM
RE: Java without Eclipse - by Miyazeaux - 20-10-2013, 03:26 PM
RE: Java without Eclipse - by tbuck153 - 20-10-2013, 04:28 PM
RE: Java without Eclipse - by Ippytraxx - 21-10-2013, 07:27 AM
RE: Java without Eclipse - by Jayro - 21-10-2013, 09:37 AM
RE: Java without Eclipse - by z3bra - 21-10-2013, 10:23 AM
RE: Java without Eclipse - by Ippytraxx - 18-11-2013, 10:36 AM
RE: Java without Eclipse - by jmbi - 19-06-2014, 01:54 PM
RE: Java without Eclipse - by pvtmert - 15-07-2014, 05:52 PM
RE: Java without Eclipse - by dami0 - 24-07-2014, 07:25 PM
RE: Java without Eclipse - by ki113d - 17-09-2015, 10:20 PM
RE: Java without Eclipse - by neeasade - 17-09-2015, 10:46 PM
RE: Java without Eclipse - by jaagr - 04-06-2016, 06:40 PM
RE: Java without Eclipse - by jmbi - 04-06-2016, 07:23 PM
RE: Java without Eclipse - by jaagr - 04-06-2016, 08:40 PM
RE: Java without Eclipse - by Laserswald - 04-06-2016, 08:48 PM
RE: Java without Eclipse - by jmbi - 04-06-2016, 08:52 PM
RE: Java without Eclipse - by jaagr - 04-06-2016, 09:09 PM
RE: Java without Eclipse - by venam - 05-06-2016, 04:32 AM
RE: Java without Eclipse - by z3bra - 05-06-2016, 05:56 PM
RE: Java without Eclipse - by jaagr - 11-06-2016, 01:57 PM
RE: Java without Eclipse - by z3bra - 11-06-2016, 07:20 PM