LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-06-2007, 08:46 PM   #1
DirkDiggler
Member
 
Registered: May 2007
Location: Florida/USA
Distribution: Ubuntu Feisty Fawn, Fedora 7, Windows XP
Posts: 91

Rep: Reputation: 16
Programming suggestion


Hey Gang,

I wanted suggestions from the programmers here. I've made the decision to go to my community college for an A.S. in programming. I am in an ongoing learning process with Linux, I am by no means an expert. Other than continuing to learn Linux, is there anything you guys would suggest I do to prepare myself? Read a particular bookn, certain exercises? I know there will be study groups, and there can be hand-holding with teachers if I have any problems. I'm pretty bright, so hopefully there won't any be any major problems. There will be problems I'm sure though. So if you guys have any suggestions, constructive criticisms or 'eye-openers', I'm open to them.

Thanks,

Brandon
 
Old 06-06-2007, 09:03 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Moved: More suitable in our Programming forum.
 
Old 06-06-2007, 09:16 PM   #3
DirkDiggler
Member
 
Registered: May 2007
Location: Florida/USA
Distribution: Ubuntu Feisty Fawn, Fedora 7, Windows XP
Posts: 91

Original Poster
Rep: Reputation: 16
Whoops. I didn't see the programming forum. Thanks Tricky.

Brandon

Last edited by DirkDiggler; 06-06-2007 at 09:18 PM.
 
Old 06-07-2007, 12:09 AM   #4
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
Do you already know how to program? If not, I suggest you do a google search for C/C++ tutorials, and use GCC to try them out. Also, you may consider trying to make some programs for windows (since you will most CERTAINLY be learning that in collage), try using the Borland, Bloodshed, or free MSVC++ compiler.

Read up and understand pointers!!! I've known alot of people who simply can't understand pointers, so they never use them (and they always find very creative ways of coding without them). YOU MUST LEARN TO USE POINTERS TO BE ANY KIND OF PROGRAMMER!!!

General hardware workings are a plus. Sometimes, though not always, knowing HOW your computer works may help you avoid a nasty bug in your program.

All the rest is mostly expirience, so if you want to goto collage and blow off your teacher's socks, then start learning to program (it isn't hard)!
 
Old 06-07-2007, 09:00 AM   #5
DirkDiggler
Member
 
Registered: May 2007
Location: Florida/USA
Distribution: Ubuntu Feisty Fawn, Fedora 7, Windows XP
Posts: 91

Original Poster
Rep: Reputation: 16
Nerd,

Currently I don't know the first thing about programming. I know what I've heard: it can be tedious and it's very logical. The logical part bodes well for me. Tedious not so much, but it's also my understading that you can make ways to streamline specific parts (commonly used commands?). I do have a pretty good idea of what each piece of hardware does, how it works and so on. Believe it or not, I believe the college I'm going to uses Unix for programming. So, I imagine Windows won't be the only OS we program for. Thanks for the advice Nerd.

Regards,

Brandon
 
Old 06-08-2007, 09:48 AM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
If you believe that programming will be tedious, why would you want to make it your life's work? Or did tediousness lose its pejorative nature while I wasn't looking. Just curious.

--- rod.
 
Old 06-08-2007, 10:37 AM   #7
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by The_Nerd
Read up and understand pointers!!! I've known alot of people who simply can't understand pointers, so they never use them (and they always find very creative ways of coding without them). YOU MUST LEARN TO USE POINTERS TO BE ANY KIND OF PROGRAMMER!!!
Try telling that to a Java fanatic.
 
Old 06-08-2007, 12:14 PM   #8
DirkDiggler
Member
 
Registered: May 2007
Location: Florida/USA
Distribution: Ubuntu Feisty Fawn, Fedora 7, Windows XP
Posts: 91

Original Poster
Rep: Reputation: 16
I meant tedious in the nicest way possible. It's my understanding that some parts are tedious, but it's something I have NO experience with. My outlook could change once I start doing it. Making the computer doing what you want by telling it to do what you want (not what someone else has created) has always made me curious. It is truly something I believe I want to do. However, plans change and so do people. As it stands, it's something I want to do.

Regards,

Brandon
 
Old 06-18-2007, 02:55 PM   #9
1slipperyfish
LQ Newbie
 
Registered: May 2007
Location: wigan
Distribution: mandriva
Posts: 29

Rep: Reputation: 15
Quote:
Originally Posted by IsaacKuo
Try telling that to a Java fanatic.
i totally agree with that one i think that's why i started javaring
it's bad enough using refernces in perl
paul
 
Old 06-18-2007, 03:46 PM   #10
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
Quote:
Originally Posted by IsaacKuo
Try telling that to a Java fanatic.
At the risk of going OT, you cannot program effectively even in Java without understanding at least a little bit about how pointers work. Java still has pointers (or "references") even though you can't see it. Try this code:
Code:
import java.util.Vector;

public class Test {
    public static void main(String[] args) {
        Vector<String> x = new Vector<String>();
        x.add("foo");

        Vector<String> y = x;
        y.add("bar");

        Vector<String> z = new Vector<String>(x);
        z.add("lolcats");

        System.out.println("x = " + x);
        System.out.println("y = " + y);
        System.out.println("z = " + z);
    }
}
Which produces this output:
Code:
x = [foo, bar]
y = [foo, bar]
z = [foo, bar, lolcats]
Because x and y are references to Vector<String> objects, assigning x to y actually assigns the reference to y, not the actual object. The result is that x and y both refer to the same object, so when you appear to add an element to y, the change is reflected in x as well (since they're the same thing). On the other hand, using the right constructor when creating a Vector object copies the elements inside the source Vector (which may or may not themselves just be references -- hence the difference between a shallow and a deep copy -- according to the documentation this "copy constructor" uses an iterator on the supplied collection, which results in a shallow copy), so adding an extra element doesn't change the original.

See how important pointers ("references") are in Java? But there are some languages that forbid aliasing like this.
 
Old 06-19-2007, 03:52 AM   #11
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
programming is not tedious.
it's like mental meccano or lego.

you can create complex machines without getting too greasy
 
Old 06-19-2007, 05:27 AM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,352

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
It's been shown that the best programmers use both sides of their brains: artistic/analytical to design code, scientific/logical to do the actual coding.
The 'tedious' part is simply attention to detail/patience, without which you'll have major issues eg debugging in particular.
As an example, error msgs do usually 'tell you' what's wrong, it's just that they do it from the SW tool's point of view, not yours... sometimes it's more like a hint.
As mentioned, ptrs/references are worth knowing, although I'd start with the basics first.
 
Old 06-19-2007, 05:45 AM   #13
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
the only tedious part is the team meetings you have to attend.
 
Old 06-20-2007, 07:00 AM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,352

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
There is always that of course
Unless you're absolutely sure, never commit to something in a mtg, always say you'll look into it.
 
Old 06-20-2007, 08:17 AM   #15
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
and when you are half asleep doodling on your pad and someone asks you a question
say:
"er, sorry I don't quite get what you mean there"
hopefully they'll repeat it
 
  


Reply


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
Difference between Top Down programming & Bottom up programming minil Programming 1 06-17-2005 02:42 AM

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

All times are GMT -5. The time now is 10:03 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