Posts

Showing posts from December, 2014

Java Fun / Scope of Java

      It's said that Java is very popular and it has many advantages to it over other languages. But as a programmer why one should chose java? It's really important question and interesting one too. Let's have a look at Java scope and what can we achieve in Java and not in other languages? Easy:      First of all if you are aware of basic concepts of programming then its easy to understand this concept I'm gonna talk about. Java is Easy as i would call it. It's more like a software to create more software. That mean you don't have to think about every bit of code to write to achieve full functionality. You already have codes made and you just have to combine them all to make a software. For example if you want to make a game in any other language you will have to programmatically get every functionality even to find an image in computer and showing it on screen for once. That will require a lot of hard work on minor things. Libraries:      In Java you c

C++ Console : Color

Image
     It's obvious that in modern Graphical and Colored world of computer, it's kind of disappointment to work in weird looking console with black and white interface. But don't be disappointed about that. It's just the beginning. Software world has endless possibilities. Would you believe that you can even make whole game in console?? Yup, when i was introduced to programming via C++ console apps, i had no idea that it could be this much fun. I even wrote generic codes for some graphical stuff. It's really helpful in learning coding.      Let's see what is there to get colorized... There are 2 ways to get colored. One is to just make it all colored. Like green text with black background: Simple color:       But the problem with this type of coloring is that it is not very creative. You'll have only one color at a time. And that is the problem. We can't achieve multicolored interface. But on the other hand this is simple way to achieve colored in

Starting Java

Java is very handy and widely used language as per now. Why? well there are several aspects to it like Easy coding Cross-Platform Wide support in many devices Hence it is very useful to both, programmer and user. As it is easy so we can just about make anything in java. That's very powerful thing about java. Because it gives easy functionality via libraries to major computer functionality as follows GUI (Graphical User Interface) Audio (playing audio) Video (video play) Network (internet access) File Handling (working with files) Because these are some major functions that can get complex in other languages but in java we just have to tell it to do it and it handles rest of 99% of work itself. Very useful. Cross-Platform: What does that mean? it simply mean we can run java build programs on various machines, Linux, mac-OS, Windows etc. That mean you can make it's program in Windows and just give it to a mac-Os user and he will be able to run it just fin

Starting C++

C++ is very basic and old programming language. It gives programmer full control over computer and C++ program runs directly on computer processor hence it is fast. Developed from C language it is somewhat similar to it and somewhat better then C. Libraries:      Every programming language has many functions apart from user interaction and processor functions. For example handling various devices to get data from them and give them data to show to user. For ease to use these functions are provided in simplified form of standard libraries of code which is complex but we can use it by adding it to our program easily. For example to get user input we need to just insert a library called iostream (input output stream) in out program which has full functionality for input and output through keyboard and monitor. Similarly there is also a Math library which gives some functionality of complex mathematical topics like trigonometry (sin, cos, tan).      To include libraries in C++ pr