1 / 5

Introduction to Programming: The First Step in Your Journey

Embark on your programming journey with this beginner-friendly introduction to the basics of programming. Understand how computers work and learn to harness their tremendous power. This guide emphasizes the importance of clear logic, disciplined coding style, and proper documentation. Explore fundamental concepts such as spacing, indentations, and the organization of code. By focusing on writing cleaner and more readable code from the start, you will set a strong foundation for your programming skills while avoiding common pitfalls.

Télécharger la présentation

Introduction to Programming: The First Step in Your Journey

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. COMP SCI 1MD3 Introduction to Programming Sanzheng Qiao http://www.cas.mcmaster.ca/~qiao

  2. A long journey begins with a single step • Long journey • Understand how computers work • Utilize computers’ enormous power • First step • Basics of programming

  3. What matters • Logic: Know exactly what your program is supposed to do • Discipline: Consistent style, format • Documentation • Spacing, indentations • Line breaks • Positions of curly braces { }

  4. Why bother? • Who cares what a program looks like if it works? • Doesn’t it take too much time to make it pretty? A well-written code is easier to read and to understand, almost surely has fewer errors. In the rush to get programs out the door to meet some deadline, it’s easy to push style aside, to worry about it later. This can be a costly decision.

  5. Emphasis • Basics of programming, rather than Java specifics. • Writing better code from the beginning and improving it as it evolves. • Principles of programming style, clear, simple, straightforward logic, meaningful names, neat formatting, helpful comments, and consistency.

More Related