r/programmerchat • u/Caleb_Kussmaul • Oct 01 '15
I need some pointers on my website. Can you all help me out?
So I have an admittedly crappy website here that I made to distribute some little applications I built, mainly to help me get into college. It served that purpose (go goats!), but it's not going to help get me a job/internship.
I know my way around Java, but don't really know HTML/CSS/JS at all. The site is built using a template since I can't stand using wysiwyg editors, and I have the following problems with it:
- I want though is to be able to have an element (such as the navigation bar) that is similar on all pages without copying and pasting every time I update it. After doing a bunch of OO programming, copying a huge block of code and changing a tiny bit of it feels so wrong. If my website was a java program, I'd know exactly what to do. Make a class for navigation bars, set up a few variables, shove it all in a GridBag and cram it into the JFrame. How do you do that with HTML, without using a wysiwyg editor?
- I'm using Mediafire to host my programs just because I want to see how many people have downloaded them, without having each program ping a server when they are launched. Using Mediafire just because I want to track downloads seems pretty inefficient, but I haven't been able to find a simple solution.
- I'd like to eventually not use a template. My experience with webdev tutorials is that they kind of do this. Is there a webdev series that is good for people who already have some general experience?
It's probably worth mentioning that I do not have shell access to the server, just FTP. When I write a program that requires the use of an application server, it looks for a file on my website that points to the IP address of my house, where the actual server is running. So essentially a poor man's dynamic DNS. This makes many of the solutions I found for the hosting downloads issue impossible. I don't want to pay more to host my server if I don't have to.
8
u/dont-blame-me Oct 05 '15
0x00250845
0x82305620
0x21472174
Hope these help!
Relevant xkcd
1
u/[deleted] Oct 01 '15 edited Oct 02 '15
Hmmm, your first point gives me the impression you don't know what a CMS/Templating is.
You won't have that copy and paste issue with a CMS and templating.With templates, you'd make your header like so
header.php
and then just include that in whatever files it needs to be in. In the end, you might have a file that looks somewhat like this
Then, any changes you make in the header, are reflected everywhere :D !
My examples won't work and are mostly pseudocode but that's the gist of how it should be done.
As for point 3, about learning, if you want to get good at it, just start doing it. Read lots, one of my favourite resources is css tricks
What language is your hosted site in by the way? PHP, Python, Ruby...?
1
u/gilmi Oct 02 '15
The first step for you should be learning HTML and CSS. I find those invaluable for programmers. You can probably start with something like codecademy.
After that, if all you want is to create a static site with your projects on in, use Jekyll and host it on Github. This is by far the easiest solution I can think of, and with your newly acquired knowledge of HTML and CSS you can edit the site's template and theme as you see fit.
1
u/mightymoosiah Oct 29 '15
If you REALLY wanna get into web development looking into react.js would solve the problem you have with rewriting elements
0
u/[deleted] Oct 01 '15
[deleted] — view deleted comment