Fluent in Python, should I learn PHP?

Django is absolutely fucking horrible IMO. Flask is decent but it is so uncommon that it's completely unrealistic to use for complex backends.

My goal is to be able to rapidly develop and deploy websites, and smoothly extend them as they gain traction.

Posted Mar 7, 2019, 10:34 PM UTC

08
Telos13•

Aren’t complex and rapid inverse of each other?

4
jockcelOP•

Not sure what English you speak but the opposite of rapid is slow and the opposite of complex is simple.

-4
Telos13•

Inverse. It’s more math than English, meaning the more of one you have the more of the other you sacrifice.

The solution it seems is to start with something like Django, for simplicity and replace it with Node for scalability and complexity but I don’t think you luxuriously get both.

2
jockcelOP•

nothing like good ol' autistic reddit pedantry

-1
ziptofaf•

PHP won't let you build websites faster than Django, especially not on it's own. When bundled with a framework like Laravel they become comparable.

So here's my question - what do you find horrible about Django and what would you expect from a different solution? The more specific you are the easier it will be to give you some alternatives. As Django might have a certain degree of it flaws (I do find it too configuration heavy, for one) but I have seen it used in fairly complex web applications.

1
jockcelOP•

URL routing, having to watch an hour long video to remember how to start a project and app, the "battery included" features are incomplete and a pain in the ass to replace.

2
ziptofaf•

URL routing

If anything, Django routing isn't bad :(

I mean:

​

    path('articles/<int:year>/', views.year_archive),
    path('articles/<int:year>/<int:month>/', views.month_archive),
    path('articles/<int:year>/<int:month>/<slug:slug>/', views.article_detail),

If you think this is bad, you haven't seen Express routing yet which is:

This route path will match abcd, abbcd, abbbcd, and so on.

app.get('/ab+cd', function (req, res) {
  res.send('ab+cd')
})

Whereas Ruby on Rails routing looks like this:

get '/patients/:id', to: 'patients#show'
get 'profile', action: :show, controller: 'users'
resource :users 

Honestly I am getting a feeling that you simply seem to be inexperienced currently and have spent too little time with the ecosystem. Cuz make no mistake - this shit is hard! And using a different framework will NOT make these problems go away. You might have a different approach to them but it won't make it better or worse, not at your level of experience anyway.

the "battery included" features are incomplete and a pain in the ass to replace

Which ones? Cuz overall I agree that they are a pain in the ass to replace cuz you are NOT supposed to replace them without a damn good reason. Which is why I am asking which one is a problem for you. Could be that you use them wrong, not that it's broken.

1
Tarsonis181•

I would say don't bother PHP is a really ugly language with a lot of weird stuff and a ton of flaws. Learn something else, many other things out there that are far better than Personal Home Page.

1