<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>cpp-2 &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/cpp-2/</link>
	<description>Feed of posts on WordPress.com tagged "cpp-2"</description>
	<pubDate>Fri, 24 May 2013 13:16:05 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Courtney's Story, Tuesday and getting outside my own mind and into the sun]]></title>
<link>http://reflectaton.wordpress.com/2012/02/22/courtneys-story-tuesday-and-getting-outside-my-own-mind-and-into-the-sun/</link>
<pubDate>Wed, 22 Feb 2012 00:20:04 +0000</pubDate>
<dc:creator>reflectaton</dc:creator>
<guid>http://reflectaton.wordpress.com/2012/02/22/courtneys-story-tuesday-and-getting-outside-my-own-mind-and-into-the-sun/</guid>
<description><![CDATA[I wanted to write a poem but it came out as a series of notes on what was going on in the chaotic cl]]></description>
<content:encoded><![CDATA[<p>I wanted to write a poem but it came out as a series of notes on what was going on in the chaotic classroom Courtney worked in.</p>
<p>they are from the teacher&#8217;s perspective.</p>
<p>From my perspective as a teacher, parachuting myself into this situation.</p>
<p>problematic as I haven&#8217;t met the students, school, it&#8217;s all imagined!</p>
<p>Here we go&#8230;.</p>
<p><strong>First impressions:</strong></p>
<p>Gossip, noise</p>
<p>An Optical challenge, darting eyes</p>
<p>Attention isn&#8217;t centred on me!</p>
<p>Is this chaos?</p>
<p>When can I start the class?</p>
<p>How can I start this thing?</p>
<p>Who am I? What are we doing today?</p>
<p>Who are you all and what are you doing here?</p>
<p>Are your brains gonna fire on this subject?</p>
<p><strong>Class make-up:</strong></p>
<p>Attention seeker</p>
<p>Inferiority Complex</p>
<p>Revenge Seeker</p>
<p>I&#8217;ll recognise you over the next few weeks!</p>
<p>Will I recognise my approach to learning alongside you?</p>
<p>Do I have an approach that includes your learning?</p>
<p>Let&#8217;s hope I take the time to answer these questions pronto!</p>
<p><strong>Lesson Plan:</strong></p>
<p>Prejudice is the buzz word</p>
<p>Put it on the whiteboard and go to auto mode&#8230;.?</p>
<p>Or connect with students?</p>
<p>That means I&#8217;ll have to take a risk&#8230; oh no!</p>
<p>tick</p>
<p>tick</p>
<p>tick</p>
<p>fast forward</p>
<p><strong>Chewing the concept:</strong></p>
<p>Tell us:</p>
<p>Who&#8217;s a dag? Who&#8217;s a snag?  Who&#8217;s a winner? Who&#8217;s a loser?</p>
<p>With your list tell us: where did they grow up, what do they eat for breakfast, what do they believe, what do they do for fun?</p>
<p>Reflect can we know all this or are we inventing it?</p>
<p>Do the same exercise for TV characters or tv personalities?</p>
<p>So what are the groups/products/ interests/ categories that set you off on a prejudice track?</p>
<p>Alternatively &#8211; what/who have you and friends been discussing lately?</p>
<p>How do you automatically shape this person/ thing?</p>
<p>Quick responses! Shout em out!</p>
<p><strong>Wrap up</strong></p>
<p>What does prejudice say about me? Nothing? Something?</p>
<p>How have my prejudices changed?</p>
<p>Can I become aware of prejudice?</p>
<p>How?</p>
<p>What are five situations where prejudice can affect an outcome?</p>
<p>How do we counter this?</p>
<p><strong>Reflection</strong></p>
<p>In practice the self-examination may occur before entering the classroom at &#8216;First Impressions&#8217;. I have not shown in this passage the possible responses or lack of response from students and in particular how labelled &#8216;misbehavers&#8217; will act and how I will respond to them.</p>
<p>These are lesson ideas addressed to myself, and now need to be  reviewed in light of learning styles, key misbehaviour and other headings as yet unknown&#8230;.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Rise to and from the challenge]]></title>
<link>http://reflectaton.wordpress.com/2012/02/18/rise-to-and-from-the-challenge/</link>
<pubDate>Sat, 18 Feb 2012 05:09:09 +0000</pubDate>
<dc:creator>reflectaton</dc:creator>
<guid>http://reflectaton.wordpress.com/2012/02/18/rise-to-and-from-the-challenge/</guid>
<description><![CDATA[ASSUMPTIONS? unsettling behaviour Challenge CHALLENGING? My initial recollections of classrooms don]]></description>
<content:encoded><![CDATA[<h1><span style="color:#00ff00;">ASSUMPTIONS?</span></h1>
<p><span style="color:#993300;">unsettling behaviour</span></p>
<p><span style="color:#993300;">Challenge</span></p>
<p><span style="color:#993300;">CHALLENGING?</span></p>
<p>My initial recollections of classrooms don&#8217;t throw up a lot of examples of unsettling behaviour.</p>
<p>The rich catalogue of spirited family conversations more than compensates for this rather staid school world.</p>
<p>So let me consider times I&#8217;ve observed family members behave in unsettling ways.</p>
<dl>
<dt><img title="You Suck! Leave me/us alone!" src="http://www.child-abuses.com/wp-content/uploads/2011/06/Sibling-Abuse1.jpg" alt="" width="250" height="200" /></dt>
</dl>
<h2>I have brought assumptions to the table when observing these moments.</h2>
<p>L I K E&#8230;.</p>
<ul>
<li>the mental health of the household is more important than any needs of this snarling person I&#8217;m observing;</li>
<li>This person doesn&#8217;t <span style="text-decoration:underline;">deserve</span> money and attention; they should earn it, &#8216;behave well&#8217;;</li>
<li>We <span style="text-decoration:underline;">deserve</span> to be free of fear in this household, free of stomach churning when we see hear the scary person.</li>
<li>We should protect younger siblings;</li>
<li>Younger siblings should look up to older siblings;</li>
</ul>
<h2>Where did the assumptions come from?</h2>
<p>Certainly how I grew up and the repeated messages and norms being passed on to me by key family members. They stressed rights, respect, non-violence, non-degrading speech and a willingness to support other family members.</p>
<p>The clichés about sibling relationships I drew from popular discourse, with a bit of reinforcement from peer discourse.</p>
<h2>How could I respond when someone appeared to contravene these norms regularly!</h2>
<p>Looking back now the senior members of the household took an approach similar to the  interactionist model of classroom management.  That&#8217;s to say they tried direct communication, deal in the present and showing the normal and logical consequences of the actions.</p>
<p>It rarely worked.</p>
<p>Normal and logical consequences of the actions were swept aside by the subject. They used intimidation and violence to dismiss any attempts at moulding behaviour through deployment of logical consequences. They exercised power and were, as the tabloids might say, beholden unto themselves (their authority) alone.</p>
<p>The lesson here is that logical consequences take time and effort to implement.</p>
<p>AND that approaching the problem through lens other than interactionist would be worthwhile.</p>
<h2>My assumptions were certainly challenged.</h2>
<p>Those about ideal sibling interaction were exposed for what they were, cliché.</p>
<p>What&#8217;s more, those stemming from the norms of my family household were also challenged. How to confront this behaviour when there&#8217;s little buy-in to the rights and responsibilities; when there&#8217;s a refusal of logical consequences etc?</p>
<p>I&#8217;ll be interested to find out what Glasser would recommend here but this is a family story, not a classroom story so the case doesn&#8217;t have the same appearance as the classroom challenges destined for our pigeon holes.</p>
<p>nOtE to self &#8211; these models of behaviour are a great way of analysing old memories.</p>
<p>Next stop on Reading bus &#8230; Non-interventionism and giving students the reins for setting their own goals and building skills that interest them.</p>
<div class="mceTemp"></div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[An Influential Teaching Figure...]]></title>
<link>http://jeremybotha.wordpress.com/2012/02/16/an-influential-teaching-figure/</link>
<pubDate>Thu, 16 Feb 2012 04:35:01 +0000</pubDate>
<dc:creator>Jeremy</dc:creator>
<guid>http://jeremybotha.wordpress.com/2012/02/16/an-influential-teaching-figure/</guid>
<description><![CDATA[During my early days of high school I met a teacher who was to teach me mathematics. He seemed a ver]]></description>
<content:encoded><![CDATA[During my early days of high school I met a teacher who was to teach me mathematics. He seemed a ver]]></content:encoded>
</item>
<item>
<title><![CDATA[Assumptions: Sammy L Jackson's Favourite]]></title>
<link>http://graddipseced2012.wordpress.com/2012/02/15/assumptions/</link>
<pubDate>Wed, 15 Feb 2012 06:52:15 +0000</pubDate>
<dc:creator>annanw</dc:creator>
<guid>http://graddipseced2012.wordpress.com/2012/02/15/assumptions/</guid>
<description><![CDATA[Everyone comes into a situation with their own set of assumptions, informed by their opinions, exper]]></description>
<content:encoded><![CDATA[Everyone comes into a situation with their own set of assumptions, informed by their opinions, exper]]></content:encoded>
</item>
<item>
<title><![CDATA[Assumptions about classroom management ]]></title>
<link>http://becomingajuggler1.wordpress.com/2012/02/15/assumptions-about-classroom-management/</link>
<pubDate>Wed, 15 Feb 2012 00:17:55 +0000</pubDate>
<dc:creator>Lee Brown</dc:creator>
<guid>http://becomingajuggler1.wordpress.com/2012/02/15/assumptions-about-classroom-management/</guid>
<description><![CDATA[As I was reading Steve’s online lecture I found myself thinking about a very similar situation I had]]></description>
<content:encoded><![CDATA[<p>As I was reading Steve’s online lecture I found myself thinking about a very similar situation I had with a student when I was teaching in the UK. I previously worked as a cover supervisor in a secondary school; I was employed on a full time basis by the school and my role was to cover Physical Education lessons when teachers were absent.</p>
<p>When a teacher went on long term leave and they could not find a suitable replacement I took over most of his classes and there was one year 8 boys class that I particularly enjoyed teaching, however there was a student in there called Jordan who really tested me.</p>
<p>In this particular year 8 class nobody was fantastic at PE although they all tried really hard, turned up in full kit each week and gave 110%, and in my views you cannot ask for any more. However Jordan would turn up with half a kit, a really bad attitude and he would constantly disrupt the class in every single lesson. Each week he would talk when I was talking, kick balls away, throw things at other students until I snapped and I either made him sit out, move classes, attend detention or call home, and yet still nothing changed.</p>
<p>I talked to other teachers about Jordan and they advised me that “all of his older brothers were the same” and “not to waste my time” but the main thing I took from his head of year was that Jordan played Rugby for county, which is the same as playing state in Australia.</p>
<p>Armed with this information the next Rugby class that I took I called Jordan to the front and I got him to demonstrate how to tackle, thanked him and got the class to give him a round of applause, the next lesson I got Jordan to do another demonstration and I continued to do this. Once Jordan became involved he stopped disrupting and because of his exceptional talent he actually became an asset to the class and to the other pupils.</p>
<p>Whenever I have reflected on my achievement of ‘mastering’ Jordan in class and getting him not disrupt and participate in lessons I have always believed that it was because I made him feel part of the lesson and got him ’on my side.’ However after reading Steve’s lecture I now realise that it is not something that I did right to ‘manage’ Jordan’s behavior, but it was my initial mistake of ‘engaging in a power struggle with him’ that caused the issue in the first place.</p>
<p>I can now see that because I was young and I had no formal teacher qualification I used to be an interventionist and I would set rules and expect that everybody followed my orders and when somebody (Jordan) questioned me or shouted out, rather than respond in an appropriate manner I would see it as a challenge on my authority and I would engage in a power struggle.</p>
<p>Although I have studied some models of classroom management I am still unclear as to what type of category I would like to fall into, however on reflection I can see that I will be staying clear of an authoritative interventionist.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Want to know who I am? Listen to the story]]></title>
<link>http://reflectaton.wordpress.com/2012/02/11/want-to-know-who-i-am-listen-to-the-story/</link>
<pubDate>Sat, 11 Feb 2012 08:34:04 +0000</pubDate>
<dc:creator>reflectaton</dc:creator>
<guid>http://reflectaton.wordpress.com/2012/02/11/want-to-know-who-i-am-listen-to-the-story/</guid>
<description><![CDATA[The preparation that Steve offered us as listeners was important to the product we took in. A text e]]></description>
<content:encoded><![CDATA[<p>The preparation that Steve offered us as listeners was important to the product we took in.</p>
<p>A text exists, it is related and transformed in the relating.</p>
<p>It is heard and transformed by the  hearer and the context impacts on the text also.</p>
<p>Our context included sitting in a big lecture room, surrounded by some strangers and some acquaintances, all with one thing in common.</p>
<p>&#160;</p>
<p>What do I think about the characters?</p>
<p>Horse of power &#8211; that ideal embodiment of a guide: the one who holds power and uses it to good ends.</p>
<p>Firebird &#8211; Is the firebird just a vehicle for the archer&#8217;s journey of self-discovery?</p>
<p>Perhaps the firebird is a metaphor for any noise that we find on our doorstep in life? Noise in our personal lives or in our work. We have to identify and filter noise, but there&#8217;s no rush. For teachers who are confronted with noise, like a colleague telling you not to neglect a command or  a catchcry, the challenge is to do the filtering ourselves. The firebird in the story reinforces the maxim that we benefit from making our own judgements</p>
<p>Czar -  reminds me of the song &#8220;Everybody Must Get Stoned&#8221;. Part of growing up is spending less energy trying to please people.</p>
<p>Princess: -  message of the week is make your own money so you can decide whether to accept roles in fairy tales that dumb down the complexity of your character. Or you could decide to avoid being a folk tale icon all together and focus on your academic or other career.</p>
<p>&#160;</p>
<p>They&#8217;re the thoughts, now as the bus driver says &#8220;Sit back, relax and enjoy the trip&#8221;.</p>
<p>catch you later.</p>
<p>&#160;</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[A Teaching Inspiration]]></title>
<link>http://becomingajuggler1.wordpress.com/2012/02/11/a-teaching-inspiration/</link>
<pubDate>Sat, 11 Feb 2012 01:13:21 +0000</pubDate>
<dc:creator>Lee Brown</dc:creator>
<guid>http://becomingajuggler1.wordpress.com/2012/02/11/a-teaching-inspiration/</guid>
<description><![CDATA[The reason that I aspire to become the teacher that I have previously outlined is due to an old Phys]]></description>
<content:encoded><![CDATA[<p>The reason that I aspire to become the teacher that I have previously outlined is due to an old Physical Education teacher. I was taught at a public school that placed winning and being successful at the top of the agenda. As I was quite athletic and competitive I did not mind this, however many of my friends felt awkward and uncomfortable when they were in a PE lesson.</p>
<p>In year 9 a new teacher came into the school and he changed the way in which all of the classes were taught. He would include everybody in all of the lessons and initially the pupils that were not interested in sport would not participate, however as the term progressed he began to assign ‘jobs’ to each and every pupil that utilised their skills and made them feel involved.</p>
<p>He created roles as coaches, managers, officials, equipment managers, facility managers, event organisers  and everybody had their role to play in each of the lessons and each pupil felt included and part of the team. In addition to this the teacher would appease the school views of ‘winning’ by taking a very different approach to how he taught extracurricular sports teams, as he would really focus his energy on creating a successful team.</p>
<p>I am still in contact with my old teacher and he really inspired me and also enabled me to become successful and fill my potential,  if I could emulate his achievements as a teacher then I would be very pleased.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Becoming Mr Brown]]></title>
<link>http://becomingajuggler1.wordpress.com/2012/02/11/hello-world/</link>
<pubDate>Sat, 11 Feb 2012 00:57:30 +0000</pubDate>
<dc:creator>Lee Brown</dc:creator>
<guid>http://becomingajuggler1.wordpress.com/2012/02/11/hello-world/</guid>
<description><![CDATA[When looking at the nine provocations of teaching I found myself to be most drawn to the question “w]]></description>
<content:encoded><![CDATA[<p>When looking at the nine provocations of teaching I found myself to be most drawn to the question “what kind of teacher do I want to be?”  This is a question that I have been asking myself since I decided that I wanted to become a teacher.  For me the answer is I aim to be an inclusive teacher who teaches children to reach THEIR full potential, regardless of initial ability or skill.</p>
<p> As a pre service PDHPE teacher I think that all too often Physical Education teachers obtain a reputation that they only cater for those who are athletically elite and interested in sport. However I believe that as a teacher it is my responsibility to make the lessons interesting and to engage all of the children.</p>
<p> We see science teachers who create laboratory experiments to engage children who maybe don’t understand or remember formulas by writing them down but by physically creating the formulas. If this is the case then why can’t this principal of utilising different teaching strategies be employed in PDHPE to promote Physical Education to all children?</p>
<p>Which leads me onto the next question “will I be allowed to be the teacher that I want to be?” I think that the answer to the questions is&#8230;I honestly don’t know! I believe that if I secure a job in a sports academy or a school that has a strong ethos on winning then I would not be allowed to become the teacher that I want to be. Furthermore I feel that I might have to concentrate my efforts of enriching the already talented children, in order to reinforce and maintain a ‘winning culture’ within the school.</p>
<p>On the other hand if I were employed by a school that was proud of a ‘sports for all’ and an inclusive attitude then I would be allowed to flourish and become the teacher that I want to be. Ultimately I feel that these are questions that I will have to ask myself when I am looking for a position as a PDHPE teacher.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Has to be lucky Seven]]></title>
<link>http://reflectaton.wordpress.com/2012/02/10/has-to-be-lucky-seven/</link>
<pubDate>Fri, 10 Feb 2012 04:15:28 +0000</pubDate>
<dc:creator>reflectaton</dc:creator>
<guid>http://reflectaton.wordpress.com/2012/02/10/has-to-be-lucky-seven/</guid>
<description><![CDATA[Lucky Seven, lucky strike, strike team. It&#8217;s enough to make you want to go bowling and this ur]]></description>
<content:encoded><![CDATA[<p>Lucky Seven, lucky strike, strike team.</p>
<p>It&#8217;s enough to make you want to go bowling and this urge disarms me very rarely.</p>
<p>So Provocation number seven states &#8220;Should we teach Subjects or students?&#8221;</p>
<p>&#160;</p>
<p>My initial response to this provoc is why is the question addressed to &#8216;we&#8217;?</p>
<p>The other provocs are addressed to &#8216;me&#8217;.</p>
<p>Ie what would/ will I do in my teaching practice?</p>
<p>&#160;</p>
<p>&#160;</p>
<p>Coming back to subjects versus students, attributes of in-depth learning include actions that pitch on both sides of the court (Hattie 2003).</p>
<p>On the subject side, teachers&#8217; deep representation of the subject allows classroom exploration to move within a framework and rewards students&#8217; independent inquiry.</p>
<p>On the student side, teachers provide feedback, challenging tasks to students, they respect students and encourage them to extend their ideas. This is nurturing talent or influencing achievement.</p>
<p>&#160;</p>
<p>So we should teach subjects -  knowing not just the subject or a specific aspect of the subject in detail, but being able to read a subject from various perspectives and open it up to allow students to project understanding and questions onto a field of enquiry.</p>
<p>Keeping this field open, moving around it flexibly and allowing students to make ever more complex links between the actors and concepts, this requires teachers to put trust in the learner&#8217;s ability</p>
<p>. So subjects matter but it&#8217;s not a case of presenting categorical truths a la Websters 177? Dictionary, it&#8217;s a question of letting students run free inside the museum that contains as wide a range of perspectives on the subject as possible&#8230; and guiding them around.</p>
<p>&#160;</p>
<p>And we should teach students. An essential step to powering up their learning is finding out their background, ability and motivation.</p>
<p>If you were a financial advisor meeting a client for the first time, wouldn&#8217;t you be looking for the same stuff as a departure point?</p>
<p>&#160;</p>
<p>Refs:</p>
<p><span style="text-decoration:underline;"><br />
</span></p>
<p><a>Hattie, J. (2003). Teachers make a difference: What is the research evidence? In, Australian Council for Education Research Conference, Melbourne, Australia. Retrieved from Educational Leaders website.</a></p>
<div></div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[observations]]></title>
<link>http://gemapples.wordpress.com/2012/02/09/hello-world/</link>
<pubDate>Thu, 09 Feb 2012 04:42:51 +0000</pubDate>
<dc:creator>gemapples</dc:creator>
<guid>http://gemapples.wordpress.com/2012/02/09/hello-world/</guid>
<description><![CDATA[Over the sixteen years I spent in various schools, I have amassed so many vivid memories of teachers]]></description>
<content:encoded><![CDATA[<p>Over the sixteen years I spent in various schools, I have amassed so many vivid memories of teachers, both positive and negative, but given that one of the major themes I have taken from this week has been the importance of active reflection and of developing a critical mind, I have chosen to write about a teacher who for me exemplifies these very important aspects of education.</p>
<p>As an undergraduate student at a small liberal arts college, I took a class in cultural anthropology called “Race and Ethnicity in a Global Perspective” and as the name would suggest, the subject matter was sensitive. Most students had some sort of past experience (or at least some sort of preconceived notion) relating to racial or ethnic differences. But this class ended up being the single most life-changing class I took over the course of my degree.</p>
<p>The professor of this class was uniquely engaging. He seemed to just have a special quality that made people want to listen. Perhaps more importantly, he was an extremely good listener and when the class meeting took the form of a discussion he encouraged our participation. When we shared our thoughts and opinions he always responded in a way that let us know he fully understood us. His knowledge in his field was evident, but I felt that the class was just as much a learning experience for him as a teacher it was for us as students.</p>
<p>The challenge set forth by this professor was no small task. He aimed to systematically deconstruct many things that we took for granted, and in doing so, help us to develop a more critical mind. Through this class I learned that with challenge comes great potential. What allowed this particular teacher to create such a positive experience for me was that he felt that the roles of student and teacher were not opposite, it was not a hierarchical relationship and there was no value judgement that ensued from either of these assumptions. Both deserve respect and want to be listened to and to be understood. And most of all, teacher and student were both learning, teaching and evolving together.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Decoupling]]></title>
<link>http://palethorn.wordpress.com/2011/12/21/decoupling/</link>
<pubDate>Tue, 20 Dec 2011 22:28:30 +0000</pubDate>
<dc:creator>palethorn</dc:creator>
<guid>http://palethorn.wordpress.com/2011/12/21/decoupling/</guid>
<description><![CDATA[Someone asked me what can he do with interfaces and abstract classes. Plenty of fun there as we shal]]></description>
<content:encoded><![CDATA[Someone asked me what can he do with interfaces and abstract classes. Plenty of fun there as we shal]]></content:encoded>
</item>
<item>
<title><![CDATA[Konversi Suhu di C++ [sederhana]]]></title>
<link>http://frebutrilangga.wordpress.com/2011/02/19/konversi-suhu-di-c-sederhana/</link>
<pubDate>Sat, 19 Feb 2011 01:30:45 +0000</pubDate>
<dc:creator>Frebu Trilangga</dc:creator>
<guid>http://frebutrilangga.wordpress.com/2011/02/19/konversi-suhu-di-c-sederhana/</guid>
<description><![CDATA[Jika sebelumnya pada postingan-postingan ku banyak membahas bahasa pemrogaman java. Sekarang semenja]]></description>
<content:encoded><![CDATA[<p>Jika sebelumnya pada postingan-postingan ku banyak membahas bahasa pemrogaman java. Sekarang semenjak semester ke dua ini, saya lebih mengedepankan postingan-postingan yang berbau CPlusPlus. Karena pada semester kedua ini, saya kebetulan mendapatkan mata kuliah Dasar Pemrogaman Komputer. Dalam mata kuliah ini, bahasa yang digunakan yaitu bahasa C++. Untungnya antara bahasa Java dan C++ tidak terdapat perbedaan yang sangat jauh. Mungkin, karena bahasa Java sendiri banyak diadopsi dari C++.</p>
<p>Untuk postingan pertama yang bertemakan C++, saya mulai dengan program pengkonversi suhu dari Celcius ke Fahrenheit,Kelvin dan Reamur. Pada program ini, jenis suhu yang dijadikan masukan hanya Celcius saja.<br />
<!--more--><br />
Langsung saja, ini kode programnya :</p>
<pre class="brush: cpp; title: ; notranslate" title="">
#include &#60;iostream.h&#62;
#include &#60;conio.h&#62;

void main(){
float celc, fahr, rea, kelv;
cout&#60;&#60;&#34;==============================================\n&#34;;
cout&#60;&#60;&#34;    PROGRAM KONVERSI SUHU DARI CELCIUS KE :   \n&#34;;
cout&#60;&#60;&#34;        FAHRENHEIT &#124; REAMUR &#124; KELVIN          \n&#34;;
cout&#60;&#60;&#34;==============================================\n&#34;;
cout&#60;&#60;&#34;Masukkan suhu dalam celcius = &#34;;
cin&#62;&#62;celc;
/////
fahr = (celc*1.8) + 32;
rea  =  celc * 0.8;
kelv = celc + 273.15;
/////
cout&#60;&#60;&#34;=============================================\n&#34;;
cout&#60;&#60;&#34;              HASIL KONVERSI SUHU            \n&#34;;
cout&#60;&#60;&#34;=============================================\n&#34;;
cout&#60;&#60;&#34;FAHRENHEIT  =  &#34;&#60;&#60;fahr&#60;&#60;endl;
cout&#60;&#60;&#34;REAMUR      =  &#34;&#60;&#60;rea&#60;&#60;endl;
cout&#60;&#60;&#34;KELVIN      =  &#34;&#60;&#60;kelv&#60;&#60;endl;
cout&#60;&#60;&#34;=============================================\n&#34;;
getche();

}
</pre>
<p>Screenshoot :</p>
<div id="attachment_331" class="wp-caption alignleft" style="width: 679px"><a href="http://frebutrilangga.files.wordpress.com/2011/02/screenhunter_01-feb-19-08-25.jpg"><img class="size-full wp-image-331" title="ScreenHunter_01 Feb. 19 08.25" src="http://frebutrilangga.files.wordpress.com/2011/02/screenhunter_01-feb-19-08-25.jpg?w=669&#038;h=338" alt="" width="669" height="338" /></a><p class="wp-caption-text">Gambar1</p></div>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<div id="attachment_332" class="wp-caption alignleft" style="width: 679px"><a href="http://frebutrilangga.files.wordpress.com/2011/02/screenhunter_02-feb-19-08-25.jpg"><img class="size-full wp-image-332" title="ScreenHunter_02 Feb. 19 08.25" src="http://frebutrilangga.files.wordpress.com/2011/02/screenhunter_02-feb-19-08-25.jpg?w=669&#038;h=338" alt="" width="669" height="338" /></a><p class="wp-caption-text">Gambar 2</p></div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Namespaces in c++]]></title>
<link>http://palethorn.wordpress.com/2011/01/22/namespaces-in-c/</link>
<pubDate>Sat, 22 Jan 2011 00:15:00 +0000</pubDate>
<dc:creator>palethorn</dc:creator>
<guid>http://palethorn.wordpress.com/2011/01/22/namespaces-in-c/</guid>
<description><![CDATA[Disecting namespaces What are namespaces? Why use namespaces? Namespaces are segments of code which]]></description>
<content:encoded><![CDATA[Disecting namespaces What are namespaces? Why use namespaces? Namespaces are segments of code which]]></content:encoded>
</item>
<item>
<title><![CDATA[Merge sort]]></title>
<link>http://palethorn.wordpress.com/2011/01/08/merge-sort/</link>
<pubDate>Sat, 08 Jan 2011 00:54:46 +0000</pubDate>
<dc:creator>palethorn</dc:creator>
<guid>http://palethorn.wordpress.com/2011/01/08/merge-sort/</guid>
<description><![CDATA[This post will be about merge sort algorithm, solved of course. It&#8217;s fascinating to me because]]></description>
<content:encoded><![CDATA[This post will be about merge sort algorithm, solved of course. It&#8217;s fascinating to me because]]></content:encoded>
</item>
<item>
<title><![CDATA[Class inheritance in c++]]></title>
<link>http://palethorn.wordpress.com/2010/11/30/class-inheritance-in-c/</link>
<pubDate>Mon, 29 Nov 2010 22:13:46 +0000</pubDate>
<dc:creator>palethorn</dc:creator>
<guid>http://palethorn.wordpress.com/2010/11/30/class-inheritance-in-c/</guid>
<description><![CDATA[Another post in series of object oriented programming posts. Here will be discussed about class inhe]]></description>
<content:encoded><![CDATA[Another post in series of object oriented programming posts. Here will be discussed about class inhe]]></content:encoded>
</item>
<item>
<title><![CDATA[Using constructors and destructors in c++]]></title>
<link>http://palethorn.wordpress.com/2010/11/04/using-constructors-and-destructors-in-c/</link>
<pubDate>Wed, 03 Nov 2010 23:06:17 +0000</pubDate>
<dc:creator>palethorn</dc:creator>
<guid>http://palethorn.wordpress.com/2010/11/04/using-constructors-and-destructors-in-c/</guid>
<description><![CDATA[Brief post about adding constructors and destructors in your classes. Lets say you want to create an]]></description>
<content:encoded><![CDATA[Brief post about adding constructors and destructors in your classes. Lets say you want to create an]]></content:encoded>
</item>
<item>
<title><![CDATA[Writing classes and creating objects in c++]]></title>
<link>http://palethorn.wordpress.com/2010/10/24/writing-classes-and-creating-objects-in-c/</link>
<pubDate>Sun, 24 Oct 2010 21:13:12 +0000</pubDate>
<dc:creator>palethorn</dc:creator>
<guid>http://palethorn.wordpress.com/2010/10/24/writing-classes-and-creating-objects-in-c/</guid>
<description><![CDATA[This will be lengthy post since it explains class elements, how to write them and how to create obje]]></description>
<content:encoded><![CDATA[This will be lengthy post since it explains class elements, how to write them and how to create obje]]></content:encoded>
</item>
<item>
<title><![CDATA[Introduction to classes and objects]]></title>
<link>http://palethorn.wordpress.com/2010/10/13/classes-and-objects-introduction/</link>
<pubDate>Wed, 13 Oct 2010 15:10:48 +0000</pubDate>
<dc:creator>palethorn</dc:creator>
<guid>http://palethorn.wordpress.com/2010/10/13/classes-and-objects-introduction/</guid>
<description><![CDATA[It&#8217;s not a very subtle way to begin with writing a beginners programming tutorial, so this is]]></description>
<content:encoded><![CDATA[It&#8217;s not a very subtle way to begin with writing a beginners programming tutorial, so this is]]></content:encoded>
</item>
<item>
<title><![CDATA[Factors affecting C++ Compilation time - How to reduce them]]></title>
<link>http://mikaelsitruk.wordpress.com/2010/08/11/speeding-up-cpp-compilation/</link>
<pubDate>Wed, 11 Aug 2010 20:38:48 +0000</pubDate>
<dc:creator>Mikael S</dc:creator>
<guid>http://mikaelsitruk.wordpress.com/2010/08/11/speeding-up-cpp-compilation/</guid>
<description><![CDATA[Well, I never figured out to myself that I will write a C++ article when my main specialization is J]]></description>
<content:encoded><![CDATA[<p>Well, I never figured out to myself that I will write a C++ article when my main specialization is Java. Anyway during the last three years I&#8217;m involved in a cross discipline project involving JAVA and C++.</p>
<p>In this project a JAVA generator generates millions of lines of C++ code which of course have to be compiled, and if you are a C++ guy you certainly already have your hair standing on your head because of the time it will require to compile such huge amount of code. Well you are right, we faced extremely long compilation time (12+ hours in Unix, in windows&#8230;), which are major problem in a product that should have a quick time to market.</p>
<p>Worst, the product is used both under Windows and Unix platforms, which means that a solution need to be created for both worlds.</p>
<p>Under Windows &#8211; even with the usage of <strong>Incredibuild </strong>from <a title="Xoreax" href="http://www.xoreax.com">Xoreax </a>(a great grid compiler platform which allowed to reduce considerably the compilation time), the user still needed to wait 2 hours for compilation, which was not acceptable.</p>
<p>Under Unix &#8211; no grid compiler (unless you work only on few platform), we tried to use <strong>distcc </strong>but the results were still not satisfying and you need additional hardware. We where stuck&#8230;</p>
<p>Therefore we begun a research for an alternative that could speed up the builds, and for that we needed to understand the factor that affected compilation time, our main suspicious factor was the number of lines of code to compile, since the code was generated, it was very easy to inflate the output nevertheless we soon understood that we were wrong&#8230;</p>
<p>Below are factors impacting the compilation time (according to their impact)</p>
<ol>
<li><strong>In the first place the number of files to compile</strong> &#8211; this is one of the <span style="color:#0000ff;"><em>major factor</em></span> affecting compilation time, the compiler is not really smart at reusing information it processed between invocation and is not able either to work on a set of files, and it is especially slow (I/O bound) for building dependencies. If you want to really reduce the compilation time reduce the number of file to compile, and it does not mean to write all in a single file, you can use what is called <a title="Unity Build" href="http://buffered.io/2007/12/10/the-magic-of-unity-builds/">Unity Build</a>.<br />
A Unity Build group several cpp files in a single one using just the include directive. For example let say you want to compile file1.cpp to file 10.cpp then create a new file group.cpp as follow:</p>
<pre class="brush: cpp; title: ; notranslate" title="">
#include &#34;file1.cpp&#34;
#include &#34;file2.cpp&#34;
#include &#34;file3.cpp&#34;
..
..
#include &#34;file10.cpp&#34;
</pre>
<p>Now compile <em>group.cpp </em>and don&#8217;t forget to add the <em>file1.cpp</em>&#8230;<em>file10.cpp</em> location as include path<em>.<br />
</em>This method produces miracle (of course you have to balance the number of files you put in a single group/unity). Our compilation reduced from 15 hours to just 2.</li>
<li><strong>Include paths</strong> &#8211; large number of include path directly affect the build time, since the compiler (or pre-compiler) need to scan all the path until it find the requested include. So try to minimize them or at least organize the path list according to the most searched one.</li>
<li><strong>NAS (Network Attached Storage)</strong> also has a bad impact on the compilation (write is usually fast, but read is slow so library creation is slow).</li>
<li><strong>Generate cppdep and compile on the same time</strong> &#8211; unix compilers support option to create cppdep file and compile at the same time you can save approx 20% of your compilation time.</li>
<li><strong>Forward declaration</strong>, also know as the &#8220;Pimpl idiom&#8221; to reduce dependency, greatly help, the problem is that you cannot always refactor the code, to avoid some include that will erase your effort.</li>
<li><strong>Usage of template</strong> &#8211; using C++ template excessively increase compilation time and libraries volume (especially if the template is declared in header).</li>
<li><strong>Number of strings constants in a single file</strong>. It might should strange, but some compilers (HP and Sun at least) have a performance degradation when the compilation unit contains an large number of string (few thousand).<br />
<em><span style="color:#333399;">Note: Visual Studio compiler is not sensitive to this factor.<br />
</span></em></li>
<li><strong>Generic vs inflated code</strong> &#8211; using call to function or writing the content of function where you need them (like a forced &#8220;inline&#8221;). Inlining function in this way may produce better performance, but does not affect compilation time, as much as you think it affect. Effectively we reduced millions of lines of code by 75% using call to function instead of inlining their content, but we got no improvement in build time, but at least you gain more maintainable/debugable code.</li>
<li><strong>Usage of pre-compiled header</strong> might help, but from our test they did not, the compilation time was in fact increased.</li>
<li><strong>Usage of header cache folder</strong> &#8211; similarly to pre-compiled headers, should help (according to vendors) but from our test they most of the time do not.</li>
</ol>
<p>So if you really want to reduce your compilation time try Unity Build concept, you will gain in:</p>
<ol>
<li>Faster build time</li>
<li>Smaller objects size</li>
<li>Smaller libraries size</li>
<li>Better optimized code</li>
</ol>
<p><em>Note: The compilation time is related to the number of cpp files in a single Unity Build (and their dependencies), and this number should be tuned according to the included file content (inline, template usage, headers used&#8230;). If you have too much file in a single unity/group file compilation time increase back (still better than when no using group file), nevertheless the library size declines (even if the compilation time increased back).</em></p>
<p><em></em><br />
Mikael.Sitruk</p>
]]></content:encoded>
</item>

</channel>
</rss>
