Special types Objects and operators built into the language but used only in modules: Ellipsis (also “…”): used chiefly in slices in modules like numpy.

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

Gerardo Schneider Department of Informatics University of Oslo December 2008.
Software. What Is Software? software –Also called Computer programs –Are a list of instructions –Instructions are called code –CPU performs the instructions.
Modules and Objects Introduction to Computing Science and Programming I.
Programming Languages Structure
Copyright 2006 by Pearson Education 1 Building Java Programs Chapter 1: Introduction to Java Programming.
CSE 1301 J Lecture 2 Intro to Java Programming Richard Gesick.
Introduction to Programming (in C++) Introduction Jordi Cortadella, Ricard Gavaldà, Fernando Orejas Dept. of Computer Science, UPC.
Languages and tools. BY SA machine code.
Chapter 0: Introduction CSCI-UA 0002 – Introduction to Computer Programming Mr. Joel Kemp.
Introduction to Programming Language CS105 Programming Language First-generation: Machine language Second-generation: Assembly language Third-generation:
Programming Languages
Understanding Computers Ch. 131 Chapter 13 Program Development and Programming Languages.
Chapter 1. Introduction.
Java Virtual Machine Java Virtual Machine A Java Virtual Machine (JVM) is a set of computer software programs and data structures that use.
CS 355 – PROGRAMMING LANGUAGES Dr. X. Copyright © 2012 Addison-Wesley. All rights reserved.1-2 Topics Scope Scope and Lifetime Referencing Environments.
Programming History. Who was the first programmer?
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Ch 1. A Python Q&A Session Spring Why do people use Python? Software quality Developer productivity Program portability Support libraries Component.
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 15: More-Advanced Concepts.
AUIS Assignment 01 IT Part A Visual Studio IDE   Developing IDE from Microsoft.
Compiled and Interpreted Languages CS 480/680 – Comparative Languages.
Today we’re gonna talk about… therightabstractions.com.
Popular Programming Languages FORTRAN—the oldest high-level programming language; designed for scientific and mathematical applications. John Backus.
Overview of Java CSCI 392 Day One. Running C code vs Java code C Source Code C Compiler Object File (machine code) Library Files Linker Executable File.
DATA MINING Pandas. Python Data Analysis Library A library for data analysis of (mostly) tabular data Gives capabilities similar to Excel and SQL but.
Copyright © 2006 The McGraw-Hill Companies, Inc. Programming Languages 2nd edition Tucker and Noonan Chapter 1 Overview A good programming language is.
How to execute Program structure Variables name, keywords, binding, scope, lifetime Data types – type system – primitives, strings, arrays, hashes – pointers/references.
WHY ARE WE HERE? Nick Derrickson BA371, Winter 2016.
Programming Languages
Scripting Languages Info derived largely from Programming Language Pragmatics, by Michael Scott.
M ICROSOFT.NET Kyle Adamski 10/15/2012. Road Map What is.NET? Common Language Runtime (CLR) Language Integrate Queries (LINQ).NET Pros.NET Cons Sources.
Introduction to Programming AP Computer Science. Computers What is a computer? –CPU –ALU –Memory –Hard Drive.
First appeared Features Popular uses Basic This language emphasises on ease of use, allowing general purpose programming to those with a small amount of.
Chapter 1. Introduction.
Programming Languages 2nd edition Tucker and Noonan
Programming vs. Packaged
Introduction to Computing Science and Programming I
Basic Concepts: computer, program, programming …
Computer Science skill sets
The language focusses on ease of use
Lecture 1b- Introduction
Top 8 Best Programming Languages To Learn
Interview Questions and Answers
Outline Introduction Programming in eclipse Debugging in eclipse
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
Scripting Languages Info derived largely from Programming Language Pragmatics, by Michael Scott.
Lecture 20 Optimizing Python.
Outline Introduction Programming in eclipse Debugging in eclipse
Types for Programs and Proofs
PROGRAMMING LANGUAGES
CSCI-235 Micro-Computer Applications
Java Course Review.
Problem Solving Using C: Orientation & Lecture 1
Programming for Geographical Information Analysis: Core Skills
slides created by Marty Stepp
PHP / MySQL Introduction
Programming for Geographical Information Analysis: Core Skills
Programming vs. Packaged
Introduction to Computers and Python
آشنایی با جاوا Introduction to Java
CS-0401 INTERMEDIATE PROGRAMMING USING JAVA
Brief Intro to Python for Statistics
Programming Language Design
EXTENSION AND INTEGRATION
Chapter 1 Preliminary. Chapter 1 Preliminary 1.1 Reasons for Studying Concepts of Programming Languages Increased capacity to express ideas Improved.
CS105 Introduction to Computer Concepts Intro to programming
School of Computer & Information Engineering,
What is Programming Language
Programming for Geographical Information Analysis: Core Skills
Presentation transcript:

Special types Objects and operators built into the language but used only in modules: Ellipsis (also “…”): used chiefly in slices in modules like numpy. @ Used as an operator in some maths packages.

Type annotations (only at class and module level) def ascii_char(num: int) -> str: return chr(int) These give the appearance of manifest typing, but can be checked only by outside code-checking software. https://www.python.org/dev/peps/pep-0484/

Efficiency https://docs.python.org/3/faq/programming.html#my-program-is-too- slow-how-do-i-speed-it-up https://wiki.python.org/moin/PythonSpeed/PerformanceTipsp

Python 2 to 3 Converting 2 to 3: https://docs.python.org/3/library/2to3.html If you need a particular python version or library, use a virtual environment: https://docs.python.org/3/tutorial/venv.html or Conda: http://www.wilsonsayreslab.org/blog/2015/10/26/managing-multiple- python-environments-using-anaconda https://conda.io/docs/user-guide/tasks/manage-environments.html

Other languages C++ / C / Java / JavaScript / C# / VB.Net / Scala: "C" Family. Broadly speaking more formal languages than Python, with more restrictions to prevent errors including manifest typing. Typical Java: import java.util.Vector; public static void main (String args[]) { Vector v = new Vector(); double sum = 0; for (int i = 0; i < 10; i++) { double a = Math.random()*10.0; sum += a v.add(a) } System.out.println("sum = " + sum);

Other useful languages (In vague order of usefulness) JavaScript (Web programming) PHP (Backend web processing) Java (General programming; Android) C++ (General programming; joining the godhead) C (Hardware programming) R (Statistics) VBA (Visual Basic for Applications) VB.Net / C# (Windows programming) Perl (Largely superseded by PHP) Swift / Objective C (Mac programming languages) Ruby (More OOP Python-like language) MatLab (Maths processing) Fortran (frequently used for mathematically intense science) (…though there's no good reason for it) Prolog (Logic programming) Groovy / Scala (Python-like language / Java-like language that run on the Java platform) Lisp / Haskell (Semi-historical lambda-based/functional languages) Smalltalk (Semi-historical OOP language)

Further information The course website for subjects we’ve covered: All the lectures. Examples, practice pieces, and useful links.

Other info https://docs.python.org/3/howto/index.html See also recipes in docs http://www.geog.leeds.ac.uk/courses/computing/

Main thing Practice!