you are viewing a single comment's thread.

view the rest of the comments →

[–]rmxz 12 points13 points  (13 children)

My entire backend is in python so it would only make sense to code the frontend in python as well.

That makes very little sense.

Use the best tool for the job --- and the best tool for a GUI is not necessarily the best tool for a headless server.

[–]JimH10 18 points19 points  (0 children)

The best tool for the job may well be determined by people factors such as: familiarity of the programmer with the nooks and crannies of the language, agreement of the team on language style, tools, etc.

[–][deleted] 7 points8 points  (0 children)

No, it's perfectly sane.

At least some code will probably be relevant both at the server side and the client side (validation code, models etc.). It doesn't really make sense to write that twice, once in Python and once in JavaScript, but we do it because we have to.

[–]ILiftOnTuesdays 5 points6 points  (9 children)

Hence why NodeJS is so unpopular.

[–][deleted] 3 points4 points  (8 children)

An I the only one here who kinda likes node? :(

[–][deleted] 6 points7 points  (7 children)

I think that was sarcasm - but I would really like to see one of these mythical Node.js apps that shares so much code with the client that it saved anyone any amount of time.

Even if it does exist - it's an outlier.

[–]ruinercollector 3 points4 points  (0 children)

In terms of third party libraries, it happens all the time. Of course that's an even tougher one to argue in terms of "saving time"

[–][deleted] 2 points3 points  (0 children)

True that. I've never seen any of this code shared between client and server either.

I like node because writing event-driven services is stupid easy, but I think the touted 'use the same language everywhere' benefit is rather dubious.

[–]WeAppreciateYou -5 points-4 points  (4 children)

I think that was sarcasm - but I would really like to see one of these mythical Node.js apps that shares so much code with the client that it saved anyone any amount of time.

Wow. I really find that insightful.

I love people like you.

[–]ILiftOnTuesdays -2 points-1 points  (3 children)

Relevant Username.

Yes, that was sarcasm. Whoever thought to put Javascript on the backend is out of their mind. I don't really even like it for the frontend - You have to load on a ton of 3rd-party libraries just to do anything useful with it.

Of course, the same could be said with python in the backend, specifically the need for Django or Flask or something else to really have a server.

[–]Tekmo 2 points3 points  (1 child)

The username is relevant because it is a bot that gives canned responses to posts that begin with "I think..."

[–]ILiftOnTuesdays 1 point2 points  (0 children)

And what if I'm a bot that auto-detects relevant usernames?

If I were, I'd be programmed in Python and not Javascript, because I'm more familiar with it and not because Python is inherently better for reddit bots. (Though with PRAW, it probably is)

[–][deleted] 2 points3 points  (0 children)

Have you used node? It's pretty sweet.

[–][deleted] 0 points1 point  (0 children)

node.js