How Do I Think Logically When Programming?

Upload and start working with your PDF documents.
No downloads required

How To Write on PDF Online?

Upload & Edit Your PDF Document
Save, Download, Print, and Share
Sign & Make It Legally Binding

Easy-to-use PDF software

review-platform review-platform review-platform review-platform review-platform

How do I think logically when programming? I have folders that contain mp4, text, pdf, doc, mp3 files and I would like to separate them. I can write Ruby code, but it’s the logic that kills me. I've worked on this problem for 3 weeks.

I think that this is how most of self taught programmers do it. T just dive into code and try to do what t're supposed to do – no matter if the programming language is new or familiar. I was once in a technical interview where I was asked to write some code to a sheet of paper. I struggled a lot; I don't remember when I had struggled that much in programming before. I commented that this kind of working is very hard for me since I can't play with the code and see how it looks in computer screen. Interviewers just looked at me with a confusion drawn on their faces. But in the hindsight, t just probably wanted me to think before implementing... but my style of working is somehow synthesized these two. In my opinion coding is just the right area where you can play around. Just write something and then explain yourself why that doesn't work. Then try to make it work by fixing the problems you found. Do this until your code grumbles down because it was poorly implemented. Just throw the old code away and start all over again. This won't hurt anyone and it doesn't cost you anything – it only takes time and effort but you'll also learn. There is no magic bullet which would perfect your logic. even most professional programmers make errors in logic. And it is completely fine. With your specific problem, you can accomplish it easily by hand. Think how you would do it manually and then instruct the computer to do the same. Hint. think of operations, not how t are actually executed.

Customers love our service for intuitive functionality



46 votes

Write on PDF: All You Need to Know

Do the equivalent of adding 1 to 1 + 1. Then take that 1 and add it to 2 or 3 or whatever to get 5. Then do the same thing to 4 to get 8 and so on. If you need to change anything about your logic in any way, you can do it here. This is how I actually like to think about thinking. Coding is just writing your logic over and over again. The problem is, we still do not know how logic works, if it is just code, or if it is something more like a thought that exists in thought. But it appears that t just wants his code to follow. This is the reason that so many coding interview questions are like this (see below). Most technical interviews will ask you to use a computer or computer program at your place of employment. This question.

What Our Customers Say

Deborah W.
Deborah W.
I corrected a mistake in my form and replaced it with the right information. It took a few minutes only! Thanks a lot!
James S.
James S.
The process of PDF correction has never been so easy. I’ve managed to create a new document faster than ever before!
William G.
William G.
It was really easy to fill out my PDF document and add a signature to it! This is a great service! I recommend it to you!
Denis B.
Denis B.
I edited the document with my mobile phone. It was fast and, as a result, I’ve got a professional-looking document.

Supporting Forms

Submit important papers on the go with the number one online document management solution. Use our web-based app to edit your PDFs without effort. We provide our customers with an array of up-to-date tools accessible from any Internet-connected device. Upload your PDF document to the editor. Browse for a file on your device or add it from an online location. Insert text, images, fillable fields, add or remove pages, sign your PDFs electronically, all without leaving your desk.