New guy in forums

New? Tell us about yourself. Get to know your fellow members.

New guy in forums

Postby whisky on Tue Nov 29, 2005 1:04 pm

Hey all, my name's Ayaz. I'm 18 years old (well, almost) and i'm from Pakistan. I've got alot of interest in computers and other electronics and just love to tear apart every nifty little thing to have a look inside. I've been using computers for the past 4 or so years but i've got a hold of alot of things (that even my dad doesn't know how to Razz ). If you need some sort of help with "beginner" Linux or any Win stuff then do let me know.

I've been trying to get my hands on a shell account lately to learn TCL and to get a hold of the Unix world.

Peace!
whisky
Contributer
Contributer
 
Posts: 23
Joined: Tue Nov 29, 2005 12:26 pm

Re: New guy in forums

Postby PaulKenny on Tue Nov 29, 2005 4:26 pm

whisky wrote:Hey all, my name's Ayaz. I'm 18 years old (well, almost) and i'm from Pakistan. I've got alot of interest in computers and other electronics and just love to tear apart every nifty little thing to have a look inside. I've been using computers for the past 4 or so years but i've got a hold of alot of things (that even my dad doesn't know how to Razz ). If you need some sort of help with "beginner" Linux or any Win stuff then do let me know.

I've been trying to get my hands on a shell account lately to learn TCL and to get a hold of the Unix world.

Peace!


Hi whisky
i have a great interest in computer too
so much im studying them
PaulKenny
Newbie
Newbie
 
Posts: 15
Joined: Tue Nov 29, 2005 4:21 pm

Re: New guy in forums

Postby mm_freak on Tue Nov 29, 2005 11:46 pm

Welcome to the forums, whisky. =)

whisky wrote:Hey all, my name's Ayaz. I'm 18 years old (well, almost) and i'm from Pakistan. I've got alot of interest in computers and other electronics and just love to tear apart every nifty little thing to have a look inside. I've been using computers for the past 4 or so years but i've got a hold of alot of things (that even my dad doesn't know how to :P ). If you need some sort of help with "beginner" Linux or any Win stuff then do let me know.


I've got a Windows question. Why does the Windows API prefer to use evil function call names from hell (like MsgWaitForMultipleObjectsEx), while in Linux easy names (like waitpid) are preferred? =)

whisky wrote:I've been trying to get my hands on a shell account lately to learn TCL and to get a hold of the Unix world.


It's far better to install the Eggdrop locally to learn TCL. An eggdrop running on a shell account is usually meant to be used, not to be practiced with.
I'm x^10 + x^8 + x^5 + x^4 + x^3 + 1, so don't mess with me!
mm_freak
Moderator
Moderator
 
Posts: 635
Joined: Sun Sep 11, 2005 12:29 pm
Location: Baden-Wuerttemberg (Germany)

Re: New guy in forums

Postby Tim on Wed Nov 30, 2005 3:27 am

mm_freak wrote:I've got a Windows question. Why does the Windows API prefer to use evil function call names from hell (like MsgWaitForMultipleObjectsEx), while in Linux easy names (like waitpid) are preferred? =)


Me! Me!

MS likes to have nice, descriptive names which tell you exactly what the thing does, however descriptive almost always equals long.

Linux and the like, however, prefer more efficient, shorter names which are often much more confusing at first sight but easier to remember in the long term (and less likely to be spelt wrong Very Happy)
User avatar
Tim
root
root
 
Posts: 736
Joined: Thu Mar 10, 2005 6:31 am
Location: Australia

Re: New guy in forums

Postby whisky on Wed Nov 30, 2005 9:39 am

mm_freak wrote:I've got a Windows question. Why does the Windows API prefer to use evil function call names from hell (like MsgWaitForMultipleObjectsEx), while in Linux easy names (like waitpid) are preferred? =)

Because they want it to be "Lamer Friendly" (No offense to Windows people) Smile

But anyway, readability of source code is very important, moreso than being able to write it a half second faster.
whisky
Contributer
Contributer
 
Posts: 23
Joined: Tue Nov 29, 2005 12:26 pm

Re: New guy in forums

Postby mm_freak on Thu Dec 01, 2005 7:34 am

whisky wrote:But anyway, readability of source code is very important, moreso than being able to write it a half second faster.


Code: Select all
SomeLongFunctionNameEx((LPARAM *)dwUserData, (CALLBACKFUNCTION)callback, 10, 23, 11, 22, *(HWND *)mywnd);


And in your opinion, this is readable?!
I'm x^10 + x^8 + x^5 + x^4 + x^3 + 1, so don't mess with me!
mm_freak
Moderator
Moderator
 
Posts: 635
Joined: Sun Sep 11, 2005 12:29 pm
Location: Baden-Wuerttemberg (Germany)

Postby whisky on Fri Dec 02, 2005 4:28 pm

LOL.

You don't have to worry about all that long essay after the function name as long as the function's name its self is readable.

Like "SomeLongFunctionNameEx" gives you the sure shot idea of what all this stuff is about so why bother with all that other stuff ?
whisky
Contributer
Contributer
 
Posts: 23
Joined: Tue Nov 29, 2005 12:26 pm

Postby mm_freak on Sun Dec 04, 2005 5:49 am

whisky wrote:You don't have to worry about all that long essay after the function name as long as the function's name its self is readable.

Like "SomeLongFunctionNameEx" gives you the sure shot idea of what all this stuff is about so why bother with all that other stuff ?


Then look at this code:

Code: Select all
if (IsConstantPolynomialEx(&SeedPolynomial) == TRUE) return NULL;
EnterCriticalSection(&OneSeed);
InitializeGaloisFieldEx(&myDomain, 2, 512);
AssignDomainToPolynomialEx(&FeedbackPolynomial, &myDomain);
GeneratePolynomialEx(&FeedbackPolynomial, 512, GENERATE_POLYNOMIAL_PRIMITIVE);
CopyPolynomialEx(&StatePolynomial, &SeedPolynomial);
LeaveCriticalSection(&OneSeed);
/* ... */


So you know, just by reading the function names, what this pseudo-function does? Or to have a more real example:

Code: Select all
SendMessage((HWND)mainwindow, WM_COMMAND, 124, 0);


Which command does this function send to the main window? Do you know that? No. The function name SendMessage doesn't help you in any way, nor does the message mnemonic WM_COMMAND. It just gives you a hint about the action taken with that expression.
I'm x^10 + x^8 + x^5 + x^4 + x^3 + 1, so don't mess with me!
mm_freak
Moderator
Moderator
 
Posts: 635
Joined: Sun Sep 11, 2005 12:29 pm
Location: Baden-Wuerttemberg (Germany)

Postby whisky on Sun Dec 04, 2005 7:43 am

Right.

So in short, Linux pwns Windoze? Very Happy
whisky
Contributer
Contributer
 
Posts: 23
Joined: Tue Nov 29, 2005 12:26 pm


Return to Introduce Yourself

Who is online

Users browsing this forum: No registered users and 1 guest

cron