Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

basic

Why did we bother with line numbers at all? [closed]

July 21, 2023 by Tarik

The idea back then was that you could easily add code everywhere in your program by using the appropriate line number. That’s why everybody uses line numbers 10, 20, 30.. so there is room left: 10 PRINT “HOME” 20 PRINT “SWEET” 30 GOTO 10 25 PRINT “HOME” On the first interfaces BASIC was available for, … Read more

Categories basic Tags basic, line-numbers Leave a comment

Python: Is there an equivalent of mid, right, and left from BASIC?

March 31, 2023 by Tarik

slices to the rescue 🙂 def left(s, amount): return s[:amount] def right(s, amount): return s[-amount:] def mid(s, offset, amount): return s[offset:offset+amount]

Categories python Tags basic, python Leave a comment

What does DIM stand for in Visual Basic and BASIC?

September 30, 2022 by Tarik

Dim originally (in BASIC) stood for Dimension, as it was used to define the dimensions of an array. (The original implementation of BASIC was Dartmouth BASIC, which descended from FORTRAN, where DIMENSION is spelled out.) Nowadays, Dim is used to define any variable, not just arrays, so its meaning is not intuitive anymore.

Categories vb6 Tags basic, language-design, vb6 Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa