💻
001. First Syntax
TL;DR
- The Language: Python, Java, C++... nah, we're starting with VB. Says the college.
- The Tool: Visual Studio—drag, drop, easy. Until you write the code.
- The Syntax: All that just to say "Hello World"?
Day One. For Real This Time.
Today is officially my first day of learning how to code. I'm finally here to see how "programming" actually looks like and what tools are used. So turns out there are different programming languages—Python, Java, C, C++... you can pick any of those. But nah, we're starting with VB.
Says the college.
What Even Is VB?
Before I could even write a line of code, I had to install something called a code editor. We're using Visual Studio, and honestly? It kinda looks easy to use. You just choose the tools you want—a text box, a button, a radio button—drag them onto the form, and arrange them however you like. You can even modify the properties of each element. Font size, color, position... easy, right?
Now it's time to make it actually work. Time to write the code.
Eish. This is when it gets complicated.
The Basic Syntax
Writing code is just telling the computer what to do. That's what they say. But in VB, the conversation feels a bit... formal. Look at this:
Public Class Form1
Private Sub btnClick_Click()
Dim greeting As String
greeting = "Hello World"
MsgBox(greeting)
End Sub
End ClassDoes this not seem complicated just to say "Hi"? I have to define a Public Class, then a Private Sub, and then Dim a variable—whatever that means.
I'm trying to understand the "why" behind all these definitions. Why can't I just say show "Hello World" and call it a day? But for now, I'm just following along and hoping it makes sense soon.
The journey begins.
<- Back to blog
All rights not reserved. Do you want a website like this? Just copy it 👍🏾