[Day +03] Introduction to C programming, or C for Dummies

_QUOTE OF THE DAY:

“Set a goal that makes you want to jump out of bed in the morning.” Unknown

 

#MORNING (6:42) (it didn’t do it on purpose I swear)
DAILY OBJECTIVES
_START DOING:
1.Eat more brain foods (in particular nuts). With the rush and concentration levels that are so high up it often happens that I only remember to eat when my sugar levels are already down enough to give place to an unwelcoming headache, or head fuzz I really have trouble defining it :))) Anyway, today the pack of nuts did add itself to my food bag.
_KEEP ON DOING: 
1. Write in the morning. Well I will definitely try to do keep up with this one. It’s been a 3rd time I have scatched out some thoughts upon waking up. It seems to be a good way of waking up and sets me on the right working rhythm right from the start.
2. [improvement] This one goes to the same point of Bringing food supply with me, but I have made a note to self to improve this one! And it is summarized in “Take bigger portions for lunch!” And when I saw 1,5 kg less on the scale compared to the D00, I realized that this one is really crucial! Even though I don’t mind loosing some weight I’m afraid that at this pace it might get a bit too far.
_STOP DOING: 
1.Getting to sleep after 11 p.m… This one is still the biggest challenge, but I definitely need to get there. I guess my body clock is still well set to the “before 42” schedule and so I still wake up at 6h30 – 7h00 in the morning (without an alarm), but I just realise that it make only 5-6h of sleep and it will not get me going for long… So today I hopeful for this challenge to get for once accomplished.
#EVENING (22:24) (not on purpose either 😉 I guess the 42 just being ;y lucky star today in the direct and reverse forms)
_OVERALL: I’ve been in an uber-positive mood ever since I’ve got my D00 and D01 validated first thing in the morning. I doubt any of the ‘non-piscine’ readers will be able to share the feeling but those who have been where I was (with the 3+ retries for D00) will sure understand.
_WORKTIME: 15h
_TOPIC: D02/D03 Introduction C. With the shell that has finished for me this morning (I mean, its brain-knitting advanced version) it’s now got to the whole new level of smart creative part of the code. The first programs that we need to create are relatively simple but with every exercise it moves slowly but surely along the creative line.
_RESULTS: An non-quantifiable happiness following the morning pass on the D00 and D01, and  growing confidence on the C understanding, which wasn’t instant (to put it nicely).
 
RESULTS D03
D00 – 75% – 3xFAILED 4xPASSED
D01 – 65% – 1xPASSED
D02 – 0xINPROGRESS (4/8 finished, 4 in progress)
WEIRD GREEN LINE (SUPPOSEDLY TOTAL SCORE) – 19% (which seems like an epic fail compared to my next-screen neighbor’s 69%)
_HIGHTLIGTS: 
  1. [42] E=MC2 Well the biggest highlight of today is a realisation that my energy levels are surprisingly high against all logic. 13h of work yesterday followed by 4.5 hours of sleep did somehow result in the pump and jump state. Which is perplexing: it’s surely is good BUT I’m anticipating the storm coming… In the meanwhile I did come up with a new version for the Einsteins law when MC=4=motivation*CoolPeopleAround <=> E = MC2 <=> 42
  2. C FOR DUMMIES.  As high as my energy was overall it seems that the transmission got the limiting capacity funnel somewhere on its way to the brain and understanding of the C Language logic didn’t get to the right neurons instantly. So I did what I do best – using my natural charm and advanced questioning techniques to get a different explanation of the C logic, so that I  can compile it all afterwards and get a somewhat readable version that can be interpreted by the BRAIN V.03.04.88.EK.GT. All in all I counted 10 versions (et oui). With some that more more unconventional than others.  And thus the first part of the SPECIAL COMMENTS: #PEOPLE will start here.
    So the special prizes goes to (drumroll):
    @Andrei & his artful army metaphor.
    image As it turns out the C program can be explained as a representation of General=BigBoss (main) whole role is to list the orders he will be giving to the Sergeants (complex functions) that do take the orders from the General. At the same time the Sergeants don’t really do stuff by themselves, they rather re-distribute parts of the task in hand to the lover level Soldiers (simple functions/standard library functions) that have no choice but just to do the s..t (task in hand) and report back to the Sergeant with the result, who in his order reports back to the General (Main). Then in some complex cases Sergents can “share” some soldiers (but this one will come on the later programs).@Fahd and his artful house-drawing skills.
    image
    (Well I let you be judges on just how “artful” is this). In Fahd’s version (that I have slightly developed – must be the drawing insiration!!) the C Program is a House with many apartments (round for some reason haha). The Main is the Door with the list of apartments (functions) limited number of floor plans some of which are single room and others are multi-rooms (function type=int,char.. + function complexity), its habitant names list (the order of function executions that always starts at the entrance –> Door=Main) and individual eccentricities (function parameters, that are specific to each scope).Don’t know about you but I definitely like it better explained this way :)))
_CHALLENGES:
Challenge#1. SCHEDULE! This one seems to be in a consistent fail/retry state. If you have read my D-minus posts you might have seen the initial version of the schedule that I have naively defined for myself
  • Wake up at 6.30 a.m.
  • Morning sport session till around 7.30 a.m.
  • Healthy breakfast on my lovely balcony to be finished by 8.00 a.m.
  • School 8.30 – 9.00  a.m. to 8 p.m (we will see how realistic will it be)
  • Writing time 8.30 p.m. to 9.30 p.m.
  • Yoga session 9.30 to 10 p.m
  • Food preparation for the next day
  • And hopefully 8 hours of healthy recovering sleep from 22.30 to 6.30
Revised schedule
  • Wake up at 6.30 a.m.
  • Morning sport session till around 7.30 a.m.
  • Healthy breakfast on my lovely balcony to be finished by 8.00 a.m.
So the first 50% are good, but all that comes after that is hardly realistic as it seems. So ammended (optimistic again) version is the following 
  • School 8.30 – 9.00  a.m. to 10 p.m
  • Writing time 6.30 a.m. to 7.00 a.m & 23.00 p.m. to 23.30 p.m.
  • Yoga session 23.30 to 00.0O a.m
  • And hopefully 4-7 hours of sleep (hopefully healthy recovering) from 22.30 to 6.30
On this part I must precise that my schedule is not a typical version of a Swimmer as I don’t sleep at 42. But I will surely write about this one very soon.
_SPECIAL COMMENTS: 0 entries (system maintenance, check again later/the geeks for “no inspiration”)
#PEOPLE
PEER NEIGHBOURS
On the yesterdays note, that was not complete due to my memory limitations I do start (or rather continue) ont the list of our E2R1P8-14/E2R2P17-23/E2R3P15-21-Family (or as I prefer to call it “My Snowwhite’s Kingdom”) is getting new members (I let you find the synonym to members. I assume you read the Snow White? haha). So the names I forgot yesterday and some new citizens of the area @Maxim, @Damien, @Fadh (welcome to the newby), @Victor, @Paul (and here goes my 5 names limit again haha)
STUDENTS
@Victorian (and the memorable batman slapping screen saver… well, thuth be told, he was a great help with the C logic and some difficult tips) @Antoine/amineau @Paul/pcrosnie @Nicolas/nflores (3 more lucky vinners of the “Exaplan C to Ekaterina” contest haha 😃
And as usual
_QUOTE OF THE DAY:
 “If there’s anything more important than my ego around, I want it caught and shot now.” ― The Hitchhiker’s Guide to the Galaxy

 

Leave a comment