LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


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

Rep: Reputation: 69
Question on programmERS, not programING


Hi

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)
Code:
!#/bin/bash

/usr/local/bin/mp3blaster 
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.

Cool
 
Old 08-31-2002, 03:37 AM   #2
MartBrooks
Member
 
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.

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

Rep: Reputation: 232Reputation: 232Reputation: 232
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
ShawnD
Member
 
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
boku
Member
 
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
tundra
Member
 
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...
 
  


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:34 PM.

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