Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I want to develop a website by my own. I want to make different web applications which need to interact with databases. I read about AngularJS, a JavaScript framework. The thing I do not understand is: When to use AngularJS? Do I first build my website in HTML & CSS and then add functionality to it with AngularJS? How do professional developers start with that?
Thanks.
When you want:
A single page app
A RESTFUL app
Flexibility of the front end and Ultimate separation of both front and back end
And you should stay away from it when:
you have low budget as you will need both front and backend engineers. Most times, backend engineers can bring up your site without worrying too much about various stuffs Javascript has to offer.
If mobile users are you main target developing HTML5 Mobile application. I prefer Backbone instead (Yes backbone)because Angular makes my phone extremely hot and drains battery like hell.
Angular js is a javascript frame work which will run at client side.
It will reduce no. of http calls to the server.
Lot of server side executions can be done at the client side itself.
Page loading is faster.
Mainly used for single page applications.
Used to write modular and re-usable code.
If you want to create some kind of social interaction site which have likes, comments, posts etc in that scenario Angular js is best choice.
You can use Angular js along with lot of server side languages like Php, Asp .net etc.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I created a web application with HTML5/CSS/JS and using JavaScript template literals. I am in the process of converting HTML5 pages to use custom web components (rewriting the HTML pages) and make it PWA.
However,
Application is not a single page application
Application uses responsive Material template (css and js that should stay)
I need to convert to Progressive Web App (PWA) using workbox.
I am looking for advise, if Polymer or Lit-Element or HTMLElement would allow maximum code reuse.
Also, any web application (HTML5 with css, js) can be converted to PWA - right?
Having web components will provide better performance, but not a criteria for converting to PWA?
Don't use Polymer; I suggest you look into lit-element for components and lit-html for templates; they work very well together but you can use anything for templates, of course.
As far as I'm aware this is the official recommendation of people who were working on the Polymer project at Google. There is an active community on Slack you can go to for help, too.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Silly newbie question. I see a lot of HTML templates on Themeforest or other sites, and they usually include a blog page. Doesn't a blog require a CMS, such as Wordpress? If I want to create a blog in HTML/CSS for a single author website that does NOT contain comments, what are my best options? Do people commonly do this, or should I really be using a CMS even though it's such a simple thing?
I plan to use Bootstrap to build a website. The website also needs a blog, although it's not it's main focus. I prefer to avoid a CMS if at all possible (and don't want to build my own CMS). Are there any mainstream solutions?
You should always be able use a text editor to modify files, regardless of their type. That being said, if this template is built for a specific CMS (take Wordpress, for instance) you will need to have some sort of web server and database to develop against.
If this template is simply a bunch of HTML template/boilerplate files, you can develop all the pages you need by hand. Just make copies and rename them according to your IA.
A blog typically implies you have some sort of database and CMS, but not always. You could create static, hard-coded pages and call them your blog.
If you buy a plain html template you can edit it by using various html/css/js editors such as brackets, atom, visual studio code or any other. On one hand, you can write your own CMS in e.g. php, ror, node. Or if you only want to have a blog site, you can buy a wordpress or joomla template and just install it into your CMS.
In static pages , you can only update your blog page by your server's cpanel editor not by dynamically, so if you need this as dynamic then you have make a back end dashboard in any scripting language such as php, jsp, asp or any framework or cms. So, your template only can hold blogs statically, by writing before uploading the page on server, or edit the page from cpannel. Thanx.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
We have some .NET back-end developers and some front-end (HTML & CSS) developers who have the minimum knowledge about ASP.NET MVC and Razor. This makes it hard to let both back-end and front-end developers work on the views directly. Therefore, normally back-end developers create a complex html page (using some frameworks) which then needed to be transferred into razor views. We normally end up doing this by copy and pasting the markup which makes the whole process so slow.
Often after our back-end developers add code to the pages (e.g. foreach loops), front-end developers have to make some changes to fix bugs or change the UI (for some reasons) and then they find it impossible to work on a page which carries .NET code too.
My question is that what is the best way of isolating these two concerns, which are building the html code and adding the razor/c# code.
I was thinking of having a pure HTML view and build the Razor view around it but I am not sure how this can be implemented technically.
You need to separate your concerns further. Seems like your razor view do too much, if there is C# code embedded. All the logic must be done inside of controllers of classes that provide data to controllers. No further processing should happen in views. Ever
The most complex construct in views should be #foreach or #for loops to create tables/lists. Also create url via #Url and ActionLink because that's where these belongs. Anything more complex than this must not be allowed.
And this will make your front-end guys life easier, along with advise to read-up about razor syntax.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
This is the issue. I am making social networking website and I want to display online/offline user status without refreshing page. I have everything done in Mysql, online status is displayed on page, but without refreshing page changes in online status are not registered. So basically I supose that it could be solved with AJAX request. I want to get changes in mysql query and to display it directly on page without page refreshing.
A couple of different options, but two that I will highlight:
1) jQuery. Straightforward JavaScript library way to asynchronously access the user data as you specify. AJAX calls are built in by design. See http://api.jquery.com/jquery.ajax/. This is pretty much out of the box functionality, and easier to implement if you're crunched for time.
2) If you're totally new to getting back end data into the front end, and refreshing on the fly, I might suggest you choose a more recently designed JavaScript framework, such as AngularJS. This would give structure to the front end of your application. The only real drawbacks for this are learning curve (higher than jQuery) and SEO, as it is a fully JavaScript-driven output. For SEO, there is a well-known workaround: http://www.yearofmoo.com/2012/11/angularjs-and-seo.html.
Hope this high level overview helps put you on the right track...
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How can I make a web app in Go?
Is there a way I can interchangeably use Go code and HTML like with PHP and HTML?
More specifically, what I want to know is how to get my PrintLn output to show in a web browser and how to accept input from HTML form fields?
You can't embed Go & HTML (for many, many reasons) but you can use Go's html/template package (http://golang.org/pkg/html/template/) to generate a HTML page from your HTTP handlers.
I'd suggest reading http://golang.org/doc/articles/wiki/ and using http://www.gorillatoolkit.org/ (routes, cookies, etc) for the web server side
You need to setup a web server in go and process http request/response as input/output. There is already an answer about go web frameworks which would be helpful. link
If you don't want your ui to show in a browser window, you will have to bind your own html engine. For that purpose you can look at ui frameworks like walk which has ie based webview builtin or engine bindings like go-webkit which builds a custom webview.