44
crisz
8y

My first programming language was PHP.
When I first approached C I was like "wtf!! Why have I to specify the type"

Comments
  • 26
    My first language was C, I then used PHP. My reaction was "WTF", why do I not get to specify the type.
  • 17
    My first language was C, when I then learnt any other language my first reaction was "wtf everything is easy" :D
  • 2
    I think it's better to go from type specific language to typeless languages.
  • 4
    I went the other way.
    When I moved on to PHP from C, I had some trouble having to put $ before every variable like wtf.
  • 1
    @HoloDreamer this is the canonical way. I think that's better the opposite, for my experience.
    I don't understand why in school and universities they start from c and they move ahead to more abstract languages. In my opinion would be better starting with a simple language like PHP or python, and when you mastered it you can move to more difficult and more powerful languages like C and C++.
    This is what I did, because I'm self-taught. And the passage was more natural (well, the "wtf" for the type was real, but just the first 15 seconds)
  • 1
    @crisz I totally agree. And I feel like learning to keep track of type in your own makes you more aware. Hating the fact that you can mix up types is just blaming the tools for your own shortcomings
  • 2
    Learned C++ first, then Java, and thought "Holy crap, Java is way easier", learned a bunch of different languages and now I'm at C#. "Holy crap this looks like Java but with stupid Capitalisation, I want my camelCase back"
  • 3
    Line numbered basic (no functions only goto and gosub). Then object oriented turbo pascal.

    That was a very steep step up ;)

    Every step after that was easy in comparison, even functional.
  • 0
    my first was also PHP, but i already knew about types, so i was confused like "i dont have to specify a type? omg he already know! so advanced! I cant even think about a case to use the full potential of this" then on college we learnt java, then i was like "but... oh, less memory?... well... ok"
  • 0
    Explicit variables are the best!
  • 2
    My first was Python ! ... You can understand the rest !
  • 0
    @Jop- eh, agree to disagree then. I love my C# and types, but also my JavaScript and lack of them. If you can't keep track of what is an int or a double or a string, you are the problem, not the language. Typescript is an abomination that only exists because people are to lazy to actually keep track, and it doesn't solve their "problem" cause all that help disappears at runtime
  • 0
    it was the other way around for me
Add Comment