Experienced Developer with Web Development Questions

elchorizo

Limp Gawd
Joined
Mar 26, 2004
Messages
234
Hey guys,

I have some questions about web development. I am a developer (User Interface) and have worked in Java Swing for most of my career until recently when I started working in Silverlight for a current project.

I want to start a personal project which is to develop a web page using html/css/javascript. I haven't really decided on what kind of page to work on yet as its mostly just for learning. I am currently using Facebook as my template. Meaning if I could build the Facebook basics (wall, images page, blog-like section) then I could probably be able to build most basic web sites.

It seems like whenever I Google, or look at books in the bookstore, everything is about learning HTML etc... I not really concerned about this. My questions are more about the logistics of developing a website (hosting, IDEs, etc...).

1. What kind of hosting do I need? Lets say I'm building something like Facebook or Twitter or a custom blog (not using wordpress in that case). Should I get hosting with MS technogies so I can use Sql Server and ASP.net? Are the Linux based solutions (mysql/postgres/php) just as capable? Is there any reason I would choose one over the other?

2. IDE wise, if I used MS technologies I could use Visual Studio, but what IDE would I use for PHP and stuff? Is that all vi editing in Linux? or could I use something like Eclipse on my windows desktop for development with PHP?

3. How do I actually develop a webpage? I assume I write the HTML/CSS/Javascript on my local computer, and host it on a web server on my local computer for testing. Then, when it looks right I upload it to the real web server (wherever I have that hosted). Is this correct?

4. Assuming I have a database and server side stuff too (PHP or ASP.net) how do I run and test that locally when testing my HTML. Does that mean my local development box not only needs a web server for testing, but also a database? And this database needs to be setup exactly like the real one in my hosted environment? And also a server side environment to run the PHP scripts or whatever?

5. Where do things like ruby, python, and perl come in?

I assume these are pretty dumb questions but I'm having a surprisingly hard time tracking down answers on Google. I think I'm just Googling for the wrong thing. Can you guys point me to some good sites that get into this stuff, instead of the sites I keep finding which just try to teach me to program? Are there any good books that cover this logistical stuff?

Thanks!
Marshall
 
1. Windows hosting is expensive, and overkill for basic web development. Unless you are locked into using ASP.net for some reason, Linux provides more flexibility and a lower cost to entry. You can get a solid Linux VPS to play with for $5-10/month.

2. You can use any IDE you want. There's Eclipse plugins for every major web development language if that's what you are comfortable with. You can even keep using Visual Studio for PHP if that's what's comfortable to you, or just use a basic text editor.

3. Correct. If you want to test dynamic code on your local environment, you can set up a local web server. My recommendation here is to use a Linux install in a VM (so that your local dev environment resembles your production environment as closely as possible), but you can also use something like WAMPServer if you just want to get running ASAP.

4. Yes. Just set up MySQL in your VM or use the one included with WAMP. Your hosting environment will come with this (or you will be able to easily install it). If you outgrow it for some reason, you can always move to PGSQL or MS SQL.

5. Just alternate choices. Use whatever is comfortable, you can accomplish the same things with all of them.
 
1. Hosting prices are cheap for both Windows and Linux. Your current needs do not lean toward just one platform, and choosing and/or changing a hosting provider does not require an act of congress.

2. Visual Studio Express and Eclipse are both good IDEs, and (if you don't already have the tools) both are free.

3. Yes, the testing and deployment order is correct. Generally, you use markup where static content is used, server-side code where dynamic logic is needed. Though I do prefer to develop on the same environment that would be hosting it.

4. You'll need the same tools/packages locally that would be on the hosting server. (See above comment.)

5. They can help with server-side actions and processing. Though without any actual needs of the website, you can just start off with PHP or ASP.Net (whichever you choose). Post questions if you run into problems.


Happy coding!
 
Thanks guys for taking the time to make such thoughful replies. This really helps me get started. I think I'll look into Linux hosting for now. I'll set up a VM on my windows machine which will run Linux and I'll deploy the server code to that. I think it will be a fun project :)

Which flavor of Linux do you guys think I should set up? I'm leaning toward Ubuntu since there are so many resources to help me get started.

I'm also going to look into WAMP. That seems like a cool idea.

Anyway, thanks again!
 
If you need to get apache, php, mysql, etc going on a development machine then xxamp is very good (has a windows installer/ version) and easy to setup.

Also if your not dead set on php, then I recommend going with C# and MVC (with razor), if is really nice with great abstraction yet you are still in control of every bit of html. I think as a UI developer you will like the separation between the Model, View and Controller. Here's some video's.
 
Which flavor of Linux do you guys think I should set up? I'm leaning toward Ubuntu since there are so many resources to help me get started.!
[...]
I'm also going to look into WAMP. That seems like a cool idea.
Ubuntu should be fine. Just be aware that many of the instructions and resources will have you going through the commandline interface. WAMP is a decent OOB package, too.
 
Thanks guys for taking the time to make such thoughful replies. This really helps me get started. I think I'll look into Linux hosting for now. I'll set up a VM on my windows machine which will run Linux and I'll deploy the server code to that. I think it will be a fun project :)

Which flavor of Linux do you guys think I should set up? I'm leaning toward Ubuntu since there are so many resources to help me get started.

I'm also going to look into WAMP. That seems like a cool idea.

Anyway, thanks again!

Ubuntu is easy if you have no experience.
'apt-get apache php mysql' in the console will automatically set up most of what you need.
 
If you get your hosting plan set up and already have you domain linked to it and whatnot, you can edit locally, ftp to your server space, and test there. It would save you from having to do the whole LAMP thing locally, and you would eliminate the possibility of having the two systems configured differently (which could produce some unpredictable results). Of course you wouldn't get the experience of setting up a LAMP environment, but you seemed more interested in the web development side of things as opposed to the nuts and bolts of hosting environments and such. Definitely up to you how broad you want to go with this.

As far as IDEs, the aforementioned ones will work just fine. Others that haven't been brought up yet are the classic Dreamweaver (code view is quite nice as a text editor with autocomplete for tags and stuff and has some nice organizational tools as well), the old standby Notepad++, and the one I have been using lately (and have come to really like) is SublimeText (http://www.sublimetext.com). Dreamweaver will cost you, but the other two are free choices.

I prefer the PHP route as opposed to .net, but that is going to be a personal choice. Either will be able to accomplish just about anything you are going to want to do. HTML is quite easy to get the hang of, and unless you are real concerned about your site displaying in ancient versions of browsers, I would look into HTML5 standards (even though there are no official standards yet). If not, I would suggest XHTML standards. CSS is also quite easy to get the hang of. Again, I would say that you might as well look into CSS3 even though it isn't officially supported yet. The latest browsers render much of what it can do just fine, and it makes many things so much easier. With some JavaScript/jQuery stuff added to the mix, you will have just about everything you need to build any kind of sites you would like.

There are many tutorial sites out there (as you stated) to help on the programming side of things. http://www.w3schools.com is a good site to get you started, and a good site for a quick reference too. Other than that, the only advice that I would give is to develop for FireFox/Chrome, and then hack for IE. IE has gotten better, but MicroSoft seems to have to do some things differently at least some of the time.

Good luck!
 
Back
Top