Sublime Forum

ExportHtml Plugin (rename from PrintHtml)

#101

[quote=“agibsonsw”]int(*f(char c))(int, long); ?

or, to put it another way…

void *((*fnp[4])())();[/quote]

precisely

0 Likes

#102

[quote=“castles_made_of_sand”]

[quote=“agibsonsw”]int(*f(char c))(int, long); ?

or, to put it another way…

void *((*fnp[4])())();[/quote]

precisely[/quote]

You guys are ridiculous :smile:.

Once you can code in C, you can pretty much code in anything. As soon as you get used to managing your memory and cleaning up, other languages are much easier. The one exception is assembly; that is just painful to code in. I did a small project in straight assembly in college…it was not fun…interesting and a good exercise, but not fun. That is why Python can be so fun, you don’t have to worry about memory so much and types etc. and you can dynamically do stuff, where in C, things are much more rigid.

0 Likes

#103

I quite agree. I wish I had pursued C early on (and Turbo Assembler…). It’s challenging to revisit though, after all the hand-holding that other languages and IDEs offer.

0 Likes

#104

Once you can code in C, you can pretty much code in anything.

Learn C in 21 days (while mastering haskell and clojure as byproduct)

A brain once stretched or something eh?

I’ll try and learn C properly one day. One day…

0 Likes

#105

I never formally learned C; I had one intro to C class (learned about very basic programming things like for loops etc.; basically stuff I already knew) the rest I have had to teach myself on the fly because I had to program robots and embedded projects trying to get my EE degree. As engineers, it is expected we can just learn it.

I remember learning assembly. The professor took about week and gave us a crash course and a very large book on assembly programming for the Motorola HCS12 processor and that was it. Next thing I knew, I was up to my eyeballs in assembly trying to remember if I pulled everything off the stack or not…ugghh. It was the same way with Verilog code for FPGAs and such.

After you start picking up new languages, you realize they are all basically the same, it is just a matter of learning the syntax to express the logic. The trickiest part with C is having to deal with the memory stuff and dealing with data structures like link lists and such…stuff you usually don’t have to do in high level languages because they garbage collect for you, they allocate the memory for you, they provide useful structures for you to use. That is what makes scripting fun, not getting bogged down by all of the memory management crap.

0 Likes

#106

Yeah, I don’t think I have the ability for that micromanagement. Handy to learn just enough to debug ctypes errors though.

0 Likes