Skip to main content

Posts

Showing posts with the label Problem solving

What does it take to be a good competitive programmer?

The answer is simple but most of the programmer forget this thing, The Basics . I will take an example of myself and other new programmers. We start with C programming, at least most of the programmer does. I can tell about myself, when I started I was fascinated in the beginning, but then I wanted to create more programs with GUI. I wanted to create more apps and all. Things that you can see working. And this is where I was so wrong. Because those basic that we miss like creating logic in any programming language whether its C python or Java. And application development is most easiest thing, but after a time managing the application becomes a challenge but as a programmer. And managing that needs experience. But here we are talking about competitive skills, so I would say stick with the basics. And then there are higher subjects in basics, Algorithms Find problems, that doesn’t exist and then write solutions that doesn’t exist. You can find lots of online problem and take...

What are some silliest mistakes that you made while coding?

Ohk I remember one, we had a product at  Waayoo  and me and  Amit Saini  were working on a nitrogen inflating machine. And Everything was setup, the machine’s embedded part was working, we had a software application written in python, to interface with the embedded part. We did that and it started working fine. But Then we need to make some changes in it, so  Amit Saini  sir started making changes in his side of function. so function was something like this, all we had to do was to check of the value is 0 we will initiate the system and then will change it to to 1 statically, and then that starting function will never run again. And the code goes like this - function initiate(int check){ if(check==0){ startagaint(); check==1; } } That was the code, and this function has to be called several times in the whole process, after a time we got stuck whenever this function called the second time it always keep repeating itself. and we had no idea w...

How a self taught programmer can gain the skills similar to those with formal computer science degree?

Believe me or not but this is my area of expertise. You can check my answers on software developments and you would know. I am a good one to answer this question, because I have taught myself programming, I have never even been to school after 10th class, So I know it better. Now Come to the point How can you gain skills like professionals?? Just like the professionals do it in the first place. I will tell the stories of my own to prove my points. Point no. 1 chose a good programing language that suits you I started with C, and initially had no idea how am I gonna develop anything. Because after I compile my code all I could see was cmd that says something I said it to say. No offense to C, but it was not that good for me it can be for you. So after C and java now I use python which I find very easy for development of application on linux and site. I use Java for GUI applications for PC’s and I use PHP for website designing. So you can select different language for di...

As a developer, what offends you the most?

As a developer, the most toughest thing that I found was to read other people’s code. And I think if you want to learn quickly and with less harm to your brain work, then read other people’s code. And I think that’s the best thing in programming community, We share our work too much, there are so many open source work, that you can look at. Please write smaller functions So while reading other people’s code, what I find most irritating is when people write larger function, recently I had to find the bug in a project that had more than 50 modules, each modules could have been created easily, but lack of pre-planning or lack of experienced programmer made it worse. There are some functions which 200 lines long. Use loops or separate function to avoid repetition in your code. The person who writes same code again and again is not a proper programmer or not a professional at all. People don’t use loop, instead using their brain to find a short code for a large problem t...

The coding of love ;)

They used to work everyday, competing who would work more efficiently, quicker and better at the same time. This competition made them enemy, they hate each other. The only thing they had in their microchips that they have to win, the more they lose the more the hate increased. This is the rule of a computer programmed robot, it works only the way it has programmed. It can only do those things that we have told it to do. These two robots were the best among others. They never made any talk, but they both understand the power of their opponents. The AI programming, Artificial Intelligence made them in this way so that they could read the moves and create their own strategy. The first Robot name was Naina, the others name was Rudra, it was just the name, they were designed in this way, The competition was about to make themselves multitasking, they both could implement themselves, program themselves, to be whatever they want. They were genius in solving the mathematical problems, they c...

What is real? The matrix (power of Programming ) Artificial Intelligence

What is real? Last time I was talking about AI. A machine when works smart, and he doesn’t need any instructions, then we call it AI. To talk about it more we need to go in more technical details. All the things about AI can be said I single line I guess, “How to make a machine work like a human?” That’s all that matters. Through electronics and mechanics we can create a Skelton of human. But to make it understand the instruction we have programming. We need to program it. The conditions and statements based on the environments, for instance what kind of situation will be handled by this machine or what kind of precautions will people take by interacting it. Presume that there is a need of autonomous robot in a place where water continuously flows from upside, then you will be bound to create a waterproof robot. But this is also the difference between human and Robot. So when it comes to AI you need to program robot so that it can think of those problems and develop it. I p...

The Matrix(Power of Programming) Part 2

Let’s cut it all and talk about some movie stuff you know. Because I believe you have opened the page to hear something about the movie. Well first thing I will say about the movie is that it was awesome, and made so many senses to me as I watched it. I wanted to create an Operating system of my own, and I know I will one day. But after watching the movie I would say that the movie had cleared so many concepts of systems for me. Notice that I wrote system not the operating system. The reality is that operating system is a thing to be operated by human, but the system uses human. But thank god that we are not there yet. We haven’t created any such system, and I can’t say that we won’t. Or maybe someone has already created and we are inside it, doing what we meant to do. But the thing I noticed in the movie that was philosophical, also logical and technical. The purpose of life, and our choices, we all are here with some purposes in our life and we all get in some situation many ti...

The Matrix (Power Of Programming)

T he matrix is a word familiar with two streams, streams that is complement to one another, math and computer programming. If you are reading this article, then there will be two reasons, if you have watched the movie, or if you are a computer programmer. But let me assure you that even if you haven’t programmed before, you are going to like this one. I am also a computer programmer, a programmer who don’t like math but just programs. Programmers like me become hackers or a teacher who know program but doesn’t know how to create a mathematical equation or algorithm that create a giant software or system. I like the programming because of its intellect and its philosophy. Our computer programs show us a great future in it. Yeah I agree that every engineering stream has their specialty. But still computer programming is very different from others. And me and people like me are the reason why. We are not interested in solving very large algorithms, but we love to solve our large progr...

Become used to of your problems

Our inspiration and motivation are the tools which we use against darkness of despair. It works like a torch and shows us appropriate path to walk. Every human being or living creature I should say, they know how to find the torch in darkness. This darkness reminds me of my Nani’s room. She lives in village, and often when electricity comes it becomes news. And a day when electricity gone, I found that it was hard to see anything in that darkness. But my Nani who supposed to wait for someone to fetch torch for her, she couldn’t even see properly in daylight, she got up and found the torch for us. I noticed it first time, and then I asked Nani how did she do that? She replied, “It becomes easy when you become used to of your problems.” And now I can infer you that life is all about getting used to of your problems. Bill gates has said, “Life is always unfair, get used to.” And by getting used to, you began to find your own solutions. Our Inspiration and motivation are also part of our ...

How computer programming shapes our world.

"Everybody in the world should learn how to program a computer, because it teaches you how to think."- Steve Jobs I like to learn computer science. As the time passing, computers are becoming more necessary to each field that exist in the world. Computers or any machine that do its work automatically or smartly, is made of codes. Codes that has been invented from computer programmer. These codes tells computer or machine to do everything what we want. So actually we are communicating to machines via a computer language that is called codes. Communicating machines are more interesting that communicating people. People are wicked, idiot, lovely, beautiful, bloody ful and many more types. Not everyone will listen you. Even my little brother never fetch me a glass of water. Apart from that communicating with machines are far more different. It hears everything you ask from it. It do everything as you say. But in proper way. And for that you need to learn computer programming...

The Dark side of Life :Image of Poverty

Poverty is a disease that half of the world is fighting from. Still Rahul Gandhi says it just mentality. Anyway, we need more people like Bill gates and many more philanthropist who are investing their money to improve the condition of planets. But what can I do, i was thinking about this. Because I don't have that much money so i could give millions or billions in charity. But then then I thought that not every rich people is Bill gates. I mean each rich is not like Bill gates, so each Bill gates should not be rich. What basically I am trying to say is that we need something more than money to help other people. If you want to help poor, make any one poor educated , and he will educate 10 person like him, and if you bring Salman khan's Jai ho formula here , you can change the world. So we need intention more that money. Your kind intentions will help poor not your money. If you add your money with your intentions then you'll become Bill gates .       Not by writing or...