Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-31-2002, 02:14 AM   #1
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Question on programmERS, not programING


I have never done any kind of programming to my knowledge other than making this script (which I didn't even do, it was suggested by someone and I simply remember it well)

shutdown -r now
So my question as a complete and udder retard when it comes to programming is this:
When you guys see code, read code, or write code, do you read it as I do a book, or do actually have to type in the code to see the output, and things like that. I guess, is it like a foreign language that you translate, or do you just "see it" when you look at the script?

I am sorry if this sounds VERY STUPID, but I took that test that crabboy so kindly made, and I scored 3 because of luck, not because I knew anything on there. That and I read some of your questions, or any question regarding programming, and I am completely oblivious to what any is talking about.

Thanks for any answers. Flames, bashes, attacks, and hate groups are all welcome to comment as well, I won't take much offense as most of what you will say is probably true.

Old 08-31-2002, 03:37 AM   #2
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
It's actually a very good insight. When I program, I usually program in Perl and I've been using Perl for over 5 years so far.

I find that I actually "think" in perl, I don't say "this is a block of code delimited by "{" and "}" in an if-then statement. It's as clear to me as a new paragraph in the book I'm currently reading.

Old 08-31-2002, 02:30 PM   #3
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,571

Rep: Reputation: 180Reputation: 180
I read code as a poem or book. It's written using a programming language, but still "language".
From a well-written code you know exactly what it does after the first read. It's like a well-written sentence. It just clear.
When writing programs I think in a programming language (usually C). I think it's the best way, but it needs some time (and many programs).
Old 09-01-2002, 02:54 AM   #4
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Rep: Reputation: 15
i read programming like English but it's sort of like old math questions from grade 2. when i see a part of a script i sort of follow it like that question of "how many people are on the bus",
you know that one that goes "5 people get on then 3 people get off then 6 people get on then half the people get off then 2 more people get on, how many people are on the bus?"
Old 09-01-2002, 03:26 AM   #5
Registered: Aug 2002
Location: Sweden
Distribution: Gentoo
Posts: 43

Rep: Reputation: 15
When I read code I see its results in my mind's eye. If the code is well-written, I take no note of the syntactical details. For example, C++ code contains a hoard of special characters (like ++ -> * != ), but they have all been seen millions of times, so they are merely well-known patterns as part of a greater whole. The same goes for basic constructs, such as: for( abc ; def ; ghi ) jkl;

I visualize the results differently depending on the context:

DrawBox( 10, 10, 300, 50 );
This may be visualized as drawing a box across these co-ordinates.

string text = "My name is " + myName;
This may be seen as the resulting memory allocation of the concatenation of "My name is " and whatever contents of myName.

In many cases expressions are almost algebraical:
a = 12 + b * ( 5 - c );
Old 09-01-2002, 04:13 AM   #6
Registered: Jun 2002
Location: Koom Valley
Distribution: rh8
Posts: 528

Rep: Reputation: 31
wow. metacognitive processes on LQ...
yea i think in code... after all, it is a language...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
JTextArea Question for Java Programmers Diederick Programming 1 09-16-2005 08:25 PM
Question for programmers who use Vi(m) lowpro2k3 Programming 3 03-25-2005 06:56 PM
C programing question israel Programming 2 11-29-2004 06:05 AM
Question for KDE programmers irfanhab Programming 2 08-23-2004 02:12 PM
Question to programmers of Linux Falelorn Programming 8 06-29-2004 06:30 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration