Which application framework?

Status
Not open for further replies.

Wildbill

Ars Praefectus
3,327
Subscriptor++
I have a LAMP server serving up some trivial web pages - mostly graphs of temperature data, which grew out of a need for my Dad to be able to monitor historical conditions in his greenhouse from his armchair. Basically so that he knows when there's no longer a risk of frost. Yes, I know it's not a particularly optimal or efficient solution, a lot of it was about playing with Arduinos.

The web pages are mostly built with perl cgi, dojo gauges and google charts and work well enough. However, it's time to learn a new technology, so I'm looking for suggestions as to a language and framework to replace them with. Rails & Django are possibilities, although I don't much like Python's insistence on indentation. Others?
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
The gist of the fora last time this came up was that going for "does all the things" frameworks wasn't ideal compared to a broad set of libraries each doing one thing well that could inter operate easily.

This seems sensible to me (since you might find that one part of a monolithic setup isn't quite right and it's good to switch that bit out) but I have no idea what the current stable/new hotness would be.
 

Apteris

Ars Tribunus Angusticlavius
9,589
Subscriptor
The people behind JRebel (a code hot-swapping plugin for the JVM) have a huge comparison of the leading (one could say) web frameworks for the JVM. The results are on page 10. Feel free to have a look. Play has been popular, of late. In general as well as on this forum.

Me, I'm not a fan of abstraction towers. And while I acknowledge that dealing with complexity is what software is all about, I see quotes like:

Grails came out on top for 5 of the 8 categories, doing particularly well around the Rapid application development, documentation and community with top marks. The only area it struggled a bit with was the framework complexity category, mostly because of it’s reliance with Spring, GORM, Groovy and more adding layers and layers of abstraction.
and I think "fuck it". You get static HTML. You don't even get CSS. Black on white for text and blue for hyperlinks. If it's good enough for Oleg Kiselyov, it's good enough for you.

"Struggled a bit", lol.
 

Faramir

Ars Legatus Legionis
36,356
Subscriptor
It reads to me like the point of the exercise is to learn something new, since what you have is working. Given that the answer is going to depend on what you want to learn. I think I'd go with a nodjs backend if I were you. You can't avoid js altogether if you want a web front end (be wary of any technology that claims you can), and learning two languages at the same time is tough. I say this as someone who doesn't particularly care for js.
 

krimhorn

Ars Legatus Legionis
39,865
[url=http:/civis/viewtopic.php?p=28370183#p28370183:3p7d3zts said:
Faramir[/url]":3p7d3zts] I say this as someone who doesn't particularly care for js.
I don't know what your background is but I used to loathe working with js. Then I started doing web dev in earnest and have really come to like it. It's one of those languages that you really have to internalize the concepts (particularly closures) that define the language before it really clicks. It's not a great language by any means and, a more modern front-end language may be preferable*, but I actually like working with it now.

*Actually I need to look into ASM.js and precisely how higher level language code is structured for compilation into js. I'm already fluent in C# (and to a lesser extent C and C++ since it's been a long time since I've worked in them much) so it should be a relatively quick pick up.
 

Faramir

Ars Legatus Legionis
36,356
Subscriptor
I've got more years working with java than anything else, but also some c++ and recently I've been fooling around with c# (which I like quite a bit). Also js by necessity. A few other languages in ancient times.

Which brings me to your second point. The reason I've had to pick up js is because I work for a company that decided to to go whole hog for GWT 4-5 years ago. At the very least the idea that you can compile to js without having to know js (the way you can merrily write c without knowing asm) is simply not true. I learned that the hard way. If you start from js and move to compilation it may be better, hard for me to say, but I'd be very skeptical.

The biggest problem isn't the transpilation of language features, although there is certainly some mismatch there, but the attempt to translate the browser programming environment into the new language. If you were to copy the native API slavishly, and avoid most of the host languages standard library, you'd have a lot less problems, but it would also be kind of pointless. There was a GWT effort in that direction -- Elemental -- but it appears to have been abandoned.

It reminds me a bit of the old days when people tried to target Windows and mac. There were some toolkits that promised to take your windows code and automagically make it work on macs, but it was invariably more trouble than it was worth. If you wanted to make a mac program you had to bite the bullet and make a mac program.
 

Drizzt321

Ars Legatus Legionis
34,922
Subscriptor++
Maybe go for AngularJS or one of those other JS client-side application frameworks, and have some well defined API calls to your server to fetch data. If you want to play around with new server-side stuff, go for Node.JS, or even more crazy, put in MongoDB and have the JS app directly make calls to it. Fun times!

Maybe.

Or if you want to go hardcore, implement everything in Go, including the serving of pages.
 

Paul Hill

Ars Legatus Legionis
19,890
Angular's pretty good but it's a big gulp for a Brownfield site like this one.

Maybe something like moving some server-side rendering to knockoutjs with Typescript viewmodels? I'm currently doing stuff in these and of you've ever used wpf and data-binding it's really close. In terms of 'up and running' you could shove the data into a hidden field to get you started if you don't want to muck about with AJAX right away.
 

Drizzt321

Ars Legatus Legionis
34,922
Subscriptor++
[url=http:/civis/viewtopic.php?p=28384173#p28384173:34u14vmi said:
bral[/url]":34u14vmi]
[url=http:/civis/viewtopic.php?p=28384031#p28384031:34u14vmi said:
hanser[/url]":34u14vmi]There really needs to be a new term for legacy application. Something that's not pejorative.

Seasoned?

Braised, with a side of au jus.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
[url=http:/civis/viewtopic.php?p=28384173#p28384173:3q2d5ihg said:
bral[/url]":3q2d5ihg]
[url=http:/civis/viewtopic.php?p=28384031#p28384031:3q2d5ihg said:
hanser[/url]":3q2d5ihg]There really needs to be a new term for legacy application. Something that's not pejorative.

Seasoned?

Mature?

AILF?
 

Apteris

Ars Tribunus Angusticlavius
9,589
Subscriptor
[url=http:/civis/viewtopic.php?p=28384031#p28384031:k9cjpb5m said:
hanser[/url]":k9cjpb5m]There really needs to be a new term for legacy application. Something that's not pejorative.
"Old", and if warranted also "good". Fuck fancy terms, call it what it is.

I have several old and good apps that make me happy every time I use them. DiskExplorer Professional, for instance, or MP3Tag (which may have been updated recently but looks like it was last built in the mid-2000s. They're good apps. They do their job. What else can one ask for.
 

Paul Hill

Ars Legatus Legionis
19,890
[url=http:/civis/viewtopic.php?p=28384031#p28384031:tf5xo73p said:
hanser[/url]":tf5xo73p]There really needs to be a new term for legacy application. Something that's not pejorative.

Good luck with that - personally the only code I can look at without wincing is code I'm about to write - but Greenfield/Brownfield is a term stolen from construction. I don't think it's pejorative just describing different approaches to maintaining/upgrading code.
 

krimhorn

Ars Legatus Legionis
39,865
[url=http:/civis/viewtopic.php?p=28384031#p28384031:34844zk6 said:
hanser[/url]":34844zk6]There really needs to be a new term for legacy application. Something that's not pejorative.
I don't see legacy as necessarily pejorative. I see it as more of a case that the applications in question were either built with, or running on, platforms that are only continuing to be supported because of those applications. If it weren't for those applications then infrastructure around those applications would no longer be in use.

It tends to be used as a pejorative because of businesses and their continual refusal to replace old systems that "work". In that sense whatever word you'd replace it with would end up being used in a pejorative sense also.
 
Status
Not open for further replies.