Topic: Good programming language to learn?

Offline Pyromanik

  • Hero Member
  • Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!
  • Posts: 28,834
Quote from: AintNoMeInTeam;1337447
Quote from: Pyromanik;1337439
not true functions.

yes they are, you need to check your definition of a function.


Must be different in your language.

Lambda forms can be used wherever function objects are required. They are syntactically restricted to a single expression.
http://docs.python.org/py3k/tutorial/controlflow.html#lambda-forms

Though technically you are correct I guess, semantically they're the same.

Python is also batshit crazy, allowing nested functions :/
I guess most high level scripting languages do.

Reply #250 Posted: December 02, 2010, 12:55:48 pm
Everyone needs more Bruce Campbell.

Offline Virus.

  • Devoted Member
  • Virus. has no influence.
  • Posts: 1,817
Steam times suggest I game for a certain amount of time when I get the time, and any extra is for internet stuff.

Reply #251 Posted: December 02, 2010, 05:04:51 pm

Offline Pyromanik

  • Hero Member
  • Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!
  • Posts: 28,834
Don't panic bro; Everyone with a clue knows that steam often thinks you're playing a game when you're not.

Reply #252 Posted: December 02, 2010, 06:12:28 pm
Everyone needs more Bruce Campbell.

Offline Kayne

  • Addicted
  • Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!
  • Posts: 3,298
REVIVE!

So I've decided to pick up programming again, Except this time i'm going to learn actionscript (3?) hurrrr!!!!

Reason being is that my mate is also getting into it. We've had a few ideas for flash games and flash comic shorts.

I am googling around but im' mainly wondering does anyone know actionscript?

Reply #253 Posted: January 06, 2012, 07:49:07 pm
Quote
Top Geary - 27th May 2016 at 12:10 AM
I've learnt to ignore when you say derogatory things to me

Offline Emrico1

  • Hero Member
  • Emrico1 is a rising star!Emrico1 is a rising star!Emrico1 is a rising star!Emrico1 is a rising star!Emrico1 is a rising star!Emrico1 is a rising star!
  • Posts: 13,891
I know a little actionscript.

Enough to know that I wouldn't waste any more time on anything flash.
It's based on javascript I think, learn that, much more useful in terms of future commercial use.

You should only need the basics for flash comics either way :D

Reply #254 Posted: January 06, 2012, 09:14:19 pm

Offline Apostrophe Spacemonkey

  • Fuck this title in particular.

  • Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!
  • Posts: 19,050
Yes, Learn Javascript and HTML5. It's the way of the future.

Reply #255 Posted: January 06, 2012, 09:20:48 pm

Offline Tiwaking!

  • Hero Member
  • Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!
  • Posts: 12,577
Quote from: Emrico1;1460696
I know a little actionscript.

Enough to know that I wouldn't waste any more time on anything flash.
It's based on javascript I think, learn that, much more useful in terms of future commercial use.

You should only need the basics for flash comics either way :D
As a side note: Javascript has now caught up to Java in terms of speed for certain commands.

I would recommend javascript/html 5 also.

Plus Flash is being obsoleted now.

Reply #256 Posted: January 06, 2012, 10:54:55 pm
I am now banned from GetSome

Offline Kayne

  • Addicted
  • Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!
  • Posts: 3,298
The basics is all I'm really wanting to learn. For now, Atleast.
Although I do / did plan on making some srs-buisness flash games with 2d water physics etc.

and @Tiwa, Flash is being obsoleted now?
It seems as alive as it's always been, Explain please? :P

Btw guys i'm not planning on doing this for a career, unless there is some data job that requires programming. Every time I ask a electrician in data, they say "Yes theirs programming" but it doesn't seem to be actual code..

Reply #257 Posted: January 07, 2012, 12:01:35 am
Quote
Top Geary - 27th May 2016 at 12:10 AM
I've learnt to ignore when you say derogatory things to me

Offline Apostrophe Spacemonkey

  • Fuck this title in particular.

  • Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!
  • Posts: 19,050
Quote from: `Kayne;1460706
and @Tiwa, Flash is being obsoleted now?
It seems as alive as it's always been, Explain please? :P

Flash is still popular, however more and more internet broswers are now on mobile devices, and many don't have Flash. Javascript is standard is all the popular broswers, so if you write an app you know it will pretty much work anywhere.

Reply #258 Posted: January 07, 2012, 10:00:10 am

Offline Tiwaking!

  • Hero Member
  • Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!
  • Posts: 12,577
Quote from: Pyromanik;1337549
Must be different in your language.

Lambda forms can be used wherever function objects are required. They are syntactically restricted to a single expression.
http://docs.python.org/py3k/tutorial/controlflow.html#lambda-forms

Though technically you are correct I guess, semantically they're the same.

Python is also batshit crazy, allowing nested functions :/
I guess most high level scripting languages do.

If programming languages were English accents:
Java would be pidgin English
C# would be Oxford English
Python would be Memespeak.

Reply #259 Posted: March 18, 2012, 11:31:20 am
I am now banned from GetSome

Offline O-L-W-A-G

  • Addicted
  • O-L-W-A-G has no influence.
  • Posts: 2,121
and VB.net would be American English

Reply #260 Posted: March 18, 2012, 12:50:18 pm

Offline Pyromanik

  • Hero Member
  • Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!
  • Posts: 28,834
Ruby would be Japanese
ASM would be that crazy African language with all the ticks and clicks
C would be latin.

Reply #261 Posted: March 18, 2012, 01:26:20 pm
Everyone needs more Bruce Campbell.

Offline O-L-W-A-G

  • Addicted
  • O-L-W-A-G has no influence.
  • Posts: 2,121
BASIC would be toddlerspeak

Reply #262 Posted: March 18, 2012, 03:09:02 pm

Offline Tiwaking!

  • Hero Member
  • Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!
  • Posts: 12,577
Quote from: Spacemonkey;1336811
Quote from: Tiwaking!;1336788
The next challenge is:

GetSomeChess


Pieces have must have customisable icons. This way you can make the different pieces to be the avatars of people from the forums.

Movement rules are not too important at the moment.
Challenge accepted.


It will download your avatar from GetSomeforums, based on your profile ID. Now I have to get that chess part working.

Are you crazy???

Do you know how HARD it is to program chess? It is ridiculously hard!

I regret even issuing that challenge and would like to smack my younger self upside the head for thinking it would be easy.
En passant uses more booleans than should be allowed.
Quote from: `Kayne;1460706
The basics is all I'm really wanting to learn. For now, Atleast.
Although I do / did plan on making some srs-buisness flash games with 2d water physics etc.

and @Tiwa, Flash is being obsoleted now?
It seems as alive as it's always been, Explain please? :P

Btw guys i'm not planning on doing this for a career, unless there is some data job that requires programming. Every time I ask a electrician in data, they say "Yes theirs programming" but it doesn't seem to be actual code..

Flash is now Adobe Edge which is still essentially Flash, but better.

Not everything is convertible between the too and some recoding is required for some animations. Just a frame timing thing or something. I do not know much about making stuff in Flash.

Reply #263 Posted: January 17, 2013, 04:05:27 pm
I am now banned from GetSome

Offline Pyromanik

  • Hero Member
  • Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!
  • Posts: 28,834
Nope, Edge Animate is actually just a frontend for working with CSS Animations in a UI.
It's pretty much Dreamweaver without the rest of the internet bits.
It's in it's first version, interface wasn't that intuitive.

Flash isn't compatible because although it's ECMAScript, it's no longer Actionscript. It's Javascript.
Last Edit: January 17, 2013, 06:12:12 pm by Pyromanik

Reply #264 Posted: January 17, 2013, 06:07:57 pm
Everyone needs more Bruce Campbell.

Offline Tiwaking!

  • Hero Member
  • Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!
  • Posts: 12,577
Quote from: O-L-W-A-G;1475716
BASIC would be toddlerspeak

LISP is king

Reply #265 Posted: January 31, 2013, 08:04:17 pm
I am now banned from GetSome

Offline Kayne

  • Addicted
  • Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!Kayne is awe-inspiring!
  • Posts: 3,298
OH dear god.

Smite me now.

Strike me down with the force of a thousand suns so that I shall never see, speak or hear myself talk like I did... those 3 years ago.

God what a RETARD I was.

Oh, I guess you're only young once.

Now back to business. With my grammar & spelling improved, my brain ever so slightly more matured, I have decided to take up C# again. I have no real reason to play with it other than a keen interest in programming, nor do I have the patience to go through tutorials that seem to use a level of English unbeknownst to me, because, you know, I'm a cheap prick.

But of course, I'm not here to just do a thread revive, I'm also going to be scabby and ask for help.

Using Visual Studio 2k+15, with VISUAL C# (I think the visual part will help me learn faster, as some things are templated)

I'm trying to make a certain calculator, one that finds out the combat (overall) level when you put in what your desired stats are. I know it already exists out there on the internet, but I figured making this for myself will be an easy way to get back in.

Turns out I'm dead fucking wrong. Unholy Lucifer in the spawns of Hell, For what is easy in E2 seems harder than a frozen solid bucket of shit in C#.

I've hit a dead stop just with defining a variable. Getting some honkey ass crap about me trying to make a variable act as a type.

The code in question is this...
Code: [Select]
        private void button2_Click(object sender, EventArgs e)
        {
           public int AttackValue;
            AttackValue =int att.Value
        }

NOW LET US ALL STOP FOR A MOMENT AND LAUGH. LAUGH AT THIS THICK HEADED FOOL FOR TRYING TO MAKE A VARIABLE ACT AS A TYPE. LAUGH AND ENJOY.

God damn, this was supposed to be easy.

What I'm trying to do is, when the button is clicked, values from each NumericUpDown will be grabbed and assigned to a variable relating to that value. So att is the NumericUpDown, where I want to assign the value to AttackValue. Then the values will fall through a simple mathematical formula and set the label property (of a label) to the number that results. I know I'll need to convert it to a string for that to work. One step at a time folks.

But it's not that fucking simple.

Can someone slap me in the face and tell me what I'm doing so ungodly and awfully wrong.

I tried asking Ol' Unc'e Google, but he was drunk and just wanted cuddles and I DON'T KNOW IF I HAVE TIME FOR THAT RIGHT NOW WITH THIS SHIT ON MY MIND.

I bet if I googled the error anyway, All that would come up is a joke about a Value property rejecting someone because

THEY'RE
NOT
THEIR
TYPE.

Reply #266 Posted: November 16, 2015, 10:38:55 pm
Quote
Top Geary - 27th May 2016 at 12:10 AM
I've learnt to ignore when you say derogatory things to me

Offline toofast

  • Addicted
  • toofast barely matters.toofast barely matters.
  • Posts: 3,697
I think your problem is just some missing brackets around the second int. You need brackets around it to typecast it (tell the compiler you intentionally want to store a decimal in a integer variable).

AttackValue = (int)att.Value

Reply #267 Posted: November 17, 2015, 08:13:18 am

Offline Tiwaking!

  • Hero Member
  • Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!
  • Posts: 12,577
C# and I are not on speaking terms.
In Java it would be camel case
Code: [Select]
private void btnCalculateValue(){
int attackValue=(int)att.getValue();
}
or even
Code: [Select]
private void btnCalculateValue(){
try{
int attackValue=Integer.parseInt(att.getValue());//for string values
}catch(Exception eek){}//not a number or a string you complete moron
}

Reply #268 Posted: November 17, 2015, 08:50:30 am
I am now banned from GetSome

Offline Apostrophe Spacemonkey

  • Fuck this title in particular.

  • Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!
  • Posts: 19,050
I look forward to when computers become super intelligent and can program themselves, then they can take over the world and we'll no longer need to program them.


Reply #269 Posted: November 17, 2015, 09:19:52 am

Offline Xenolightning

  • Moderator
  • Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!
  • Posts: 3,485
You can't specify an access modifier in a method... That's reserved for declaration of fields, properties, methods or events. This isn't a C# "problem" the same technique is used across MANY languages. Should probably read the basics of C# before diving in, then complaining that the incorrect code you are writing isn't compiling.

It's as simple as:
Code: [Select]
public void Method()
{
    int localVariable;
    localVariable = (int) att.Value; //Not sure if the explicit cast is required here, as there is no context.
}

public int .... is reserved for fields in a class, e.g.

Code: [Select]
public class MyClass
{
    public int SomeClassVariable;

    public void SomeMethod()
    {
        SomeClassVariable = 1;
    }
}

Tiwa, why no TryParse? :P

C#
Code: [Select]
int number;
bool isNumber = Int32.TryParse(att.Value, out number);
Last Edit: November 17, 2015, 09:47:21 am by Xenolightning

Reply #270 Posted: November 17, 2015, 09:42:03 am
-= Sad pug is sad =-

Offline Tiwaking!

  • Hero Member
  • Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!
  • Posts: 12,577
C#
Code: [Select]
int number;
bool isNumber = Int32.TryParse(att.Value, out number);
I do not write programs to fail by accident.
If they fail, it is the users fault and you should yell at them until they leave the immediate area.

Reply #271 Posted: November 17, 2015, 03:56:14 pm
I am now banned from GetSome

Offline Apostrophe Spacemonkey

  • Fuck this title in particular.

  • Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!
  • Posts: 19,050
Here's a tip

Whenever your program throws an error, catch the exception, then initiate the self-destruct process, causing their computer to explode.

Then when they report the problem, ask if they can reproduce the issue.

Set ticket to solved and close.


Reply #272 Posted: November 17, 2015, 04:03:07 pm

Offline Tiwaking!

  • Hero Member
  • Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!
  • Posts: 12,577
Speaking of shitty programming languages: Do any of you Android programmers know how to get the absolute value of the location of a View? The api methods (getTop(), get Left(), getLocationInWindow(), getLocationOnScreen()) only give the X and Y values relative to the parent.

Reply #273 Posted: November 17, 2015, 04:09:50 pm
I am now banned from GetSome

Offline Xenolightning

  • Moderator
  • Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!
  • Posts: 3,485
I do not write programs to fail by accident.
If they fail, it is the users fault and you should yell at them until they leave the immediate area.


Code: [Select]
if(!isNumber)
{
    YellAtuser();
}

TryParse is so much nicer than try catch blocks. Code readability > everything.

getLocationOnScreen(), is the correct approach..? Needs to be run after the layout has been performed.

Yuck: http://stackoverflow.com/questions/19497402/get-position-of-imageview-relative-to-screen-programmatically
Last Edit: November 17, 2015, 05:46:04 pm by Xenolightning

Reply #274 Posted: November 17, 2015, 05:40:17 pm
-= Sad pug is sad =-