PDA

View Full Version : First program in 15 years, and post #1000


matthew
November 18th, 2005, 11:26 PM
Well, it really has been 15 years since I last wrote any sort of program in any language and I must confess I've forgotten most of what I once knew. However, I've been having so much fun with Linux and especially Ubuntu that I picked up a book on C and thought I might go for it. I'm sure it will be slow since I am learning in my free time, but I'm just doing it for fun.

Anyway, this is an open invitation for anyone who wants to do so to celebrate with me my first compiled program since 1990 (even if it is "Hello World") as well as my UbuntuForums post number 1000. I thought I would ring in a new digit with a bang.

__________________________________________________ _________________________
/ If more of us valued food and cheer and song above hoarded gold, it would \
| be a merrier world. |
\ -- J.R.R. Tolkien /
---------------------------------------------------------------------------
\ ,+*^^*+___+++_
\ ,*^^^^ )
\ _+* ^**+_
\ +^ _ _++*+_+++_, )
_+^^*+_ ( ,+*^ ^ \+_ )
{ ) ( ,( ,_+--+--, ^) ^\
{ (@) } f ,( ,+-^ __*_*_ ^^\_ ^\ )
{:;-/ (_+*-+^^^^^+*+*<_ _++_)_ ) ) /
( / ( ( ,___ ^*+_+* ) < < \
U _/ ) *--< ) ^\-----++__) ) ) )
( ) _(^)^^)) ) )\^^^^^))^*+/ / /
( / (_))_^)) ) ) ))^^^^^))^^^)__/ +^^
( ,/ (^))^)) ) ) ))^^^^^^^))^^) _)
*+__+* (_))^) ) ) ))^^^^^^))^^^^^)____*^
\ \_)^)_)) ))^^^^^^^^^^))^^^^)
(_ ^\__^^^^^^^^^^^^))^^^^^^^)
^\___ ^\__^^^^^^))^^^^^^^^)\\
^^^^^\uuu/^^\uuu/^^^^\^\^\^\^\^\^\^\
___) >____) >___ ^\_\_\_\_\_\_\)
^^^//\\_^^//\\_^ ^(\_\_\_\)
^^^ ^^ ^^^ ^
matt@ubuntu-matt:~$ /home/matt/programs-and-scripts/matt/hello/hello
Hello World

23meg
November 18th, 2005, 11:45 PM
Congrats matthew; I like your posts a lot, I read almost all of them. Keep up the good work.

darth_vector
November 19th, 2005, 12:04 AM
congratulations! i hope i get to 1000 posts someday

cstudent
November 19th, 2005, 01:07 AM
Congratulations on your achievement. I started using Linux about a year ago. It perked my interest in going back to programming too.

BTW, nice turkey but I would use a shorter directory name than programs-and-scripts. I'd get tired of typing that in. Just me. :D

DirtDawg
November 19th, 2005, 02:13 AM
Well, it really has been 15 years since I last wrote any sort of program in any language and I must confess I've forgotten most of what I once knew. However, I've been having so much fun with Linux and especially Ubuntu that I picked up a book on C and thought I might go for it. I'm sure it will be slow since I am learning in my free time, but I'm just doing it for fun.

Anyway, this is an open invitation for anyone who wants to do so to celebrate with me my first compiled program since 1990 (even if it is "Hello World") as well as my UbuntuForums post number 1000. I thought I would ring in a new digit with a bang.




Ha! Sweet. Nice work.

Seth
November 19th, 2005, 02:43 AM
I'd get tired of typing that in.Tab completion ;)

kahping
November 19th, 2005, 05:49 AM
congrats! i wonder when i'll reach post #1000 at the rate i'm going? :p

kahping

matthew
November 19th, 2005, 11:02 AM
BTW, nice turkey but I would use a shorter directory name than programs-and-scripts. I'd get tired of typing that in. Just me. :) Tab completion ;) I was just about to say that. My preference is for more descriptive directory names. All I need to type is cd pro<tab> and bash fills in the rest. Great feature!

cstudent
November 19th, 2005, 11:18 AM
I was just about to say that. My preference is for more descriptive directory names. All I need to type is cd pro<tab> and bash fills in the rest. Great feature!

Dang! Something else I didn't know. Thanks for the tip!

Bill

matthew
November 19th, 2005, 11:47 AM
Dang! Something else I didn't know. Thanks for the tip!It makes those long filenames I sometimes download a lot less of a pain. Also, if there are two with the same name, just a different number or something like <longfilename1> and <longfilename2> when you tab it will take you all the way to where they differ so you can input the unique part, then you can tab after that for the tar.gz or whatever. Cool, huh?

cstudent
November 19th, 2005, 11:52 AM
...Cool, huh?

Very cool. Makes me feel like a fool though. I've been messing with Linux a year now and this is the first time I've heard of this trick. :oops:

Bill

matthew
November 19th, 2005, 12:31 PM
Makes me feel like a fool though.
Don't. There is a lot of stuff out there. No one really knows it all. I have friends who have been Unix systems admins for decades that are still learning little tricks. The only ones who aren't are the ones who quit looking and growing.

gord
November 19th, 2005, 04:23 PM
i wonder if all the "Hello World!" programs, in all their verious states and forms, were typed out, how many times round the world would they go? i bet its a lot! :)

also, well done on getting upto (what is now) 1013 posts, im sure they were all very informative and nice :) they have all been of what i have seen

matthew
November 19th, 2005, 04:53 PM
Several people have said very nice things to me in this thread. Rather than flood the thread with individual "thank yous" let me say that I am honored and grateful for the kind, encouraging words that have been expressed. Thank you all.

majikstreet
November 19th, 2005, 06:16 PM
congrats! now you have 1016!

Biased turkey
November 20th, 2005, 10:45 AM
Well, it really has been 15 years since I last wrote any sort of program in any language and I must confess I've forgotten most of what I once knew. However, I've been having so much fun with Linux and especially Ubuntu that I picked up a book on C and thought I might go for it. I'm sure it will be slow since I am learning in my free time, but I'm just doing it for fun.

Anyway, this is an open invitation for anyone who wants to do so to celebrate with me my first compiled program since 1990 (even if it is "Hello World") as well as my UbuntuForums post number 1000. I thought I would ring in a new digit with a bang.

__________________________________________________ _________________________
/ If more of us valued food and cheer and song above hoarded gold, it would \
| be a merrier world. |
\ -- J.R.R. Tolkien /
---------------------------------------------------------------------------
\ ,+*^^*+___+++_
\ ,*^^^^ )
\ _+* ^**+_
\ +^ _ _++*+_+++_, )
_+^^*+_ ( ,+*^ ^ \+_ )
{ ) ( ,( ,_+--+--, ^) ^\
{ (@) } f ,( ,+-^ __*_*_ ^^\_ ^\ )
{:;-/ (_+*-+^^^^^+*+*<_ _++_)_ ) ) /
( / ( ( ,___ ^*+_+* ) < < \
U _/ ) *--< ) ^\-----++__) ) ) )
( ) _(^)^^)) ) )\^^^^^))^*+/ / /
( / (_))_^)) ) ) ))^^^^^))^^^)__/ +^^
( ,/ (^))^)) ) ) ))^^^^^^^))^^) _)
*+__+* (_))^) ) ) ))^^^^^^))^^^^^)____*^
\ \_)^)_)) ))^^^^^^^^^^))^^^^)
(_ ^\__^^^^^^^^^^^^))^^^^^^^)
^\___ ^\__^^^^^^))^^^^^^^^)\\
^^^^^\uuu/^^\uuu/^^^^\^\^\^\^\^\^\^\
___) >____) >___ ^\_\_\_\_\_\_\)
^^^//\\_^^//\\_^ ^(\_\_\_\)
^^^ ^^ ^^^ ^
matt@ubuntu-matt:~$ /home/matt/programs-and-scripts/matt/hello/hello
Hello World



My alias is "Biased turkey", so I'll sue you for copyright infringement.
See you in court lol :)
Welcome back to the programmer's family.
I started programming in ... hexadecimal language ( circa 1980 ). I use C++ mostly for SDL graphics programming.
I think programming keeps one's brain alert.
Have fun

BinaryDigit
November 22nd, 2005, 09:16 AM
Congrats :D Cool turkey! :D I'd like to get back into programming (got my cs degree in 2003), and I've forgotten alot since then :( and I'm still working on my linux-n00biness :)

matthew
November 22nd, 2005, 12:12 PM
Congrats :D Cool turkey! :D I'd like to get back into programming (got my cs degree in 2003), and I've forgotten alot since then :( and I'm still working on my linux-n00biness :)
I wish I could take credit for the turkey...it's part of the cowsay program
cowsay -f turkey hello

23meg
November 22nd, 2005, 12:23 PM
$ cowsay -f arizona hello
cowsay: Could not find arizona cowfile!

Sykil
November 22nd, 2005, 12:28 PM
I was just about to say that. My preference is for more descriptive directory names. All I need to type is cd pro<tab> and bash fills in the rest. Great feature!
I'm pretty anal about my directories too... however, my "programs-and-scripts" is just "Code." :P

matthew
November 22nd, 2005, 01:24 PM
$ cowsay -f arizona hello
cowsay: Could not find arizona cowfile!
ROTFL!!! :) I love that. Thanks for the laugh!

matthew
November 22nd, 2005, 01:27 PM
I'm pretty anal about my directories too... however, my "programs-and-scripts" is just "Code." :P What is frightening is that I get some trivial idea about how it could be even more perfectly organized (is that even possible?) and so I take 2 hours to rearrange all my jifs, jpgs, and pngs yet again. On occasion I have directory trees 6, 7 and maybe even 10 levels deep...but I can find anything I want very quickly without using a search program! :) This is probably a leftover from my Unix classes in the late 1980's. I must have had a compulsive prof drill into me the need for organization.