Jump to content

Minor Setup w/ Coding


Erelei

Recommended Posts

C is a fickle beast.

My comp sci 101 paper was taught in C and I'm now over half way done with my degree and thought I would play around with the old FL source code as a sorta pet project (they say practicing or coding something you have an interest in helps a LOT) but the standards have changed so much since and my programming ability isn't refined enough to be able to fix it.

but...at least I can read it =P

 

@Erelei The offer to help with some snippet stuff still stands =P

Edited by Wade
Link to comment
Share on other sites

You can see the entire file (or a very large portion of it) on the right hand side?  That's awesome!  Oddly satisfying to look at, as a whole.

The only problem I see with that image is that icon in the upper left.  Fruit is bad. :yes:
Though I'm aware it's a preference, I'll try not to hold it against you too much. :biggrin:

Link to comment
Share on other sites

  • Implementor

I own a Lenovo Workstation with 12GB RAM and an i7, too, which I run Linux on primarily. So... yes. Apple is a preference most days while I work.  Pretty > performance usually when coding doesn't require literally any performance boosts. 

Link to comment
Share on other sites

Nice. I love how even though there aren't comments, the code is extremely clear and easy to read.
Does sublime has C code correction/compilation aids like gVim ? I think I will need a decent C IDE in the future and gVim can be extremely frustrating on copy paste, not to speak that I'm spoiled by Netbeans to use just a colored text editor.

Also:

"char *translate_parse(..."

this is a function that returns a char pointer, right? Why not "char* trans..." instead of "char *trans.."?
I read something about this, and avoiding confusions in code, but I kinda forgot.

 

10 hours ago, Fool_Hardy said:

Yeah I am still fumbling with the basics in codeblocks myself, I can see how it all comes together, but the size of what we have in place here boggles my conceptions and honestly makes me want to quit trying.

You can pick up most of skills to read C from one of those learn to program books that teaches with C. The only thing you will not understand well is pointers (the *  in variable declarations) and structures (used in the tables). Those require non initiate knowledge to really understand.
 

Link to comment
Share on other sites

  • Implementor
On 2/15/2017 at 10:07 AM, mya said:

Nice. I love how even though there aren't comments, the code is extremely clear and easy to read.
Does sublime has C code correction/compilation aids like gVim ? I think I will need a decent C IDE in the future and gVim can be extremely frustrating on copy paste, not to speak that I'm spoiled by Netbeans to use just a colored text editor.

Also:

"char *translate_parse(..."

this is a function that returns a char pointer, right? Why not "char* trans..." instead of "char *trans.."?
I read something about this, and avoiding confusions in code, but I kinda forgot.
 

Didn't catch this comment - 

char *var and char* var are the same. It's better to use char *var to avoid confusion, especially when you're defining multiple pointers.

That said, I said I'd actually post a picture of my mud setup for most days:

tt__.png

 

I know it's absolutely redundant to see a bunch of blurred stuff, but the privacy of a bunch of players depends on that :P The bottom left window displays all my IMM/IMP/pray chats and the bottom right displays all the WizNet logging that outputs throughout the day.

 

Link to comment
Share on other sites

13 hours ago, Erelei said:

char *var and char* var are the same. It's better to use char *var to avoid confusion, especially when you're defining multiple pointers.

Thanks.  Pointers are the devil. I just wasted 30 min on a segmentation fault because I was declaring a string with :"char * str = "something";"  instead of "char str[] = "something";". Of course, this segmentation fault would happen on another file of the small project where i "*str = *str2;" while I was trying to copy into the string...

 

Link to comment
Share on other sites

×
×
  • Create New...