Teen Programmers Unite  
 

 

Return to forum top

My C++ Tutorial

Posted by CHollman82 [send private reply] at June 11, 2001, 10:20:36 AM

Got a new website for my tutorial Im writing, it's crap now, give me a week.
cpptutor.freeservers.com

Posted by Linux_Penguin [send private reply] at June 11, 2001, 06:43:39 PM

It looks fairly decent for a startup. Just pull the view down for the people who don't feel like messing with it. It takes a while to load too (Im running slow though.)

Posted by sphinX [send private reply] at June 12, 2001, 01:02:08 AM

Just a couple of (hopefully) helpful comments:
1. I run in 1024x768, and your title graphics go well of screen -- you may want to consider those running in lower resolutions than you.
2. Please don't make all your text one big graphic, it's not nice to modem users. What's wrong with good old text?

Posted by AngelOD [send private reply] at June 12, 2001, 04:40:39 AM

I agree with sphinX on that one.. I use cable myself, so I usually won't notice the difference between text and picture, but sometimes, even cable is slow, and I can only imagine how it must be for those using modems..

And ofcourse, there's the resolution (likewise mentioned by sphinX).. It's really annoying to have to scroll to read it all.. Using text instead of pictures will solve that as well.

Posted by CHollman82 [send private reply] at June 12, 2001, 10:56:31 AM

Thanks for the tips, Ill see what I can do

Posted by lordaerom [send private reply] at June 12, 2001, 05:49:38 PM

goto is ANSI, and isn't a 'good' substitute for things that are easily accomplished via a loop.
char inp[32];
memset(inp, 0, 32);
do {
if(fgets(inp, 32, stdin) == NULL))
perror("Error. Bad bad bad!"); /* do other error stuff here perhaps */
} while(strncmp(inp, "foo", 3) != 0);


instead of
char inp[32];
memset(inp, 0, 32);
HEAD:
if(fgets(inp, 32, stdin) == NULL))
perror("Bad!"); /* ditto. */
if(strncmp(inp, "foo", 3) != 0)
goto HEAD;

Now, while goto is useful in some situtations, the loop, due to braces, etc make it immediatley obvious what is going on. I think this works, I havn't done any C console IO in quite a while. But the substance is the same even if I have an error or two =]. But where did you ever get the idea that goto isn't part of the ANSI C specification?

Posted by CHollman82 [send private reply] at June 13, 2001, 08:59:22 PM

Yeah, I dont know where I got that from, somewhere. Anyway thanks for the tip. And Ive decided not to change the size of my graphics. Why dont you guys change the resolution of your monitors? Its not hard, unless you found your vid card in a trash can. In which case I would recommed the GeForce 3, Its F****** incredible.

Posted by lordaerom [send private reply] at June 13, 2001, 09:59:46 PM

I can view the text just fine. It's just a retarded way to do it, though, considering the source, it becomes understandable.

Posted by Linux_Penguin [send private reply] at June 13, 2001, 11:27:51 PM

My res is the best for my monitor. Not everyone on earth will want to change the resolution to view 1 site so you should probably be the one to change. Just go to 1024x786 it is more common than the random setting you have.

Posted by AngelOD [send private reply] at June 14, 2001, 01:44:37 AM

And to be honest, Mr. Hollman. The suggestions were made, not to make your work harder, but to make your site more user-friendly, but I'm starting to see that gian might be right.. I mean, who would like to change their resolution to some extreme resolution, and maybe even buy a new video card, just to take a look at your tutorial?

Posted by gian [send private reply] at June 14, 2001, 03:03:17 AM

Also, putting your monitor at a super high resolution is a doctor-recommended way to develop a Class-A squint! 1024x768 is just fine for me! I have a 19 inch monitor, and making the resolution any larger can make it rather an ordeal to try and click on any of the minute windows launch-bar icons!

Posted by AngelOD [send private reply] at June 14, 2001, 04:11:38 AM

When I was working with graphics and webdesign I had the resolution set to 1280x1024, but whenever I were browsing or something like it, I lowered the resolution to 1024x768..

Posted by CHollman82 [send private reply] at June 14, 2001, 10:03:18 AM

aright, i get it, Ill work on it, but now Im totally changing the way I do the site. Im gonna change the text to actuall text for one thing, and Im working on my link page. Also, im not gonna use stupid ixla web easy anymore cus its the biggest piece of crap ive ever seen. I would hard code it, but the intent of the site is just to be a means to distrib the tutorial, so im not gonna put that much effort into it.

Posted by sphinX [send private reply] at June 15, 2001, 06:24:42 AM

good plan there, chollman82. i was going pass comments similar to that of gian, Linux_Penguin and AngelOD but since they've already done the hard part, i'll just finish with my own experience. If you you want people to look at your site, don't put them off with freaking large pictures. and what's with text in graphics? that's absolutely awful!!! have you no self esteem? when i develop sites, i generally do it at 1024x768 with 800x600 as my lowest test resolution. and even then, i prefer my sites to look decent at 640x480 as well. i might now be the best web designer in the world, but at least i put some effort into making them friendly.

Posted by CHollman82 [send private reply] at June 15, 2001, 09:51:53 AM

Ok, done. I got rid of the 100k+ images for us modem users and made it more friendly for low-res users. Also I added the links page but its not complete yet.

Posted by gian [send private reply] at June 15, 2001, 05:31:05 PM

See, sphinX, that was so hard was it? And it felt good, bashing him, it did didn't it? Mwahahahahahahhah!

Posted by CHollman82 [send private reply] at June 15, 2001, 08:30:42 PM

I took that as constructive criticism gain, not bashing

Posted by sphinX [send private reply] at June 15, 2001, 09:54:02 PM

heheh....My comments were intended as helpful, but it does feel good.......what are you turning me into gian?

Posted by sphinX [send private reply] at June 15, 2001, 09:54:55 PM

btw, the site looks a heap better, CHollman

Posted by CHollman82 [send private reply] at June 17, 2001, 06:53:38 PM

Thx, someone read over my function stuff and critique it

Posted by IIPen [send private reply] at July 25, 2001, 07:19:23 AM

CHollman... it`s just mine opinion... very mine... I don`t want to offend you, but I just cannot understand how can you write such a HardCore code???... Your prototyping method is not f*** readable... I`m starting to admire that you have managed to write your 20,000 lines tetris clone with such a original prototyping technique... I would abandon the project myself after 200 lines or something with such a style of writing... Look, I don`t want to harm you but I think that you should work on clearness of your code ... It is very important in nowadays when the days of one, great, guru-wizard, write-everything-on-my-own have finished... now teams are important... and I wouldn`t like to work in a team with a guy who prototypes functions like that...

Posted by gian [send private reply] at July 26, 2001, 12:05:52 AM

IIPen: You have just gained acceptance as a great TPUer...

Posted by Cobbs [send private reply] at July 26, 2001, 03:41:11 PM

20 000 lines for a tetris clone... heh

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.