11-1-2014, 07:52 PM | #1 |
FFR Veteran
Join Date: Feb 2006
Location: in your worst nightmere
Posts: 555
|
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. |
11-1-2014, 08:11 PM | #2 |
Digital Dancing!
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 31
Posts: 12,980
|
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.. |
11-1-2014, 09:50 PM | #3 | |
FFR Veteran
Join Date: Feb 2006
Location: in your worst nightmere
Posts: 555
|
Re: Beginner coder
Quote:
__________________
Reminder for self to make new sig. |
|
11-1-2014, 09:55 PM | #4 |
Digital Dancing!
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 31
Posts: 12,980
|
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.. |
11-1-2014, 10:16 PM | #5 | |
FFR Veteran
Join Date: Feb 2006
Location: in your worst nightmere
Posts: 555
|
Re: Beginner coder
Quote:
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.. |
|
11-2-2014, 01:13 AM | #6 |
Falcon Paaaauuuunch!!!!!!
|
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.
__________________
|
11-3-2014, 12:05 PM | #7 |
Rhythm game specialist.
|
Re: Beginner coder
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.. |
11-3-2014, 12:10 PM | #8 | ||
FFR Veteran
Join Date: Feb 2006
Location: in your worst nightmere
Posts: 555
|
Re: Beginner coder
Quote:
Quote:
__________________
Reminder for self to make new sig. |
||
11-3-2014, 01:16 PM | #9 |
Zageron E. Tazaterra
RRR Developer & DevOps Support
Join Date: Apr 2007
Location: BC
Age: 32
Posts: 6,586
|
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.
__________________
|
11-3-2014, 02:20 PM | #10 |
Banned
Join Date: Nov 2013
Posts: 8,563
|
Re: Beginner coder
since who already have people posting about picking up a C language, I will use this chance to say "lmfao fortran"
|
11-3-2014, 06:25 PM | #11 |
FFR Veteran
Join Date: Feb 2006
Location: in your worst nightmere
Posts: 555
|
Re: Beginner coder
whats wrong with fortran. So much hate fff.
__________________
Reminder for self to make new sig. |
11-3-2014, 09:43 PM | #12 |
Digital Dancing!
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 31
Posts: 12,980
|
Re: Beginner coder
C languages disgust me. I like VB :)
__________________
|
11-4-2014, 03:45 AM | #14 |
FFR Veteran
Join Date: Feb 2006
Location: in your worst nightmere
Posts: 555
|
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.. |
11-5-2014, 12:08 AM | #15 |
Zageron E. Tazaterra
RRR Developer & DevOps Support
Join Date: Apr 2007
Location: BC
Age: 32
Posts: 6,586
|
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.
__________________
|
11-9-2014, 12:46 AM | #16 |
Wubalubadubdub
Join Date: May 2005
Age: 36
Posts: 1,697
|
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; Code:
class SomeClass { int num; void SomeFunc(int num) { num = num; } };
__________________
boop Last edited by shenjoku; 11-9-2014 at 12:47 AM.. |
11-9-2014, 09:26 AM | #17 |
Spun a twirly fruitcake,
Join Date: Feb 2009
Age: 31
Posts: 3,865
|
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.. |
11-9-2014, 07:49 PM | #18 |
Wubalubadubdub
Join Date: May 2005
Age: 36
Posts: 1,697
|
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 |
06-10-2015, 11:04 PM | #19 |
The Worst
|
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.
__________________
|
06-10-2015, 11:09 PM | #20 |
Digital Dancing!
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 31
Posts: 12,980
|
Re: Beginner coder
Python disgusts me.
__________________
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|