Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django from Java developer perspective [closed]

I'm a long time Java programmer and I'm digging into Django recently to see what it offers.

It looks to me that Django doesn't fit Java web developers taste.

I mean in MVC Java web frameworks we have usually a controller class that receives the request, do the logic and then forwards the request to another destination.

Rails also follows this paradigm.

Django on the other hand looks a little bit procedural, you map requests in a file, write your handlers in another, write your domain classes in another ...

So, I think Rails suits Java web developers taste and Django suits PHP folks.

If you are a Java web developer, how do you see Django?

Are you a Java programmer that is happy using Django?

(I'm not underestimating Django, Django framework is unquestionable).

like image 299
Chiron Avatar asked May 30 '26 13:05

Chiron


1 Answers

Django on the other hand looks a little bit procedural, you map requests in a file, write your handlers in another, write your domain classes in another ...

As a Java developer, how is this any different than a traditional Java MVC pattern? It's just different names: Django uses "view" for what is traditionally (in Java-land) called a Controller, "template" for View, etc.

Don't you have domain classes in your Java application as well?

In Java-land, when you have an MVC webapp, you have the same sort of splitting of logic:

  • You write the request-handling logic in your Controller
  • You represent the "domain" in your Model/domain classes
  • You write the display logic in your view templates/classes

I'm having a hard time understanding what you think is different about Django beyond the names.

like image 198
matt b Avatar answered Jun 02 '26 02:06

matt b



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!