• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.
  • The forums have been upgraded with support for dark mode. By default it will follow the setting on your system/browser. You may override it by scrolling to the end of the page and clicking the gears icon.

Wanna dabble in basic programing

Joined
Jul 21, 2008
Messages
5,280 (0.86/day)
System Name [Daily Driver]
Processor [Ryzen 7 5800X3D]
Motherboard [MSI MAG B550 TOMAHAWK]
Cooling [be quiet! Dark Rock Slim]
Memory [64GB Crucial Pro 3200MHz (32GBx2)]
Video Card(s) [PNY RTX 3070Ti XLR8]
Storage [1TB SN850 NVMe, 4TB 990 Pro NVMe, 2TB 870 EVO SSD, 2TB SA510 SSD]
Display(s) [2x 27" HP X27q at 1440p]
Case [Fractal Meshify-C]
Audio Device(s) [Fanmusic TRUTHEAR IEM, HyperX Duocast]
Power Supply [CORSAIR RMx 1000]
Mouse [Logitech G Pro Wireless]
Keyboard [Logitech G512 Carbon (GX-Brown)]
Software [Windows 11 64-Bit]
I'm military but I've always had a passion for computer related things and recently enrolled into a CIS program. I'm also currently an avid EVE online player and as such I want to try converting one of my many spreadsheets into something a little nicer.

https://docs.google.com/spreadsheet...pKHkQlTjk4L1asuQB27Qur4r5o/edit#gid=775159359

is a link I share with other users in my alliance to determine prices for buying capital ships from me. I'd like to make it a web based app that allows multiple users to use it at once without stepping on eachothers toes. Basically all it does is use the 3 drop downs to get prices based on ship, location and fitting. It also seemed like a great place to start getting my mind ready for programming. It seems like it will be a relatively simple starting point without alot of basic if this then this + this while referencing a db.


Basically what this boils down too..

- What coding language should I start with given the major I just started and task I'm looking to complete.
- Where's a decent free (for now) guide that I can pick at for completing the task at hand.
- Just general tips and advice for the major or this project.
 
Last edited:
Visual Basic .NET is relatively friendly, but not terribly efficient (not like that matters too much for what it looks like you'd be using it for). It lets you design a GUI before you put code to it. Stick a few elements in for inputs, parse any text boxes to numbers so that "7+9" doesn't equal "79"(convert.ToInt function, I think?), make a button that has a .onclick function to do whatever calculations you want, and you should be done.
As for the IDE, I'd suggest whatever the latest Visual Studio is. Used to be Visual Studio Express was the free one, but it looks like it's now called Visual Studio Community or something.

It's been a while since I've worked with any of that, but that's what we started with in college. Not sure on a guide, but I would imagine Google should have something.

It's typically pretty basic. In pseudo-code, because I don't remember a whole lot of the syntax..
Code:
me.ButtonA.onclick{
    TextboxC = TextboxA + TextboxB
}
Once you get all that in, hit "Compile and run" and test it out.
 
Last edited:
hmm ill leave that downloading while on post (currently in afghanistan)
 
Visual Basic .NET is where most CIS programs start predominantly because developing the WinForms UI is stupid easy in Visual Studio. If you have an ASPX host, you can even port a lot of the code behind to ASPX for use in a webpage. C# has the same advantages but it's a harder language to pick up because it is picky on syntax and things like event handlers are more complicated to set up.

& is the string concatenation character in VB or + in C#. System.Convert.ToInt32() can convert a string (or many other types) to an signed 32-bit integer; this is the same in all .NET languages.

VB and C# via Visual Studio can both generate Click event handlers. VB would be something like:
Code:
Private Sub ButtonClicked(ByVal sender As Object, ByVal e As EventArgs) Handles button.Click
  txtC.Text = txtA.Text & txtB.Text
End Sub
Private = can't be accessed outside of the class it resides in
Sub = Subroutine = code that executes but not return anything
Function = code that executes and returns a value (not in the above code but important to know)

ButtonClicked = the name of the subroutine
ByVal = a copy of the source
ByRef = a link to the source (not in the above code but important to know)
sender = a copy of what sent the event, for example, in this case, it would be a copy of "button."
Object = the most primitive type in .NET. It can literally contain anything.
e = event arguments which can contain extra data about the clicked event
EventArgs = the generic event arguments class found at System.EventArgs. MSDN has more information but really not too much to know about it unless you inherit the class for your own purposes. There's already a lot of derivatives of EventArgs in .NET (for example, there's a KeyEventArg that is used in the context of keyboard keystrokes).

Handles = this links an event (something that exists in other code) to actions inside of your code. In this case, it is what to do when a button is clicked.
button = The name of a button on the Windows Form
Click = The name of the event handler that's listening for and notifying of click events on that button.

Visual Studio Express is available for free for non-commercial use.
 
Last edited:
I have no idea what any of what you said means.
 
If you have zero coding background, I'd start with something more friendly like Python. You can learn the basics(list management, iteration, looping, etc.) for free from here: http://www.codecademy.com/learn
Then once you feel comfortable with that, try to move on to something tougher like one of the dotNET languages.
 
If you have zero coding background, I'd start with something more friendly like Python. You can learn the basics(list management, iteration, looping, etc.) for free from here: http://www.codecademy.com/learn
Then once you feel comfortable with that, try to move on to something tougher like one of the dotNET languages.

I recommend PyCharm for such a task. It's free for all educational institutions, and not quite as ugly as other software.
 
Sub'd for curiosity as I have been interested in basic programming as well but no nothing....
 
So right now goal is using either pycharm or visual studio, I want to create a web form that can be put on some free website that replaces the spreadsheet linked in the first post.
 
I don't know how to tie in what you posted with what I'm trying to do. Also installed pycharm, giving that a whirl.
Install Visual Studio Express, create a new Visual Basic Windows Forms application, create a button on said form, double click on said button, and you'll see code pop up similar to what I said above. I explained all of its components.


You should probably go with HTML + JavaScript. I would pass on Visual Studio and Python.

You'll need three select boxes each with an OnChange event that calls a function which in turn does all the math.
 
Last edited:
Install Visual Studio Express, create a new Visual Basic Windows Forms application, create a button on said form, double click on said button, and you'll see code pop up similar to what I said above. I explained all of its components.


If you want to skip learning the basics and go straight to web development then create an ASP.NET Web Forms project instead.

I'd love to learn the basics.. I just feel like what I got in that post is far from them as literally it's like looking at a foreign language.
 
Right now I want to make a embed-able application that can do what is simple on a spreadsheet (get a price based off variables). Baby steps... Visual studio web forms now has me messing with html, css, and randomly placed buttons that i dont know how to link or get to do what I want
 
See my edit. You'll need to familiarize yourself with HTML first. W3Schools.com is a good place to learn the basics. You'll need the HTML, HEAD, BODY, SELECT, and OPTION. If you want to keep it tabular format, you'll also need TABLE, TR (table row), and TD (table division). The whole list of them is available here: http://www.w3schools.com/tags/default.asp

Once you have your HTML document nice and tidy, you'll need to inject the JavaScript code to make it work.
 
I.. need a nap.. Haha I've never been more confused about something computer related than I am right now. The issue with the google doc is it can't be used by than 1 person at a time.. That's the primary reason I want to do this. But it's starting to seem easier to just deal with it rather than learn random languages I might not even need for my degree.

I appreciate the help but it's like your throwing parts at me with no way of linking any of it to a bigger idea.
 
Install Visual Studio Express, create a new Visual Basic Windows Forms application, create a button on said form, double click on said button, and you'll see code pop up similar to what I said above. I explained all of its components.


You should probably go with HTML + JavaScript. I would pass on Visual Studio and Python.

You'll need three select boxes each with an OnChange event that calls a function which in turn does all the math.
If you want some kind of a graphic interface online, then yea python is probably not a good idea.
 
But it's starting to seem easier to just deal with it rather than learn random languages I might not even need for my degree.
You should be able to ask what languages your CIS degree will cover.


Visual Studio takes care of virtually all the JavaScript but you still need to be familiar with HTML, VB.NET or C#.NET, and ASP.NET. The ASP.NET compiler takes care of the JavaScript that is necessary to execute the page client-side and a DLL executes the server-side code. For a task this simple, I'd still argue HTML and JavaScript would be best because using .NET, you need to familiarize yourself with a lot.

To put it into context, this should be doable in less than 50 lines of HTML/JavaScript. It would take a lot more than that to do it in ASP.NET because you'd have to author a master (template) page, the page that is viewable, and the code behind that makes it work. That also completely disregards all of the JavaScript ASP.NET imports behind the scenes.
 
Last edited:
I'd love to learn the basics.
If you want to learn the basics, then I would recommend learning the basics (for beginners):
Basics (site 1)
Basics 2 (site 2, download the book from the site)
Basics 3 (site 3, download the book from the site)
Basics 4 (site 4)

Learn the basics of programming and how computer program really works and it will be much easier to understand and learn high level languages.

Starting with a high level language and not knowing how that actually worked was the biggest mistake I made in my programming life.

I eventually had to learn all that anyway, it is a thing you will not escape (and you should not).

I am just sharing my experience with programming. Other people may disagree, but that was true for me.

Good luck!
 
Sub'd for curiosity as I have been interested in basic programming as well but no nothing....
Learn Python, it'll teach you good design.

Also, grammar mistakes will get you everywhere you don't want to be.
 
*sigh* I remember programming in Basic BASIC.... gone are the "good ole days" of Peeking and poking, and gosubs, and returns....
 
*sigh* I remember programming in Basic BASIC.... gone are the "good ole days" of Peeking and poking, and gosubs, and returns....
10 PRINT "Home"
20 PRINT "Sweet"
30 GOTO 10

Y'know, there are emulators for that kind of stuff.
 
10 PRINT "Home"
20 PRINT "Sweet"
30 GOTO 10

Y'know, there are emulators for that kind of stuff.
Oh.
My.
God.....


A C64... my first baby.... tape drive and all....


back later, hacking CompuServe.....
 
  • Like
Reactions: xvi
VB,C++,assembly
BASIC isn't used anymore.
 
Back
Top