Home » Software Development » Teach Them The Language First

About Mihai Andronache

Mihai Andronache
Mihai is an experienced Java and JavaEE developer. His main interests are: clean OOP, code maintainability and testing. He is the creator of http://comdor.co and http://charles.amihaiemil.com"

Teach Them The Language First

I wanted to write this article for some time now, but I wasn’t sure if it’s such a spread phenomenon or maybe just my experience. This tweet made me decide to write it.

I think these days, frameworks and platforms have grown and have abstracted our work so much that it is very easy to spend 10 years in a company, doing Spring, Java EE, Ruby On Rails or .NET and not be able to distinguish them from the language itself. Some may argue that this is not a big deal, since nobody is going to redo all the work that these giants have already done – it’s true, nobody is going to do that, even if they have many flaws, it would simply be too expensive. Besides, it takes years to grow a community around something.

However, I still believe that any developer should understand what is behind these things and at least have an idea about how a web application would look if it were built from scratch, using vanilla Java, Ruby or C#. The point is not to avoid the frameworks, it is to understand them and not tie your entire knowledge to one in particular. To elaborate the idea, let’s take a junior developer and see how his/her journey into the field might look like.

Tom & Jerry – Triplet Trouble, by William Hanna and Joseph Barbera

It all starts with the hiring. Of course, the company figures that it has to spend time teaching this person how to write Java. So, the first part of the onboarding process is spending some weeks reading OOP basics and the absolutely must-read, Bruce Eckel’s “Thinking in Java”.

In a few weeks the new developer, who still doesn’t have a clear picture of how to build anything valuable with Java, is given more material: usually Java EE or Spring. Reading this does not shed much light either, now they just know that this is the “framework” (“some libraries”) used in the company’s projects and that it involves a few annotations.

Having read everything, they’re ready to go, they start working on a project with small tasks, one tiny step at a time. After a year or two, they are confident in their knowledge and they might even participate in new projects with the same tech stack.

So where’s the problem in all this? The problem is that the company only taught the developer the things used in-house and just enough so he/she can start “learning by doing”. Nobody stood near them to talk, clearly explain the concepts; they were left with what they understood in those many hours of reading. Then, they skipped quite some steps: they worked on web applications without even learning the basics of HTTP; they worked with a database without even understanding what JDBC is – “you know, just use this annotation and it will work, this is Java”. To a developer with this kind of training (I was trained like this and I believe that a lot of developers go through a similar process) this is how Java exposes an HTTP endpoint:

@Path("/books") public class Books {    @GET    @Path("/{id}")    public Response getBook(@PathParam("id") String id) {      //...    } }

Instead, before learning about all these abstractions built by Java EE (or those built by Spring), they should have seen how bare-bones Java actually exposes HTTP endpoints – first the theory, then see how a socket is built in Java, then servlets, then understand what problems (and how) does the framework solve.

If the tools used are not distinguished from the language, then chances are very big that said tools won’t be used correctly: Java EE deployables of 100 MB, because they did not understand that most libraries are provided by the platform; Spring applications deployed on a Java EE platform because they do not know the difference between a simple servlet container like Tomcat and JBoss or Glassfish etc. Not to mention they won’t have a clue about known bugs or really understand new, more complex, features.

Anyway, some years fly, somehow everything comes together and they now understand know the current version in and out and are productive for the company. On the other hand, it is not clear how come there is Java 9, but Java EE 8 just came out this year, shouldn’t it be the same version? Take the platform away, or ask them to look into alternatives and I think it will be very hard (yet, by most standards, they are far from the Junior level).

This is basically what is happening in the Java world. The others have exactly the same problem: Ruby On Rails is everywhere, how many actually know how to develop an application with Ruby? .NET is the dictator of the C# world, take it away (maybe it is enough to take Visual Studio away) and ask them to sketch a webapp with C#; PHP is hidden with Symphony or Laravel; Python with Django etc.

Don’t get me wrong, I am not saying anyone will ever have to write something from scratch, nobody will, it is just theory. All I am saying is that a clear understanding of the whole ecosystem is necessary. Knowing which is the basis and which is just a layer on top (and how it could be changed) is one of the keys for quality software.

Published on Java Code Geeks with permission by MIhai Andronache, partner at our JCG program. See the original article here: Teach Them The Language First

Opinions expressed by Java Code Geeks contributors are their own.

(0 rating, 0 votes)
You need to be a registered member to rate this.
3 Comments Views Tweet it!
Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy

3
Leave a Reply

avatar
2 Comment threads
1 Thread replies
1 Followers
 
Most reacted comment
Hottest comment thread
3 Comment authors
Mihai AndronacheJarrod RobersonKlaus.hauschild.1984 Recent comment authors

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
newest oldest most voted
Notify of
Klaus.hauschild.1984
Member

Great article. I feel sometimes the same.

Jarrod Roberson
Guest
Jarrod Roberson

These things are all things that in my day ( I taught myself to code 6502 ASM in 1983 and got my first programming job a year later at 17 ) were the job of the employee/future employee to research and the do the work to comprehend. I have had a very successful 34 and counting year career of keeping ahead of the curve and that has translated to job security, even through the deepest recessions and bubble bursts. Anyone with a “passion” for software will either already know this stuff or discover it very quickly, anyone else is just… Read more »

Mihai Andronache
Guest

I wouldn’t go that far.I would say that “passion” comes only when you’ve understood all these things and that’s very hard, someone has to explain these things to you, I think.