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 9 years ago.
Improve this question
I've been coding with django for a few months now, and I have made good progress. But, I feel like I don't understand what's happening under the hood well enough to make the leap from beginner to advanced. For example, it's easy to manipulate the database via ORM in Django without having any knowledge of SQL. As another example, user authentication in Django almost only requires me to import a module and writing a couple of lines of code. I don't have to have any knowledge on sessions, database queries etc.
As I have done no prior web programming except Django, I was wondering if it would make sense to move to PHP (without a framework) and when I've learned the fundamental concepts of web development (cookies, sessions, SQL etc) return to Django development?
No, that wouldn't make any sense at all.
PHP is just one language for writing websites. It works in a certain way, but many of the things that you often see in PHP are not generally considered best practice. It's very unlikely to help you write a decent Python web app.
If you really want to learn how everything works, you could just as easily write a Python app using raw WSGI, or a micro-framework like Flask.
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 4 years ago.
Improve this question
I am a front-end developer and I have a project where I need to build 3-5 pages website. The main work is in javascript communicating with REST API but I do want to have partials, routing if possible and templating.
Right now, I am literally frustrated with amount of available frameworks but I really would prefer not to setup PHP backend as it is not required (Wordpress either).
I feel very comfortable with the following technologies and frameworks being able to build entire front-end:
Gulp
Bootstrap
JavaScript
HTML/CSS/SASS
So I started to look into Angular but it feels like an overkill and with possible SEO issues even if it is 3 pages website for now.
Then, I started to look into static generators such as Jekyll but I would never develop in Ruby or Go.
Then I started to look into JavaScript templating + Gulp such as Mustache or Nunjucks and that sounds interesting although no routing would be possible.
Now I started to think if I shell create a simple PHP routing + template class in the website folder without MVC and the rest just do through Gulp as I am used to.
From what I've seen, people recommend going with PHP framework such as Symfony or Slim but I am not a back-end developer and afraid this can take much time from developing front part.
I would appreciate any opinion about this and I apologise if for someone that does not make sense but I do feel frustrated and decided to ask the community and experts that being in similar situations.
Thank you!
This is not really a Stack Overflow question, as you ask for an opinion, but I am willing to answer you anyway.
Setting up a Jekyll website does not require you to write any Ruby. Jekyll is simple, but does have partials, templating and routing. Therefore it seems like a good choice. I would use vanilla JavaScript or jQuery for the API interaction.
I use Jekyll for all websites that are smaller than 100 pages.
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 5 years ago.
Improve this question
I'm wondering if it is possible to create a web application where a user can sign up,login, and make payments without using a framework like Rails or Node.js, but rather html,css,php,mysql etc.
Is this even possible?
Yes, it is entirely possible to write any web application without framework. Keep in mind that frameworks are also written in their respective programming languages - therefore, you can achieve same results without one, but it will be more time-consuming and will need more work to "reinvent the wheel". A framework usually delivers many useful functionalities that are ready to use, but in the exchange you must comply to its standards, semantics and rules.
Many programmers of high-end applications choose to develop without a framework, because they don't want to be bound by those boundaries. Also, there are performance reasons - if you can fine tailor your application to your business requirements, it will probably run faster.
Also, please keep in mind that Node.js isn't a framework - it is a toolset that allows running JavaScript applications in OS enviroment instead of the browser.
It will take a lot of time but it sure is possible. These 'frameworks' are here to speed things up for you. I recommend you to take a look at a couple of MVC frameworks. For example: Laravel, Codeigniter and Symfony. These frameworks will do a lot for you(Think about security and routing) but you still have to write the biggest part of the logic yourself.
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
I made a NGO website that has customer service in it, means that clients are able to chat directly to the admin. I've built 30% of it with PHP. But, I thought it's difficult to make a chat application with PHP. I've been told that Node.js is the best web development to make chat application. Can I mix PHP with Node.js ?
Generally, people name files depending on what language the code inside is written in. For example, the .php extension is run by a PHP interpreter. Certain files can have other languages mixed in. For example, a .html file can contain CSS and Javascript. Another example is the .html.erb extension in a Rails app, which can contains both Ruby and HTML/CSS/JS code. This is accomplished by something known as a preprocessor.
You could use a preprocessor to mix mostly any language together, but I'm not sure that will make your life any easier making an app. It's probably a better idea to separate your app into microcomponents, which can all be written in different languages.
For example, a chat server could be written in Node and a REST API written in Rails. They might be hosted on separate servers and communicate with each other by sending HTTP requests.
As far as Node being "the best" for making a chat server, that's a totally subjective point and StackOverflow discourages opinion-based conjectures.
It's also worth considering whether an open-source chat project could be integrated with your existing code. I.e. something already made.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm studying php programming and I'm pretty convinced I know base rules that permit me to move on pretty building good web application.It could be weird but from the beginning I started to build web application using frameworks.I know how php works (session,cookies,ecc...) but if you say me to create a web application without a framework I could have some problems because I don't have a mind schema to follow instead with framework I'm fell more comfortable because I follow simple pattern like MVC and I have everything clear in my mind. what I'm asking now is this situation is really convenient for a web programmer? I web programmer especially in the last times, have to be independent or dependent from frameworks?
It is perfectly possible to build a PHP application without any framework, but it is more time consuming.
If you want perfect control over every part of your code, don't use a framework. This option also lets you optimize your code fully.
However, using an existing framework may well be easier and less time consuming, in some cases at the expense of performance. I would say that the performance loss is negligible in most cases, but it really depends on the application.
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 7 years ago.
Improve this question
I dont have experience in web programming. I so far I coded in c++ only. If I wanted to build a site similar in functionality to cafepress.com which route would be most suitable for me?
asp.net mvc or php mvc or just php?
Granted I am new at this, still the amount of options is overwhelming to a newbie. And there is no decent guideline as to pick which is more suitable for what kind of projects?
Since I am new at this, I have to learn one of these things. But I don't want to waste my time only to see these things go out of fashion. So, I am looking for these qualities :
must not go out of fashion in a few years. By this I mean, something that is hyped just because its new and has not found a universal acceptance yet
simple, easy to learn and don't over complicate
do not abstract how web works (asp.net webforms....ahem)
can be done by a small group 2-3 guys
I would suggest you to go for Cakephp or codeigniter which are damn good for making large and maintainable sites. PHP is open-source, cross-platform, has good community support to php and above mentioned frameworks, something not there in asp.net. Also in asp.net security holes are found regularly.
I like ASP.Net MVC so i would recommend that because C# is awesome and Visual Studio is the best IDE. But you should look at the languages and tools and figure out what suites you.