did we move from punch cards to programming languages? What does that tell you about the purpose of programming languages?
Punch cards are a piece of paper where holes are punched on to represent binary digits for machines/computers to interpret as data or instructions
we switched from punch cards because they were prone to error where any unintenional cut can lead to a different set of data / instructions
as well as a limited space to store that many physcial pieces of date and they had to be handled manually
these reasons tell me that we prioritized automatic systems that didnt require physcial labor and werent as prone to error
the programming languages provide us with useful tools and functions to help us enter code that wouldnt lead to major bugs
There are hundreds of different programming languages out there. Why do you think we need so many?
Because each has a different use and each person can learn and use it based on thier prefrence
What are some drawbacks of a programming language you use? How would you like it to be different? Think of specific examples.
Python is my prefered language and it has one issue which is my downfall, Floating point errors
maybe try making 0.1+0.1+0.1 not equal to 0.30000000000000004 but instead 0.3
If you were going to create a new programming language, how would you start? What do you need to define?
- First define the grammer / the rules that the programmer must abide by, by assigning certain functions to certain phrases
- build a front-end compiler by:
- making it recognize key terms
- making the relation between each line of code defined
- check inconsistancy with the language/ rules you defined
- running optimizations to the compiler
- original code is finally executable
- build a back-end compiler that turns my source code into assembly
Refrences