Forum Settings
       
1 2 Next »
Reply To Thread

ProgrammingFollow

#27 Feb 12 2012 at 9:28 PM Rating: Decent
Sir Xsarus wrote:
Ruby. If you're going to learn a scripting language learn ruby. <3 irb.


Meh... ruby's a fad language.
#28 Feb 12 2012 at 9:29 PM Rating: Excellent
BrownDuck wrote:
Wint wrote:
IDE's are nice and all, but I think everyone should start with a text editor and the command line.


Agreed, which is why I initially recommended python. A single script file is all that's required - no compilation or anything - so it's much more beginner friendly.


I have Notepad++ set up to compile and run code with hotkeys, it's pretty much how I wrote code for every class I've taken so far.
#29 Feb 13 2012 at 11:12 AM Rating: Excellent
*****
10,601 posts
BrownDuck wrote:
Sir Xsarus wrote:
Ruby. If you're going to learn a scripting language learn ruby. <3 irb.


Meh... ruby's a fad language.
I disagree, especially with the amount of attention rails is getting.
____________________________
01001001 00100000 01001100 01001001 01001011 01000101 00100000 01000011 01000001 01001011 01000101
You'll always be stupid, you'll just be stupid with more information in your brain
Forum FAQ
#30 Feb 13 2012 at 7:00 PM Rating: Good
Encyclopedia
******
35,568 posts
Dread Lörd Kaolian wrote:
2. Figure out which program language you are going to be working with, and then look for a good editor. For example, the free micosoft visual studio express editions are a very good place to start. http://www.microsoft.com/express

Some people find that better tools help them program, others claim they like a basic text editor and any color coding or code tree management features distract them. I find that those latter people are idiots personally, so find the best tool you can get and start playing with it.


Anyone who codes in anything other than vi is a wimp. Yeah. I said it! Smiley: tongue

To be fair though, if your intention is to only ever do programming in an ideal environment (ie; one in which you can use whatever your favorite tool is), then by all means find that favorite tool. The problem IMO, is that folks who use their favorite enhanced editor for doing programming will tend to use it as a crutch. Then, one day, they wont have it, and they'll find themselves struggling to do anything useful.

Probably not a huge deal for most situations, but as a system administrator, you may on occasion find yourself needing to edit files/scripts on a serial console with only basic text capabilities. Not a good time to figure out how to use vi. And then there's the fun of the occasions when said console doesn't handle multi-line (or even in-line) scrolling either. Nothing more fun than editing a file when you can only edit one line at a time, and you can't see the characters on that line while you're actually editing it.

This obviously matters more in interpreted rather than compiled languages.

Quote:
5. structure is key. the more things you can make identical (column spacing, line spacing, variable capitolization, etc) the easier your job will be.


This. 100x this! I'll also point out for the record, that if you use a special editing tool to write your code in, please please please please please don't do things like modify the tab size in your tool and then line things up that way. Do you know what happens when you decide that it's convenient to set your editor to use a two space tab, but then some of your spacings are made using tabs and some using spaces? When someone opens up your file in a different editor, perhaps one that doesn't have the same two space tab, your alignment is completely screwed up.

Better yet. Don't use tabs at all. Use spaces. Why? Because cut and paste doesn't always maintain tabs (and frankly, most of the time you don't want it to). You will get screwed up alignment doing that. Heaven help the next guy who moves a whole block of code around. And it's a pain in the butt for someone else to go through line by line and fix it.

Yeah. I rant about this. Cause I can.



Oh. Second on the commenting as much as possible. While a paragraph for each line is a bit much, one before each block of code isn't a bad idea at all. And I agree that the "how" is sometimes very useful. If for no other reason than it might force the guy writing it to be a bit more descriptive on the why. Reading something like "Take our data and put it together to get our answer" isn't terribly useful. If that person had taken the time to mention that he's going to take each piece of data from X function and pass it into Y function, then divide by the number of whatsits represented by the value of the num_of_whatsits variable, then his "why" might just make a bit more sense.


And frankly, if the code that follows the comment isn't something which someone might have a hard time following, you probably wouldn't need comments in the first time. I can't count the number of times I've looked at a section of code and thought "What the hell is thing doing?". Note, not "why". I usually know that this is the section of the program where we determine which whatsit is the best whatsit in wholand, or whatever. Knowing how the hell the code does this is somewhat useful as well.


And for the record, most of the time I'm looking at my own damn code. If I can't figure my own stuff out without comments, there's no way someone else is going to do so.
____________________________
King Nobby wrote:
More words please
#31 Feb 13 2012 at 7:04 PM Rating: Excellent
*****
10,601 posts
VIMEMACS!!
____________________________
01001001 00100000 01001100 01001001 01001011 01000101 00100000 01000011 01000001 01001011 01000101
You'll always be stupid, you'll just be stupid with more information in your brain
Forum FAQ
#32 Feb 13 2012 at 7:20 PM Rating: Good
Encyclopedia
******
35,568 posts
Sir Xsarus wrote:
VIMEMACS!!


You're just trying to start a war, aren't ya? Smiley: mad
____________________________
King Nobby wrote:
More words please
#33 Feb 13 2012 at 7:26 PM Rating: Good
*******
50,767 posts
Just don't get involved in a land war in Asia.
____________________________
George Carlin wrote:
I think it’s the duty of the comedian to find out where the line is drawn and cross it deliberately.
#34 Feb 13 2012 at 7:35 PM Rating: Good
Encyclopedia
******
35,568 posts
I'm not terribly concerned, since he struck out VIM instead of VI. I kinda have a personal hate for vim and the idiot linux distro devs who decided that since it's so wonderful and apparently too hard for them to type one freaking more character that they'd just link vi to vim. Really? No. I don't want my editor to remember that the last time I edited a file with the same name, I was on line number 47 and automatically start me there. Why? Um... Because the "/etc/hosts" file I'm editing today isn't the same one I edited yesterday. Shocking! And no. I really don't want or need colored text. Doubly so since it didn't occur to you that someone might be logged into said linux box from a terminal on a different system with a terminal color scheme other than white on black or black on white.

Yeah. Color coding in the ls command pisses me off too. Years ago, in order to relieve eyestrain while working, I switched to a color set which includes kind of a blue green background with white letters. It's incredibly good on the eyes and has just as much visibility. Right up until some idiot decides that blue and green text would look just nifty and then makes that the freaking system default. Grrr....



Edited, Feb 13th 2012 5:38pm by gbaji
____________________________
King Nobby wrote:
More words please
#35 Feb 13 2012 at 7:50 PM Rating: Good
Drunken English Bastard
*****
15,268 posts
lolgaxe wrote:
Just don't get involved in a land war in Asia.

There's a Risk game on facebook now.



(Read: +1)
____________________________
My Movember page
Solrain wrote:
WARs can use semi-colons however we want. I once killed a guy with a semi-colon.

LordFaramir wrote:
ODESNT MATTER CAUSE I HAVE ALCHOLOL IN MY VEINGS BETCH ;3
#36 Feb 13 2012 at 9:12 PM Rating: Excellent
Gurue
*****
16,299 posts
Nilatai wrote:
lolgaxe wrote:
Just don't get involved in a land war in Asia.

There's a Risk game on facebook now.



(Read: +1)

lolrisk.


Really?
#37 Feb 13 2012 at 9:54 PM Rating: Excellent
Avatar
******
29,919 posts
Never take a class on pogroming by mistake either. That generally is frowned upon by prospective future employers.
____________________________
Arch Duke Kaolian Drachensborn, lvl 95 Ranger, Unrest Server
Tech support forum | FAQ (Support) | Mobile Zam: http://m.zam.com (Premium only)
Forum Rules
#38 Feb 13 2012 at 10:22 PM Rating: Excellent
****
4,901 posts
Sir Xsarus wrote:
VIMEMACS!!


I love love love EMACS but I have one gripe. As one may or may not be aware, to save the current file in EMACS you press Ctrl X followed by Ctrl S. When I'm coding I save the file quite often, mostly without thinking about it. If I'm doing stuff in Linux for a few days and then jump back into Windows, my brain is still in "Ctrl X + Ctrl S" save mode. On Windows, "Ctrl X + Ctrl S" is a dangerous combination, it effectively deletes (cuts) the current line of text (Ctrl X) and then saves the file (Ctrl S). This can introduce some very nasty, subtle bugs that make you question your sanity. Smiley: mad

ps Don't tell me to remap my hotkeys.
pps Don't tell me about some long-winded equivalent meta-X save-buffer...
pps Don't tell me that EMACS bindings were there first and that my gripe should be with Windows.
____________________________
Love,
PunkFloyd
#39 Feb 13 2012 at 10:27 PM Rating: Decent
PunkFloyd, King of Bards wrote:
pps Don't tell me that EMACS bindings were there first and that my gripe should be with Windows.


Hot key inconsistency between platforms / tools is one of my biggest ******* complaints. I don't care who had what first. Standardize, you plicks!
#40 Feb 14 2012 at 12:36 AM Rating: Decent
Lunatic
******
30,086 posts

ps Don't tell me to remap my hotkeys.


Remap x to w. Five seconds to do, less time than it took you to make the whiny post.
____________________________
Disclaimer:

To make a long story short, I don't take any responsibility for anything I post here. It's not news, it's not truth, it's not serious. It's parody. It's satire. It's bitter. It's angsty. Your mother's a *****. You like to jack off dogs. That's right, you heard me. You like to grab that dog by the bone and rub it like a ski pole. Your dad? Gay. Your priest? Straight. **** off and let me post. It's not true, it's all in good fun. Now go away.

#41 Feb 14 2012 at 8:20 AM Rating: Excellent
Count me in the vi camp. Spent a semester coding exclusively in vi and I was hooked.

Edited, Feb 14th 2012 8:20am by Wint
1 2 Next »
Reply To Thread

Colors Smileys Quote OriginalQuote Checked Help

 

Recent Visitors: 661 All times are in CST
Anonymous Guests (661)