Old 11-1-2014, 07:52 PM   #1
Renevatia
FFR Veteran
FFR Veteran
 
Join Date: Feb 2006
Location: in your worst nightmere
Posts: 555
Default Beginner coder

Started like a month or so ago because I had to take a fortran class for chemistry. I quite like fortran now and I will probably use it for anything that has to do with computing/optimization.

The problem I have with fortran is so far it seems very standalone, for the lack of better words. It doesn't really interact with other programs, kind of just does its own things. Also, the version I use, fortran95, has no internal GUI library. So everything is CMD bound.

Is it a good idea to try to learn java(or if anyone has a better suggestion) and do fortran computation portion as subprocess and use java interface.

What I am trying to make is a simple calculation program where you put in some stats in each box, press some button(s) and it gives you a calculated number after some analysis with those numbers. I know it would probably be easier to write the whole thing in Java but I want to leave the computation parts to fortran, and actually know how to build something like this.

I did find an external library that can be accessed by fortran. Its called DISLIN but it looks kind of limiting. I also like java's capability to run very portably. Also, would running a subprocess in another code limit that portability?
__________________
Reminder for self to make new sig.
Renevatia is offline   Reply With Quote
Old 11-1-2014, 08:11 PM   #2
rushyrulz
Digital Dancing!
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
rushyrulz's Avatar
 
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 31
Posts: 12,979
Default Re: Beginner coder

pick up visual basic if you want to create easy to use programs with GUIs (and seems perfect for what you're trying to accomplish). Java is a good language to learn the ins and outs of programming, but it's complicated to get out of the terminal with it and other similar languages such as C and fortran.

scripting languages such as perl, python, ruby would might be worth learning if you're interested in programming on the internet. These languages are very easy to pick up as well and can do a lot of things that other languages are incapable of.
__________________



Last edited by rushyrulz; 11-1-2014 at 08:17 PM..
rushyrulz is offline   Reply With Quote
Old 11-1-2014, 09:50 PM   #3
Renevatia
FFR Veteran
FFR Veteran
 
Join Date: Feb 2006
Location: in your worst nightmere
Posts: 555
Default Re: Beginner coder

Quote:
Originally Posted by rushyrulz View Post
pick up visual basic if you want to create easy to use programs with GUIs (and seems perfect for what you're trying to accomplish). Java is a good language to learn the ins and outs of programming, but it's complicated to get out of the terminal with it and other similar languages such as C and fortran.

scripting languages such as perl, python, ruby would might be worth learning if you're interested in programming on the internet. These languages are very easy to pick up as well and can do a lot of things that other languages are incapable of.
I think I am okay if the coding itself is done without an interface. I just want to be able to make programs with simple interfaces, like buttons for controlling input to make it more user friendly
__________________
Reminder for self to make new sig.
Renevatia is offline   Reply With Quote
Old 11-1-2014, 09:55 PM   #4
rushyrulz
Digital Dancing!
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
rushyrulz's Avatar
 
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 31
Posts: 12,979
Default Re: Beginner coder

Visual Basic would be perfect, to be honest.

Here's an example of a simple program I wrote in visual basic if you want to get a grasp of the look and feel of the graphical interface:
http://puu.sh/czHP7.zip (169 kb)

It's a basic kill counter for a monster in RuneScape that provides statistics on personal drop rates of certain items, nothing spectacular. If you would like the source files for this I can provide those as well.
__________________



Last edited by rushyrulz; 11-1-2014 at 10:05 PM..
rushyrulz is offline   Reply With Quote
Old 11-1-2014, 10:16 PM   #5
Renevatia
FFR Veteran
FFR Veteran
 
Join Date: Feb 2006
Location: in your worst nightmere
Posts: 555
Default Re: Beginner coder

Quote:
Originally Posted by rushyrulz View Post
Visual Basic would be perfect, to be honest.

Here's an example of a simple program I wrote in visual basic if you want to get a grasp of the look and feel of the graphical interface:
http://puu.sh/czHP7.zip (169 kb)

It's a basic kill counter for a monster in RuneScape that provides statistics on personal drop rates of certain items, nothing spectacular. If you would like the source files for this I can provide those as well.
That does look pretty much like what I want to make.

What language is it based on in visual studio?
__________________
Reminder for self to make new sig.

Last edited by Renevatia; 11-2-2014 at 12:39 AM..
Renevatia is offline   Reply With Quote
Old 11-2-2014, 01:13 AM   #6
Doug31
Falcon Paaaauuuunch!!!!!!
FFR Simfile AuthorFFR Veteran
 
Doug31's Avatar
 
Join Date: Jun 2004
Location: Washington
Age: 36
Posts: 6,811
Send a message via AIM to Doug31
Default Re: Beginner coder

I'd recommend C sharp. It's like Java but better in most ways. And if you want to make simple GUIs, you can use something like Microsoft Visual Studio which lets you just drag and drop common controls from a toolbox onto a form directly, and then generate all the code to make it look like that for you. So you can just write the code under the scenes that does what you want it to without having to do all the annoyingly hard GUI coding.

Java can do a similar thing if you download the Netbeans IDE. It lets you make a swing GUI pretty easily but the drawback here is that almost every company is going to try to tell you how bad swing is and they're not going to use it, but it's still a good place to start if you don't care about that stuff. And you can get Netbeans for free and start making these things, unlike any good way I know of doing an equivalent for C sharp.
__________________
Doug31 is offline   Reply With Quote
Old 11-3-2014, 12:05 PM   #7
TC_Halogen
Rhythm game specialist.
Retired StaffFFR Simfile AuthorFFR Music ProducerD8 Godly KeysmasherFFR Veteran
 
TC_Halogen's Avatar
 
Join Date: Feb 2008
Location: Bel Air, Maryland
Age: 32
Posts: 19,376
Send a message via AIM to TC_Halogen Send a message via Skype™ to TC_Halogen
Default Re: Beginner coder

Quote:
Originally Posted by Doug31 View Post
I'd recommend C sharp. [...]
I very highly second this. For someone who is learning programming, I am against Visual Basic only because the syntax is actually somewhat anomalous compared to other programming languages (your typical semi-colons and closing brackets cause syntax errors in VB!?).

Last edited by TC_Halogen; 11-3-2014 at 12:05 PM..
TC_Halogen is offline   Reply With Quote
Old 11-3-2014, 12:10 PM   #8
Renevatia
FFR Veteran
FFR Veteran
 
Join Date: Feb 2006
Location: in your worst nightmere
Posts: 555
Default Re: Beginner coder

Quote:
Originally Posted by TC_Halogen View Post
I very highly second this. For someone who is learning programming, I am against Visual Basic only because the syntax is actually somewhat anomalous compared to other programming languages (your typical semi-colons and closing brackets cause syntax errors in VB!?).
Quote:
Originally Posted by Doug31 View Post
I'd recommend C sharp. It's like Java but better in most ways. And if you want to make simple GUIs, you can use something like Microsoft Visual Studio which lets you just drag and drop common controls from a toolbox onto a form directly, and then generate all the code to make it look like that for you. So you can just write the code under the scenes that does what you want it to without having to do all the annoyingly hard GUI coding.

Java can do a similar thing if you download the Netbeans IDE. It lets you make a swing GUI pretty easily but the drawback here is that almost every company is going to try to tell you how bad swing is and they're not going to use it, but it's still a good place to start if you don't care about that stuff. And you can get Netbeans for free and start making these things, unlike any good way I know of doing an equivalent for C sharp.
Got any pointers as where is a good place to start with C#? Book or online sources. How come C# instead of C++?
__________________
Reminder for self to make new sig.
Renevatia is offline   Reply With Quote
Old 11-3-2014, 01:16 PM   #9
Zageron
Zageron E. Tazaterra
RRR Developer & DevOps Support
AdministratorDeveloperFFR Veteran
 
Zageron's Avatar
 
Join Date: Apr 2007
Location: BC
Age: 32
Posts: 6,586
Default Re: Beginner coder

C# has powerful Visual Studio support for GUI out of the box. C++ is command line for a fair number of years before you'd be ready to integrate DirectX or OpenGL / SDL and understand what you're doing. Search for Visual Studio C# forms.
__________________
Zageron is offline   Reply With Quote
Old 11-3-2014, 02:20 PM   #10
choof
Banned
Retired StaffFFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
Join Date: Nov 2013
Posts: 8,563
Default Re: Beginner coder

since who already have people posting about picking up a C language, I will use this chance to say "lmfao fortran"
choof is offline   Reply With Quote
Old 11-3-2014, 06:25 PM   #11
Renevatia
FFR Veteran
FFR Veteran
 
Join Date: Feb 2006
Location: in your worst nightmere
Posts: 555
Default Re: Beginner coder

Quote:
Originally Posted by choof View Post
since who already have people posting about picking up a C language, I will use this chance to say "lmfao fortran"
whats wrong with fortran. So much hate fff.
__________________
Reminder for self to make new sig.
Renevatia is offline   Reply With Quote
Old 11-3-2014, 09:43 PM   #12
rushyrulz
Digital Dancing!
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
rushyrulz's Avatar
 
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 31
Posts: 12,979
Default Re: Beginner coder

C languages disgust me. I like VB :)
__________________


rushyrulz is offline   Reply With Quote
Old 11-3-2014, 11:35 PM   #13
21992
Proud Indian 7-11 Owner
FFR Veteran
 
21992's Avatar
 
Join Date: Jul 2009
Posts: 466
Default Re: Beginner coder

I'm currently in AP computer science and my teacher's website has everything you need to learn java! Good Luck!
__________________
Zakvvv666's Graduation Tournament Division 3 1st place

6th FFR Official Tournament Division 3 6th Place

Silly/Sax's Summer Sensation Division 4 2nd Place

Dragon Fury's Custom Tourney 8 Division 5B 4th Place


Just Your Amatuer Simfilier
21992 is offline   Reply With Quote
Old 11-4-2014, 03:45 AM   #14
Renevatia
FFR Veteran
FFR Veteran
 
Join Date: Feb 2006
Location: in your worst nightmere
Posts: 555
Default Re: Beginner coder

Started doing C# in VB. Still using the console in it to get the basics down though.

Edit:

What is the "This." keyword in instantiated variables.
Why wouldn't you just use a variable with a different name inside the constructor instead of using something like

class
int num;

constructor
num = number;

Instead of:

constructor
this.number = number;
__________________
Reminder for self to make new sig.

Last edited by Renevatia; 11-4-2014 at 11:05 PM..
Renevatia is offline   Reply With Quote
Old 11-5-2014, 12:08 AM   #15
Zageron
Zageron E. Tazaterra
RRR Developer & DevOps Support
AdministratorDeveloperFFR Veteran
 
Zageron's Avatar
 
Join Date: Apr 2007
Location: BC
Age: 32
Posts: 6,586
Default Re: Beginner coder

For clarity. Many prefer precise variable naming. I prefer Hungarian notation.
There are other reasons, much much more advanced, for the this keyword to exist.
__________________
Zageron is offline   Reply With Quote
Old 11-9-2014, 12:46 AM   #16
shenjoku
Wubalubadubdub
FFR Veteran
 
shenjoku's Avatar
 
Join Date: May 2005
Age: 36
Posts: 1,697
Default Re: Beginner coder

Building off of what Zageron mentioned, one super important thing you need to learn is how to name member variables differently from parameters and other temp variables. If you can't immediately tell if a variable is a member just by the name then you need to rethink your naming convention. I've run in to way too many problems due to poor naming conventions.

For example in your class sample:
Code:
class
int num;
Make it m_num or something similar to make it very obvious that it's a member and not just a local temp variable. That way if you have a function that takes in a number that you want to call num you won't be confused as hell trying to figure out which num is the member and which is the input parameter. For example, try to guess what happens in this situation:

Code:
class SomeClass
{
    int num;

    void SomeFunc(int num)
    {
        num = num;
    }
};
Sure you could do this.num = num, but even that is kinda ugly. Do you really want to have to remember to prefix every member with "this."? If you forget then you'll completely screw yourself and have to hunt down a really hard to find bug.
__________________
boop

Last edited by shenjoku; 11-9-2014 at 12:47 AM..
shenjoku is offline   Reply With Quote
Old 11-9-2014, 09:26 AM   #17
SKG_Scintill
Spun a twirly fruitcake,
FFR Simfile AuthorFFR Veteran
 
SKG_Scintill's Avatar
 
Join Date: Feb 2009
Age: 31
Posts: 3,865
Default Re: Beginner coder

I don't see the problem with using "this.", it's just a way to get the variable with that name of "this" class.
Otherwise you're referring to the argument of your method, which has the same name.

Last edited by SKG_Scintill; 11-9-2014 at 09:27 AM..
SKG_Scintill is offline   Reply With Quote
Old 11-9-2014, 07:49 PM   #18
shenjoku
Wubalubadubdub
FFR Veteran
 
shenjoku's Avatar
 
Join Date: May 2005
Age: 36
Posts: 1,697
Default Re: Beginner coder

If you make sure your members don't clash with the names of parameters or local temp variables then you shouldn't need to use "this.whatever" ever. If you can remember to always use this to lookup members then I suppose it works, but I've had to debug many bugs caused by locals and members having the same name so I feel like it's safer to have a solid naming convention that doesn't do that ever.
__________________
boop
shenjoku is offline   Reply With Quote
Old 06-10-2015, 11:04 PM   #19
FoJaR
The Worst
 
FoJaR's Avatar
 
Join Date: Nov 2005
Location: space ghost is dead to me
Posts: 2,816
Send a message via AIM to FoJaR Send a message via MSN to FoJaR
Default Re: Beginner coder

i know i'm like 6 months late, but you're all wrong.

python is the answer. qt if you want a gui.

i'm less anti c# now that .net is going open source, but python is simple and easy. definitely something for someone who is just getting into coding, especially if integrating fortran code is something that you're looking for.
__________________
FoJaR is offline   Reply With Quote
Old 06-10-2015, 11:09 PM   #20
rushyrulz
Digital Dancing!
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
rushyrulz's Avatar
 
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 31
Posts: 12,979
Default Re: Beginner coder

Python disgusts me.
__________________


rushyrulz is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 12:16 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution