learn assembly - introduction to programming
DESCRIPTION
This presentation has been done for LearnAssembly. It's a brief introduction to programming. We start with a bit of History, then move to create our first instructions in Ruby.TRANSCRIPT
Dev IntroLearn Assembly
So easy!
• launch Interactive Ruby
• puts ’’Hello World’’
• 3+2
• Math.sqrt(9)
History
Joseph Marie Jacquard
1752 - 1834
Ada Lovelace1815 - 1852
Herman Hollerith
1860 - 1929
« Hollerith Punched Card »
• Tabulating Machine Co. (1896)
• International Business Machines Corporation
Allan Mathison Turing
!1912 - 1954
• Turing machine
• Algorithm
• Computation
Languages
Tabulating Machine Company
1896
Assembly Language
1896
Plugboard
1954
Fortran
1960
Data Storage Devices
Types
• Interpreted / Compiled
• Object , Imperative, events …
• Web Oriented
• Action Script
• C, C++, C#
• Java
• Objective C
• Perl
• HTML
• PHP
• Java, JavaScript
• Python
• Ruby
WebDevice/GUI
Framework?
Set of Libraries or classes for a Software Sys.
• Support programs, compilers, code libraries, tool set, APIs
• CSS: Bootstrap, YAML
• Ajax/JavaScript: YUI
• Application: Cocoa, Mozilla, Eclipse, Microsoft Foundation, .net, Rails
Good Code
• Reliability
• Efficiently/performance
• Maintainability
• Portability
• Usability/Ergonomic
• Robustness
ReadabilityHuman reader must comprehend the purpose
• Indentation:
• Comments:
• Decomposition:
• Naming Convention
Keep Calm & Code
Variables
Functions
Formatting
Class Definition
Create Object
Use It!
Instance Methods
Instance Attributes
Instance Attributes
Loop & Iterations
Conditions