How to dynamically generate HTML with languages like C, C++, Java? [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to create a website using HTML and the languages that i am most familiar with like C, C++, and Java in order to generate dynamic content. I am aware of the framework Django for Python which lets you do that(i think?) I know of the Common Gateway Interface/and FastCGI for C/C++/Java that lets me do just what i want. I think JavaEE/Servlet also lets me do what i want with Java. My question is are there any other more commonly(keyword: popular) used tools to let me do what i want for C, C++, and Java? I am new to web development so i do not know where to start, i want to become familiar with the technology used to develop C, C++ and/or Java programs for the web.

I can only speak about Java, but I would take a look at Velocity. This open source framework does a good job of allowing you to keep HTML and data generation code separate. Using things like Servlets and JSP are also commonly used for what you are trying to do. Try googling a little more, there are plenty of resources out there to learn web development.

A framework usually creates all the HTML, CSS, and Javascript code (the building blocks of a website) for you (no need to write it, it has been abstracted). Some C++ web frameworks are:
cppCMS
Poco
Tntnet
Wt
Google App Engine has a version in Go language which is a language developed by Google and is statically-typed with syntax loosely derived from that of C. Java has alot more web framework that are more popular and widely used. I personally have been using the Java web framework Vaadin.
Here is a comical article on frameworks: http://discuss.joelonsoftware.com/default.asp?joel.3.219431

Related

Best and current tools and programming languages to use in building a web site that does engineering calculations and graph outputs [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have written a Python application that takes about 4 numbers from the user and does some calculations with it. The final result is displayed on a matplotlib graph. Now, I would like to take this application and put it on a web site. I want to have users sign up for a yearly subscription, do their calculations and print the results to a PDF to be saved on their computer. Because I know Python (but just a beginner at that), I tried to learn Django, but I hit many road blocks with Python version management, getting bunch of error messages that I could not debug. My question to you is what current tools and programming language would you recommend (Java, PHP, HTML, others). I am willing to learn and try anything. I'd rather be able to look at others' code to understand what they did and how they did. Thank you.
Sounds like you are trying to build a large complex application before learning the basics. Python is fine for a server side language but you will need to get a good understanding of HTML, CSS and Javascript to pull pretty much anything of value off when it comes to the web. Take a look at sides like Team Treehouse, Code School or Code Academy. They all have great courses to give you some more knowledge around not only HTML, CSS and JS but how to leverage those technologies into a system like explained above. Good luck!

Programming language that allows for more eye-catching graphic interfaces? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have programmed in Java and although offers many possibilities for the graphic customizable interface, it is always enclosed in 4 lines (which form the rectangle) ... I know (because I've used it) that you can modify the edges of the application, make round or polygonal, but you have to get deep in the code and that can be tedious.
There are some other language (Java or tool) that allows for the really striking graphical interfaces, without suffering much programming?
If you don't bother switching languages, you could try C++ with openframeworks.
That library allows you to use openGL in a simple way.
It may be time to retool. Java is still a great language for enterprise-type development. However, what is hot now, and will be for the next several years is full-stack development with javascript. Node on the backend, Angular or some other declarative framework on the front end (jQuery is popular now, but it is imperative and not really a framework, just a DOM manipulator). Now you can have an integrated environment, one language, and you can concentrate on css, html5, and tons of javascript-based libraries to do practically anything you want to do.
Just my opinion (so of course this will be voted down)

Recommendation for JAVA Script Framework [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
We are at the starting point of a GUI focused webapplication. Business logic will be in the background. The web GUI will have multiple languages and will also contain complex charts. Chart data will be calculated via the webservice in the background, accessed via REST interface. All input fields should get validated on entering new values. The application must also run well on tablets. What is the best Java Scripts Frameworks or any combination of framework recommanded for this approach. Is Dojo the choice or better GWT? What is your experiance, other better recommendations?
Too many possible answers. Personally I like GWT. It's very flexible. But also I'm a Java developer and I don't like Javascript, and GWT saves you (mostly) from the pain and torture of writing Javascript.
Anton,
Really a matter of choice and personal taste, however, if you want to adopt a mvvm approach where your client objects are syncronised automatically, I'd suggest knockoutjs. This framework is eveolving daily and takes a remarkable amount of grunt out of complex work. Take a wander over to it:
http://knockoutjs.com/
Quote from the page:
By encapsulating data and behavior into a view model, you get a clean, extensible foundation on which to build sophisticated UIs without getting lost in a tangle of event handlers and manual DOM updates.

Single page Web App in Java framework or examples? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Has anyone seen an example or done the following in Java:
http://duganchen.ca/single-page-web-app-architecture-done-right/
That is a design a single page web app that will work with Google SEO with out massive violation of DRY using Java technologies?
It doesn't seem terrible hard to do this on my own but I was curious (and lazy) to see if someone had already done it with either Spring or JAX-RS.
I have built quite a large "single-page" javascript website, that generats all HTML on the client. Server provides JSON only responses. I used Google Closure tools for the following reasons:
Google Closure Templates allows designing templates in high level templating language (named soy) which is compiled either to pure javascript functions to run on the client or java code to run on the server site.
Google Closure Compiler, which allows separating javascript code to modules and provides autmatic dependency injection for uncompiled mode. Good program structure and modularisation is necessary for any project exceeding simple html decoration. This is hard to achieve with frameworks like jQuery or dojo. In advanced compiled mode it transforms your javascript to shorter an more efficient equivalent, eliminates dead code and do dramatic reduction in size, which can shrink the original codebase to few % of the original size.
Google Stylesheets is meta css language which works great with closure compiler.
Google Closure Library is huge and well tested javascript library and with closure compiler, you only take what is needed.
To streamline the development, I'm using plovr, written by Michale Bolin, a former googler, one of the members of the original Closure Compiler Team.
I can recommend reading Michale's book: Closure, the Definitive Guide.
I must but warn, the initial leraning curve might be quite steep, but it is well worth the pain. Google used this tools to write almost all their web projects.
Just one more thing
If you feel really adventurous, and want to peep in to the future, I recomend upgrading the former strategy with Clojure/ClojureScript. For the start, watch this very persuasive talk of Rich Hickey and make sure to check Clojurescript one project.
I recommend AribaWEB for its advanced AJAX usage.
http://aribaweb.org/
Take a look to ItsNat, is a Java framework focused on Single Page Interface SEO compatible websites.

Recommendation for lightweight embeddable Java web framework with Comet support? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm working on an open source anonymous decentralized P2P application that will support Twitter-like functionality, you can read more here.
My intention is that the UI will emulate the Twitter UI quite closely, and be accessible through a web-browser communicating with the local app.
I'm therefore looking for a lightweight embeddable web app framework that supports comet (ie. server-initiated modifications to the DOM). It must be lightweight because I need to keep the size of the eventual application as small as possible.
My intention is that most of the UI work will be handled within the web browser, making use of JQuery, and perhaps using Coffeescript instead of Javascript (although I haven't yet made a full decision on this).
Can anyone recommend (GPL compatible) tools/libraries/frameworks for me to look at?
Not sure if you are still working on this since the git activity on the project page is pretty stale. But if you are I would recommend Jetty for your embeddable web app server. It is:
Small
Embeddable
Supports Cometd
Supports Servlets
Throw Vaadin on there for a small, lightweight web development framework and you are g2g.

Categories

Resources