Yes I'm a nerd. Yes I use Arch Linux. There is a somewhat unfair view that you have to be a programmer to use Linux, and that Arch Linux in particular is very difficult. Yes I happen to be a programmer, and it might be true that Linux may be particularly useful for programmers considering most distros come with a lot of editors and compilers and such. But it really is a really stable and powerful OS for anyone (that's not computer illiterate). If you want to just use your computer without having to thinking about it, you will probably use whatever Windows version your computer came shipped with, and not bother to install anything else. However if you actually want to Learn how to use Linux, Arch is a good choice, because it assumes you know how to use the command line during the install process. In other words the process of installing it forces you learn som basics of Linux (if you don't already know). Still it is not very difficult. You don't have to compile ...
Get link
Facebook
X
Pinterest
Email
Other Apps
BASIC
Get link
Facebook
X
Pinterest
Email
Other Apps
A simple BASIC program written on the Commodore 64
Why should you learn BASIC?
Well, you shouldn't really.
"It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration." - Edsger Dijkstra
BASIC was a programming language designed in 1964, primarily to teach basic programming principles to beginners. BASIC is an acronym for Beginners All-purpose Symbolic Instruction Code.
However BASIC became popular with the increase of microcomputers for the home market, and during the 1980s many computers used a BASIC interpreter in place of an operating system.
Examples of such computers are Commodore 64, Apple II, TRS-80, ZX-80, and BBC Micro.
There where several different dialects of BASIC with somewhat different syntax, such as Simons Basic for C64, and BBC Basic for the BBC Micro.
Even if you where unaware of it, you actually used BASIC code to operate your old C64.
For instance in order to load a game form a floppy disk (if you where fortunate to have a floppy drive for your C64, and not just a cassette deck) you would write: LOAD"$",8
To then see what's on the disk you would type: LIST
To load a game into memory you would write the following (assuming the disk contained Arkanoid): LOAD"ARKANOID",8,1
To then actually start the game, you would have to write: RUN
A bit of a hassle compared to modern games isn't it?
A reference to BASIC syntax in Futurama
The drawback of an interpreted language, such as BASIC in comparison to compilated languages is that the programs run significantly slower.
That being said, a lot of impressive things have been made in BASIC, just look at some of the classic C64 games for example.
Even computers with other operating systems usually came with a BASIC interpreter installed, such as the Victor 9000 (Using Microsoft Basic).
Even when I later got my first own computer: a 486 with MS DOS, it included QBasic (an improvement of the original BASIC).
When writing a line of code it is immediately executed when pressing enter.
To write an actual program each row must begin with a line number, the convention is to use multiples of 10, for instance:
10 PRINT "Hello World!"
20 END
To actually run a program (that is loaded to memory) you must type RUN on a line by itself.
The reason for numbering rows in multiples of 10 is that the programs always run code in the order it is numbered, and if you suddenly realize you need to add some more code between rows you would need to rewrite the entire code to get the correct numbering if you where to use 1,2,3, etc. In case of multiples of 10, you could just add 15 between row 10, and 20 for instance.
If you are going to ignore Edgar Dijkstra's comment above, here's an old VHS tutorial on how to program BASIC on the BBC Micro.
Since it's doubtful you own a BBC Micro, since they where almost exclusively released for schools in the U.K. here's an emulator you can use to code for yourself: https://bbc.godbolt.org/
This is a continuation of my last post about Binary Numerals. When we know what binary is, we of course want to be able to apply maths to it. Binary Addition Line the two numbers up, one over the other and start adding each column, starting from the right. There are four possible results: 0 + 0 = 0 1 + 0 = 1 0 + 1 = 1 1 + 1 = 0 (carry 1) In the fourth case the result is 10, so 0 is written and 1 is carried over to the next column. Technically the carry causes a fifth possible case: 1 + 1 + 1 = 1 (carry 1) Here's a problem for you to solve on your own: 10110 + 01011 Binary Subtraction There are four cases for binary subtraction: 0 - 0 = 0 1 - 0 = 1 1 - 1 = 0 0 - 1 = 0 (Borrow 1) Here's a problem for you to solve on your own: 1101 - 0011 Binary Multiplication Binary multiplication is actually simpler than decimal multiplication. There are four cases for binary multiplication (and...
When I started programming as a kid the www wasn't around. This meant I had to use whatever me or my friends happened to have available. And learning was hard too, since my friends didn't know much about coding, and study material wasn't easily available (especially since I was a kid and didn't know much English). I ended up learning some very banal coding in BASIC on my friends C64 (He had a diskette station add-on, which was awesome compared to the standard cassette-deck!). I really only knew how to print out text to the screen and accept number input from the user, as well as the goto-command. The "Hello, World!" program in BASIC on C64 Once I actually managed to get a book from the bookstore (actually just a thin pamphlet really) about C/C++ programming, I had no idea I needed a compiler (or even what it was), and even if I did, I would have no way to get one, since when it came to software, I was limited to whatever my friends and I happened ...
I assume most anime enthusiasts already know about this series (otherwise you have surely encountered references to it in form of memes), but just in case you missed it... Kemono Friends is a cutesy anime series that was made with a really low budget, by 10 people, over the course of 500 days. You would expect it to be really crappy under those circumstances, and it is true the animation is rather crude. Furthermore it's 3D, in the same manner as Studio Ghiblis "Ronja, the Robber's Daughter", which is a style I personally really don't like. After getting in to the show though, that really didn't matter. Furthermore, it may seem to have children as it's target audience, but a lot of adults have come to love it as well. The creators of the show, Yaoyorozu, didn't really expect it to gain much popularity either under the circumstances. (Furthermore it was based on a mobile phone game that was defunct even before the anime was released). But to...
Comments
Post a Comment