Fireship · @fireship
Pascal in 100 Seconds
Uploaded January 4, 2024 · Length 2:43
Summary
A 2-minute introduction to Pascal programming language, its history, and basic syntax.
- pascal programming
- procedural language
- pascal syntax
- pascal tutorial
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
Pascal a procedural highlevel
- 0:02
programming language famous for teaching
- 0:04
a generation of kids from the 70s and '
- 0:06
80s how to code it was created by
- 0:07
Nicholas worth in the late 1960s and
- 0:10
named after French mathematician blae
- 0:12
Pascal it was originally based on the
- 0:13
alol 60 language but expanded its data
- 0:16
structuring abilities allowing
- 0:17
developers to build Dynamic recursive
- 0:19
data structures like trees and graphs it
- 0:21
got its big break when it became the
- 0:22
language of choice on the Apple 2 then
- 0:24
Lisa and the Macintosh and eventually
- 0:26
became the default highle language on
- 0:28
nearly every PC over the years it
- 0:30
evolved into a variety of other dialects
- 0:32
most famously turbo Pascal brought to
- 0:34
you by CP Creator Anders hilburg it was
- 0:37
one of the first languages with its own
- 0:38
full screen IDE and in 1983 you could
- 0:41
buy a copy at Circuit City for only
- 0:43
$49.99 which believe it or not was a
- 0:45
great deal it was used extensively in
- 0:47
education to teach people how to code
- 0:49
but also used to build serious desktop
- 0:51
applications and games such as crisis
- 0:53
Mountain gravity Wars and IBM's alleycat
- 0:56
in modern times its popularity has
- 0:58
declined but Pascal dial like Deli are
- 1:01
still in use today and you might find
- 1:02
its syntax surprisingly familiar to get
- 1:04
started install a compiler like the free
- 1:06
Pascal compiler then create a file
- 1:08
ending in. pasas as an alternative you
- 1:11
might use a dedicated IDE like Lazarus
- 1:13
first we use the program keyword to
- 1:15
define the main entry point for the app
- 1:16
then we add the begin and end keyword
- 1:18
with a period which will execute the
- 1:20
actual code in the program this is like
- 1:22
the main function in many other
- 1:23
languages from here we can use the
- 1:25
built-in right line function to say
- 1:27
hello world Pascal is a procedural
- 1:29
language which means in instructions are
- 1:30
executed in a linear sequence one after
- 1:32
the other const is used to Define
- 1:34
immutable global data while VAR is used
- 1:36
to define values that might change
- 1:38
throughout the execution of the program
- 1:39
variables are strongly typed using a
- 1:41
syntax that looks almost identical to
- 1:43
typescript now our main program can be
- 1:45
organized into subprograms of which
- 1:47
there are functions and procedures
- 1:49
notice how they end with a semicolon and
- 1:51
not a period indicating a subprogram at
- 1:53
first glance they look identical but the
- 1:55
difference is that a function returns a
- 1:57
value while a procedure is only used to
- 1:59
execute code or create side effects like


