Skip to main content

Posts

About loop statements

Well this is a very basic thing. This is about loop statements on a few programming language. First one is the language Java . That can't be easier than that. Second, C++ . Absolutely not a copy of Java one Looks extremely same. On the next, python This is a lot different from other languages. Its mostly because of python's special  language syntax, not much different from the logic. And more about python's loop, at the first line, it says for i in range(0, 6): . It seems logically, it should be in range(0, 5) to make it repeat to 5. But in python, range(x, y)  counts from x to y + 1, so keep this in mind. And python, doesn't have do {} while ()  statement. So instead, from this stackoverflow answer , there is a somewhat similar code in python. See the line 10, the while loop is infinite loop and it will run the code print k for the first time of the loop. And then, it checks the statement if k>= 5: and determines whether break the loo
Recent posts

About bitwise and bit shift operands

We are getting to know about Java's basics. Java has the bitwise operators. (which all other advanced programming language do either) There are several operands of them. Bitwise operators & opreator Performs an and calculation between data bits ^ opreator Performs an or calculation between data bits | opreator Performs a xor calculation between data bits ~ operator Inverts all data bits Bitshift operators << operator Shifts the bit pattern to the left >> operator Shifts the bit pattern to the right >>> operator Shifts the zero to the leftmost position These are the opreators. which is never used. Even the Java Documentation says these are "less commonly used". So just make sure you 'heard' of these exists. Check out more about these operators here: Official Java Documentation

About python's programmatic flow

Is python object-oriented ? - Yes. So does it follow the object-oriented style programmatic flow? Lets check out. Here I have a short python code. Let's see the 6th line. If we call the function above the function itself, it will return the error which looks like this; This occurs because its called above the repeat_lyrics(); 's initialization. So from this, we can comprehend that python is a object-oriented  language, but the programmatic flow  doesn't follow the object-oriented style flow . Its complicated to work with this, (this probably is a bad practice) just call all functions above the working code.

About string operands

Well known data type String is also available on Java. There are a lot of easy-to-use features on using String data type. But its little bit complicated on actually using them. Let me explain by some actual examples. As you see on the 4th line, if you put the calculating expression in front of the string (which is covered in quotes) and it will automatically return the calculated value of the expression and merge those two strings. The opposite seems to show the same output, but it doesn't. See the 5th line and you will see. The following expression 3 + 4 isn't calculated. Didn't know dem Its always good to know new things ;)

About function overloading

Function overloading is a feature in c++. Probably Java also has this feature c++ allows you to specify more than one function with same function names. And that's called function overloading. One thing to aware, all the functions overloaded should have same return data type. The thing can differ is the arguments on the function. The following example was wrote during the game programming class. Note that the return data type is same on all functions overloaded.

Presentation about Big Data X Traffic Jam

I forgot to write this post after the presentation This was a presentation project from science class. Started from my idea, which came from my daily life annoyed from traffic jams. And combined with the popular technology "Big Data", this idea came up with us. Received the best score from the presentation! Nailed it A lot of thanks to teammates, Ilhoon Lee and Jinyoung Choi. Probably the most prepared, and the best presentation of 2016. Average_Russian_driver.gif Simple explanation about the idea: We capture those flooding data from roads, analyse those data, provide to users. That will lead to less traffics, and it will lead to cars staying shorter on the streets. And finally, it will take part on slowing the earth rushing toward global warming. If you are interested more on this topic, please che

Book Report about Justice (by Michael J. Sandel)

Name: Justice: What's The Right Thing To Do? Author: Michael J. Sandel "Endless thoughts, endless choices. About Justice." Based on the Harvard college's lecture by Sandel, which is well known lecture for all students in the college. So, what is this book about? Its written on the book cover. Its about the justice. Then what is justice? And that is what this book is talking about. Different from other books talking about justice, this talks much understandable and interesting than other. Starting from the well known moral story "Workers on the railway", this book explains how justice is implemented in our society. I read nearly a few books in a year, this was the most interesting book I have read this year. This book let me know the happiness of reading something with deep thinking. The most unanswerable topic was related to the human being, it was "How much does a human cost?". I think this topic, the value of a human, shouldn't be calcu