7
DrSwift
7y

When you start learning python and you always forgot that all start by 0 (╯°□°)╯︵ ┻━┻

Comments
  • 18
    guessing this is your first language, everything starts from 0 excluding matlab
  • 1
    @RazorSh4rk yes this is the first so after I will know that all start by 0
  • 0
    @RazorSh4rk what's matlab and why do you comment every post I see :0
  • 0
    @DrSwift lol got used to it very quickly
  • 0
    @RazorSh4rk yes this is the first so after I will know that all start by 0
  • 0
    @bcye oh ok Nice !
  • 0
    And SQL!! Anything indexable (e.g. character position, row indexes) all start at 1 in SQL. Just to mess with you.
  • 0
    @CrankyOldDev it is good to know
  • 1
    @bcye matlab is ABSOLUTE INSANE YAAAY i love matrices *-*

    also i spend a lot of time on devrant
  • 4
    Lua arrays start at 1... For some reason.
  • 2
    @bcye Matlab is a programming language that is geared towards matrix math (the name is meant to ?mean matrix labratory) and has evolved into a language for all of science, applied math and engineering. I personally prefer Mathematica over Matlab :)
  • 1
    I actually have a project written in matlab that is quite poorly coded in terms of efficency and definitely needs a rewrite but it does work as intended. https://github.com/alexanderepstein...

    Basically it used a matrix method called singular value decomposition to compress images. There are many other applications for svd but this is one of them. I guess what im trying to say is if you are new to programing make sure to learn as much math as possible.

    As a bonus discrete math (some simple logic math) for software for hardware you can learn digital logic (more advanced logic stuff involving circuits) would be good to learn :)
  • 2
    it really depends on what you want to do i think. By default, most languages start at 0. You can make it start at 1 if you want, by making a "ghost" node.
  • 0
    Eiffel also starts at 0, anoyed the hell out of me, when I had to use it at university, comming from a PHP/Java background
  • 0
    @Wack You mean 1*? Never heard that PHP nor Java start at 1.
  • 1
    @JoshBent damn. Yeah ment Eifel starts at 1.
Add Comment