by elliotec · 10y ago · 0 comments
Yes, both I think. These are ways of thinking that simply don't seem to apply in JS or any other dynamically typed higher level language.
Also, just sort of the conventions of naming things, like malloc or memcpy or in the example of the article, all those crazily shortened abbreviations that may just be saving bits or the developers style, but make it very unreadable for me. I'm used to stuff like:
function getDataFromServer(){
var data = response
//blah blah etc
}
and it may just be a thing that you have to get used to with experience, but I can read and write Python, Ruby, JS, Clojure and other lisps, and have experience with C#, but something about C I just struggle with, and I wish that wasn't the case.Your example looks like completely valid C code to me (except for the lack of semi-colon).