r/visualbasic • u/darkspy13 • Apr 25 '21
Tips & Tricks Visual Studio - Windows Forms Hello World - First of many helpful videos for new developers
https://www.youtube.com/watch?v=7XFGyx_KTA42
u/RJPisscat Apr 25 '21
Suggestion for a video topic: How to ask questions in forums, specifically, how to post code:
' How to post a code block, like this.Name your controls so the reader knows which Button corresponds to what.
Add comments about what you are doing - or trying to do - or don't know how to solve.
One of the qualities of an excellent programmer is knowing when, where, and how to ask for help, If you make that video or have already made it, please post a link so I can copy it into any reply to someone who needs it.
3
u/darkspy13 Apr 25 '21
Interesting, so a "good programming practices" type video.
That sounds like a good idea, especially focusing on simple useful points like you mentioned instead of the higher-level details.
1
u/RJPisscat Apr 25 '21
Right, a beginner's guide. When posting code in r/visualbasic, do NOT post this:
Public MyVar as Boolean
Private Sub Button1_Click(sender As Object,e As EventArgs) Handles Button1.Click
If Function1() Then
Sub1()
MyVar = False
Else
Sub2()
MyVar = True
End If
End Sub
Post this instead:
Public Walking as Boolean Private Sub ButtonLeaveNow_Click(sender As Object,e As EventArgs) Handles ButtonLeaveNow.Click If MyAreaHasUber() Then CallForUber() Walking = False Else StartWalking() Walking = True End If End Sub
1
u/chacham2 Apr 26 '21
Nice simple lesson.
Some critiques:
Use Core, not framework. Framework is supported, but not being developed further. Core 5 is out and works very well. Core 6 is coming later this year.
You say "um" much too often. If you really want to do this nicely, create a script.
Use drawn arrows to point to what you are doing, or zoom in, or use mousetrails.
4
u/darkspy13 Apr 25 '21
Hey everyone!
This is the first video in a series teaching VB.Net. I have personally been using VB.Net in a professional environment for 10+ years and wanted to do a series on VB.Net. I recently created a series on the channel for C# (which is more popular) but I couldn't resist creating a series for VB.Net since it is so close to my heart.
Anyways, thanks for checking it out, I hope it helps and if you have any suggestions or videos you would like to see, please let me know!
I am also willing to answer any programming questions you might have, I've answered quite a few in this sub over the years!