I’ve completed various FCC projects, and I’m starting to wonder how the development process works in real life.
So let’s assume we’re working independently (not as part of a team or company). We’re building a website for our own personal business, or an app that other people can download and use in real-life.
First of all, would we continue to use codepen or glitch etc to write and test our code in real-time? Do we use our own text-editor and run the script locally on our own machine, using Git for version control, before deploying to the real world? What is the best way to write our code and test it out along the way?
For a website
How to pick a server to host the website? If you need a database, can the server that serves the website also permanently store data?
The following questions may fall outside the purview of web-dev
For a phone app
If you’re publishing an app that runs on HTML/CSS/Javascript that doesn’t require a connection to a server (e.g. our javascript calculator), how would that work? Would I be able to simply upload my code for my javascript calculator to some app-store? Then people could ‘download’ the app into their phone and start using it? How would the phone know that it’s javascript? Would it automatically run the code with a web-browser? How would it know to do that? Does every app download need to include the software that translates the programming language?
If there are dependencies, like Babel, D3 or React, wouldn’t the phone need access to the internet to run the javascript calculator? What happens if the phone loses access to the internet? Would the code simply not work? Or maybe during the ‘download’, all the dependencies are downloaded with the app? How do we account for dependencies in our code for apps that are not meant to require internet connection?
Accessing phone memory and functions
Finally, let’s say my phone-app needs to access the phone’s camera to take pictures and store them in memory. Is this something that can be done with javascript? How does this even work?
I have a suspicion these questions are leading to the conclusion that some other programming language is needed for such apps
I’ll try to give my opinions on some.