Omnimaga

General Discussion => Technology and Development => Web Programming and Design => Topic started by: Ikkerens on February 02, 2011, 09:22:10 am

Title: This... is... bad...
Post by: Ikkerens on February 02, 2011, 09:22:10 am
Well, today I found out how my ICT school teacher teaches how to make a website.
I requested a friend of mine her code to inspect it for any minor improvements...
But this actually made me cry :(

Code: (html) [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><De vijf beste pretparken in de wereld!</title>
</head>
<body bgcolor="#CCCCFF" text="#006666" link="#666633" vlink="#009933" alink="#666699">


<H1>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;     <FONT COLOR="black"> De vijf beste pretparken in de wereld! <FONT> </H1><BR>
<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="disneyland parijs.JPG" width="289" height="379" border="0">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="disneyland tokyo.JPG" width="282" height="375" border="0">
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT SIZE=5>Disneyland Parijs<FONT>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT SIZE=5>Disneyland Tokyo<FONT>
<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="everland.JPG" width="546" height="306" border="0">
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT SIZE=5>Everland<FONT>
<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="magic kindom park.JPG" width="438" height="294" border="0">
&nbsp;&nbsp;&nbsp;&nbsp;<img src="tivoli gardens.JPG" width="438" height="294" border="0">
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT SIZE=5>Magic Kingdom Park<FONT>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT SIZE=5>Tivoli Gardens<FONT>

</body>
</html>

So I asked my teacher about this, and I quote:
"As far as I know, there is no other way of doing this."
Title: Re: This... is... bad...
Post by: JosJuice on February 02, 2011, 09:36:04 am
My brain just died a bit. ;_;
Title: Re: This... is... bad...
Post by: Happybobjr on February 02, 2011, 09:37:43 am
I am confused???

Are you pointing at 666 or 69?
Edit: something screws up on my pc and i see a ton of &nbsp  's
Title: Re: This... is... bad...
Post by: JosJuice on February 02, 2011, 09:41:03 am
Edit: something screws up on my pc and i see a ton of &nbsp  's
Your PC isn't screwing up. There are actually a lot of &nbsps.
Title: Re: This... is... bad...
Post by: Happybobjr on February 02, 2011, 09:42:41 am
ok?....  Why???

I am so confused
Title: Re: This... is... bad...
Post by: souvik1997 on February 02, 2011, 09:43:40 am
That's retarded... Why does she even teach website making?
Title: Re: This... is... bad...
Post by: Happybobjr on February 02, 2011, 09:47:49 am
Why doesn't she just use cells :P
Title: Re: This... is... bad...
Post by: Binder News on February 02, 2011, 10:07:55 am
/me almost cries at how easy this would be to do WITHOUT all the spaces.
Title: Re: This... is... bad...
Post by: AngelFish on February 02, 2011, 10:08:51 am
CSS!!!
Title: Re: This... is... bad...
Post by: Deep Toaster on February 02, 2011, 10:29:25 am
:banghead:

Why does she teach web dev?
Title: Re: This... is... bad...
Post by: Ikkerens on February 02, 2011, 11:10:08 am
The teacher is male lol.
The one who made this script and is in his class is female :)

And yes, he said that &nbsp; is the best way to position things...
Wanna bet he doesn't even know what CSS is?
Seriously, our school needs some proper teachers...
Title: Re: This... is... bad...
Post by: Xanwell on February 02, 2011, 11:48:11 am
I feel sorry for web design students at your school.
Title: Re: This... is... bad...
Post by: Ranman on February 02, 2011, 02:49:36 pm
Please say it isn't so. :D
Title: Re: This... is... bad...
Post by: kalan_vod on February 02, 2011, 03:00:56 pm
My first web design didn't even look that bad lol
Title: Re: This... is... bad...
Post by: JosJuice on February 02, 2011, 03:02:20 pm
Hmm... I just noticed that there's an extra < in the title.
Title: Re: This... is... bad...
Post by: Madskillz on February 02, 2011, 03:02:38 pm
wow...that is bad. I can't believe they let a person, with obviously little skill, teach and teach badly at that.
Title: Re: This... is... bad...
Post by: qazz42 on February 02, 2011, 03:10:07 pm
she forgot the &nbsp....
Title: Re: This... is... bad...
Post by: Deep Toaster on February 02, 2011, 03:47:04 pm
The teacher is male lol.
The one who made this script and is in his class is female :)

And yes, he said that &nbsp; is the best way to position things...
Wanna bet he doesn't even know what CSS is?
Seriously, our school needs some proper teachers...

:banghead:

You don't even need to know CSS to know there are better ways to position things.
Title: Re: This... is... bad...
Post by: Michael_Lee on February 02, 2011, 03:47:54 pm
...
A 5th grader who spend 10 minutes googling and skimming a few tutorials would know better then that.

Ugh.
Title: Re: This... is... bad...
Post by: jnesselr on February 02, 2011, 04:15:48 pm
What on earth is wrong with this?</sarcasn> It's a perfectly good way of doing things.  If you want to fail, that is.  But the worst part is that he doesn't know of any alternatives.  He should not be teaching that class.
Title: Re: This... is... bad...
Post by: yunhua98 on February 02, 2011, 05:13:33 pm
..................................................................................................

:'( :'( :'(

spaces, seriously?  how would she even approximate that?  Years of experience, I guess lol.  :P
Title: Re: This... is... bad...
Post by: Munchor on February 02, 2011, 07:00:10 pm
Woah, that code really looks weird, it's so hard to edit, CSS Layout all the way.
Title: Re: This... is... bad...
Post by: DJ Omnimaga on February 03, 2011, 12:43:12 am
O.O

...

I myself suck at HTML, the reason why I started using a pre-made CMS in 2005 for Omni despite not needing a forum yet, yet even my old site code looks great compared to this. X.x

I would understand if one of you never coded a site before then showed me this, but an HTML/web design teacher? O.O
Title: Re: This... is... bad...
Post by: Deep Toaster on February 03, 2011, 09:16:13 am
Huh, something weird but related: http://www.trygve.com/doomsday.html (http://www.trygve.com/doomsday.html)
Title: Re: This... is... bad...
Post by: DJ Omnimaga on February 03, 2011, 09:34:39 am
O.o weird, although this page seems old, assuming the copyright is for the page itself.
Title: Re: This... is... bad...
Post by: JustCause on February 03, 2011, 10:05:33 am
/me cries
Title: Re: This... is... bad...
Post by: holmes221b on February 03, 2011, 01:08:00 pm
I think 'bad' is an understatement....
Title: Re: This... is... bad...
Post by: qazz42 on February 03, 2011, 03:06:29 pm
Better than this one teacher I heard of who kicked a kid out of a class when he corrected and optimized the (teachers) code `-`
Title: Re: This... is... bad...
Post by: Deep Toaster on February 03, 2011, 03:28:41 pm
Better than this one teacher I heard of who kicked a kid out of a class when he corrected and optimized the (teachers) code `-`

Probably worse. As Michael_Lee said, a ten-year old with a page of tutorials could optimize this.

And 'optimize' is an understatement.
Title: Re: This... is... bad...
Post by: Snake X on February 03, 2011, 03:59:00 pm
I just say to this stuff usually 'anything else would be too good for the system'
That's what I pretty much think and move on.

Also, im not even sure what &npsnap; even is and I took web development O.o and im planning to take it again for internet graphics and publishing (paired with web design)
Title: Re: This... is... bad...
Post by: Deep Toaster on February 03, 2011, 04:00:32 pm
&nbsp; is a non-breaking space. Basically, his teacher is recommending using spaces to move things where they belong x.x
Title: Re: This... is... bad...
Post by: Eeems on February 03, 2011, 04:00:46 pm
A part of me just died a little :'(
Title: Re: This... is... bad...
Post by: DJ Omnimaga on February 04, 2011, 12:22:23 am
Better than this one teacher I heard of who kicked a kid out of a class when he corrected and optimized the (teachers) code `-`
I think that was Nemo, right? I think he lost points for optimizing his code instead of using a command the teacher wanted him to use. X.x

Title: Re: This... is... bad...
Post by: z80man on February 04, 2011, 12:28:20 am
Better than this one teacher I heard of who kicked a kid out of a class when he corrected and optimized the (teachers) code `-`
I think that was Nemo, right? I think he lost points for optimizing his code instead of using a command the teacher wanted him to use. X.x


That's gonna be me next year when I take AP comp science and I get to relearn basic java programming. When my teacher asks for a simple "hello world" program, I will give him a fully fledged 3d game called "hello world". The he will get mad and say I need to focus more on the system.out.println and literal string commands.
Title: Re: This... is... bad...
Post by: DJ Omnimaga on February 04, 2011, 12:33:27 am
XD

Yeah seriously I really despise this in school sometimes: Some teachers won't even give us the freedom to do what we want, even if it's better. Of course we have to know how each command work, but when we work on a project there shouldn't be stupid requirements such as using <td><tr> in a webpage at least 10 times when we can do the same thing in another way...

Other things are nonsensical too: Example, Check that Reign of Legends PC game in the staff downloads on Omni. (Assuming you can run it. I think it won't under 7 or 64 bit OSes) We had to do an adventure-RPG type game where we found items to open doors and stuff, yet he wanted us to put in a highscore system. I never really figured out how to fit one so it won't look weird, so I just didn't. The worst part is that it counted for 20% of the total project score, although I didn't care since I was already accepted to College.
Title: Re: This... is... bad...
Post by: AngelFish on February 04, 2011, 12:36:56 am
/me is glad he's never had to take a programming class.

There are definitely some benefits to having a completely different major.
Title: Re: This... is... bad...
Post by: z80man on February 04, 2011, 12:39:52 am
Even though I learned the entire curriculum for AP comp science in pratically 1 day. Taking the course will convince colleges to put me in the advanced programming class later on. They won't really take my word on already knowing how to program.  :P
Title: Re: This... is... bad...
Post by: AngelFish on February 04, 2011, 12:42:25 am
It really sucks to know the material ahead of time. I've been working in various labs since HS and I was still forced to take basic Chemistry freshman year...
Title: Re: This... is... bad...
Post by: z80man on February 04, 2011, 12:51:36 am
Yes, but it means more time I can spend calc/comp programming instead of trying to figure out what a for loop is. And if my teacher asks what I'm doing and I say "programming", I won't get a puzzled look from everyone. And get this, in the intro to programming class at my school (which I'm so glad I got to skip) they spend all year java programming and never get far enough into the language to work with basic gui's and oop.  :banghead: Also even though AP comp science will be easy, I will get the gpa boost in my report card which is one of the reasons I'm taking the course.
Title: Re: This... is... bad...
Post by: AngelFish on February 04, 2011, 12:54:35 am
How do you not get to OOP in Java?
Title: Re: This... is... bad...
Post by: z80man on February 04, 2011, 12:58:08 am
Other than the class that holds the main method, that is as far as they get. The rest of the year is control loops, variables, and methods.
Title: Re: This... is... bad...
Post by: AngelFish on February 04, 2011, 01:00:33 am
So it's like elaborated TI-BASIC?
Title: Re: This... is... bad...
Post by: DJ Omnimaga on February 04, 2011, 01:03:10 am
One thing that sucks is when you take a programming class but have no computer at home (or don't have access to the softwares needed to code). In hi school we couldn't afford a computer at all due to being poor so I only had 1 hour a week to work on projects I would have liked to spend more time on. Trust me, even though it was just VB and a small game, I loved to work on that ROL project back then. After graduating from hi school in June 2003 I took multimedia classes in college, but had no computer until April 2004. When I got one I had no money to afford all the softwares they used and back then I did not know about torrents, an USB jumpdrive costed $300, the computers had no CD/DVD-ROM burners, so the only way to transfer files to my computer at home was Zip disks (or floppy disks, but those had low capacity). However I couldn't find a zip drive anywhere for my computer. I also didn't have internet until 2005 because my mom didn't trust Internet...

That said this was not the reason why I dropped out, though. I just didn't like the whole work/debug under deadlines/pressure thing and I realized advanced web/computer programming was just not for me.
Title: Re: This... is... bad...
Post by: Juju on February 04, 2011, 01:18:47 am
One thing that sucks is when you take a programming class but have no computer at home (or don't have access to the softwares needed to code). In hi school we couldn't afford a computer at all due to being poor so I only had 1 hour a week to work on projects I would have liked to spend more time on. Trust me, even though it was just VB and a small game, I loved to work on that ROL project back then. After graduating from hi school in June 2003 I took multimedia classes in college, but had no computer until April 2004. When I got one I had no money to afford all the softwares they used and back then I did not know about torrents, an USB jumpdrive costed $300, the computers had no CD/DVD-ROM burners, so the only way to transfer files to my computer at home was Zip disks (or floppy disks, but those had low capacity). However I couldn't find a zip drive anywhere for my computer. I also didn't have internet until 2005 because my mom didn't trust Internet...

That said this was not the reason why I dropped out, though. I just didn't like the whole work/debug under deadlines/pressure thing and I realized advanced web/computer programming was just not for me.
It's amazing how it evolued since that time. Today, everyone have at least one computer, most of them have Internet, USB jumpdrives are a billion times more cheap, plus, my college have an agreement with Microsoft so we get all their software for free. They put ISO images of Windows on the hard drive of a computer with a DVD burner then we bring our own DVDs and we burn them.
Title: Re: This... is... bad...
Post by: DJ Omnimaga on February 04, 2011, 03:11:54 am
Yeah the year afterward an USB jumpdrive costed like 8x less. Some people still got no computer, though, because they just can't afford one, but sometimes they'll still get one anyway. And nice Juju. I wish my school did that. My hi school did with VB but I had no computer so...
Title: Re: This... is... bad...
Post by: Binder News on February 04, 2011, 06:57:30 am
Dang Juju. You are lucky. I wish I had that. But, I still like Linux. It's a better OS. Oh CRAP, school time.
Title: Re: This... is... bad...
Post by: Deep Toaster on February 04, 2011, 09:13:11 am
Wow, I'm lucky O.O My tech teacher doesn't care at all. He knows I know things and he lets me do whatever I want with it.