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
first of all, sorry for bad english. Please correct me if I write something wrong!
I'm a "noob" in the programing scene, so I need some help. I want to help my mom to automate a process at her bussines. The core thing I need to do are this:
I need to extract info from a webpage (it's an php webpage), and compare the products that arrive with the one's displayed in the webpage. I want to do that scanning the bar codes of the products (I've a database of all the products barcodes). Then I need to save the comparission in a file just to make sure that everything is ok. I want to know wich languague is better for my case. (Then I will try to do it, fail, learn from my mistakes and then have some "stable" program to do this)
TL;DR: I recive products, I check if everything arrived in a website. I want to do that using bar codes and "automate" the process. I want to know wich languague is better for my case.
Thank you!!
As others pointed out in the coments, there is not best language, you need to chose the one that fits you.
But let me give you some recommendations on what might work.
You said that the site is already in PHP, that's the backend language. You should keep using it since a part of the site is already built with it. Other options are JavaScript using NodeJS, Python, Java, Ruby.
You can do almost everything you need in the backend (server side) using PHP, but some things might be better to solve them in the client side (front end) using JavaScript, is the default language that runs on the browsers.
Usually you use the backend language to serve pages, interact with a database, send data to the client. And the front end (JavaScript) to add dynamic functionality to your website.
Web apps used to depend a lot on the backend, reloading the page for every action, sending a lot of information back and forth.
The modern aproach to build web apps (like yours) is a bit more dependant on JavaScript. You load the page once and then just do AJAX (Asynchronous JavaScript and XML) requests to the server asking just for the information you need and showing it dynamicly with out reloading and having to load the HTML/CSS all over again. Many frameworks like Angular, React (with its whole ecosystem), help you a lot with it.
Read more about it here.
EDIT: just to clirify, I answered with some recommendations and opinions because it is what the question asks for.
Related
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
Heyy, I'm wondering what would be ideal for creating a website like : http://either.io, I'm not sure if i should make the website from scratch using html/css/php/js etc or use something like Wordpress. Im competent in html/css/php/js however Im not sure if it'll be a waste of time to do it this way as it seems obsolete. The website will have a database, and i also want users to be able to make accounts and submit content to the website, will Wordpress be able to do these functions and if so, will it be easy to manage the database? Also if there is anything else to use, I would love to hear. So for the general question :/ I really didn't know where else to ask! Thanks in advance.
EDIT:
Also i was look at ruby on rails, would that also be a valid option? Thanks
Definitely you should use any CMS (such as Wordpress) for an simple project because there are quite a lot of solutions, components and community support.
Go to custom php(or any other language) project when CMS can't fully cover your planned functionality
For what you describe the website you need to create is simple enough, so Wordpress should make all the job you need. You don't need to build the wheel again.
I recommend you to start by reading Wordpress.org to check the documentation, what you can do with it and how it flow works.
But basically it provides you user authentication and content management, so you should be all set.
If you are creating a static site not carrying much data, html css is better. But if you need to store lots of user information it is better to go with wordpress. Any kind of powerful website can be created using wordpress provided having knowledge in php.
Notable websites using wordpress:
1.IBM Jobs
2.Newyork times
3.Forbes
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
so i want to develop a mini website builder within my website. Have a control panel where users can edit the text in their websites, i want each of those html pages to have its own css file attached to it. Now, i want it so that the user sees something like a button saying "Edit Background color" they are prompted with a color picker and on hitting save, the css file is updated without them knowing that css even exists.
I would like to know what language i can use to make the previous example happen. And if possible a hint of code.
I appreciate your answers, Braulio :)
I didn't downvote you but just for informational purposes, the reason you were probably downvoted is due to the scope of your question, The language you choose depends on what platform you are running your site on. And it is likely possible to do what you want in tons of different languages assuming your platform supports them. For an easy solution check out .net languages like c# with ajax controls for live updates without refreshes. But then again you could use ruby with rails. Or you could do most of it in the client side with jquery and javascript then send the results to the server which could utilize php. It is just to broad a question to really answer without writing the whole thing for you which nobody is going to do.
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 8 years ago.
Improve this question
I've been playing around in the Web Development field for 2 years now and I am pretty proud when it comes to my progress as a programmer looking back at my humble beggining. This is not very relevant but I've wanted to back up my question with some background story. What it comes to my interest during a conversation with a friend was how to best structure your code when it comes to a website so it wil be very scalable for further modifications using an oop aproach. He suggested at the end of the discusion to use php classes to generate the html content. I personally use it like this only when the php helps me to retrieve something server-side related. I use HTML, CSS and JavaScript (in that order) as much as possible before calling in PHP. That's how it should work, in my opinion, especially when you have to work on a presentation website for example. What's intrigue me thinking about my friend proposal is that I structure my code that way using php clases to echo html content parts like header, menu, forms, slideshows, footer etc. will indeed scale my code way better and help my programming skills progress. I should end up with an index.php that returns objects of the respective classes creating that way the desired html content. This is how I image things working and I am asking you to help me reach a decision. I have some upcoming free time available and I want to invest it in becoming a better web developer.
It is generally a bad idea for all HTML to be generated this way.
In professional web development you often have front-end developers and designers whose only responsibility is the HTML/CSS/assets and/or JavaScript. The backend developers, (the ones writing PHP code), are usually responsible for the business logic of the application.
By having PHP generate HTML you are violating separation of concerns principles. Things will get messy. It's harder to scale up, and you will lose the benefits of being able to use a HTML editor.
Generating HTML serverside dynamically has uses in very specific circumstances. It can be done, but just because you can, doesn't mean you should.
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
Good day all!
This is a novice question and any help I can get will be GREATLY appreciated! I want to make the system as described below, but have NO idea where to start!
At the core of my project I want to design a website that fulfills these criteria:
People navigate to it on their web browsers
They will log in with an account/password
They will enter data into a text field
Their input should be parsed before submission
They hit 'submit' and that data gets pushed into a database of their information
They can download all their information as a text file by clicking 'download archive'
The things that I expect to be an issue of which I haven't a clue how to tackle are:
How to manage an authentication username/password system
Save user information to a database and have that database queued for user data by the webpage
How to submit data from a webpage and have it stored on a remote server
How to set each of these servers up and what platforms (SQL for database, ASP .NET for site, ruby on rails for data processing, etc...) I should use
THANKS! Any constructive input is appreciated
Rails itself will take care of your criteria 1 to 5. However, you need to spend a few more effort to export data from database and save it as a text file. You may also use devise as a better solution for authentication (criteria 2) and Simple Form (just google simple form rails. Sorry I don't have enough reputation to post more than 2 links) to handle forms more easily (criteria 3).
If you are new to rails, I recommend you to read the first few chapters of Agile Web Development with Rails or this online tutorial.
These will also cover your issues 1 to 3. For issue 4 you could use whatever (mysql, postgresql, sqlserver, etc.) you like as the database, you can choose rails build-in web server (webkit) or thin as a server for development; for production app, you may use a combination of apache/nginx and passenger. These are just a few suggestions. Of course there are more options out there. Choose what fits you best :)
Since your question is too broad, I can only post some resources to help you start. Check out the tutorials first until you get the hang of rails. Then check out other gems which could save you tons of time and could also help you build a more robust system.
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
First of all, I'm an experienced js programmer, good also in php (exluding database design) but don't know much about how servers work.
I'm participating to a quite big projects that's about to start and I'm trying to figure out what's the best tecnology to use.
The application will be geolocalized, and will use google maps. It will have a lot of javascript rendering (probably on the front end I'll end up using backbone or ember, but still thinking). hopefully, it will be used by a lot of users. The will continuously receive data while moving around. Specifically, they'll receive data from clubs, pubs and so on.
hopefully, it will coninuously grow over time, with new features, more data, more users.
I was wondering if node.js could be a good choice for developing it of it would be better to stick to more conventional php ways.
what do you think?
Since you are an experienced Js programmer, you shouldn't have a real problem using Node.js. You're already familiar with the language. If your application will send and receive data continuously, I recommend Node.js and socket.io, which enables real-time communication.
Nodejs takes a lot more initial code than php(because there is no middleware server like apache, you have to program the server yourself), but can perform faster and has much better support for templates and websockets than php. If your maps application wants real time updating, then websockets are incredible, but there is no good solution in php at the moment. The only way to handle websockets in php is through external programs, because you can't control the php server.
One thing to consider if you are going to use nodejs is: Do you like callbacks? Unlike php, where everything is performed synchronously, in nodejs, almost everything is written in asynchronous callbacks, to prevent the server from seizing up while handling a big request. Some people like this coding style, others despise it and think it is a messy bunch of functions inside of functions inside of functions. I personally like this style but it is more complicated than php.
A lot of the choice depends on your team's personal preference. Spend a hour or two trying both with your team and seeing which appears to be working best for you.