Skip to content

What does a programmer do in League?

a special one··93 votes·3,741 views

int()

73 Comments

GULAG 4 U33 votes

I thought cooking spaghetti lol

Dankstin3 votes

I was going to post this. Guess I'll have to cook up another pun.

notice me Sin pi15 votes

every ally Draven i get on my team Java is the only language that i know, n im not even good at it. I used ......... to represent the spaces.

if(allyTop.KDA<1||allyMid.KDA<1||allyJg.KDA<1||allySupp.KDA<1){ allyBot.run(mid); } else if(enemyJg.location==bot||allyJg.location!=bot){ ....allyBot.int(enemyJg); ....allyBot.sellAll(); ....allyBot.buy(bootsOfMobility); ....for(int i=0; i<5; i++){ .........allyBot.buy(tearOfTheGoddess); ....} } else{ ....feed(); ....flame(); ....ragequit(); }

edit: im not even sure if allyBot.int() is even compillable

Blackstone012 votes

TBH the buy function should take in two parameters, an item and a number, instead of running it in a for loop. And yeah int() should likely give a compile error simply because it's called int and that's a naughty thing to do.

notice me Sin pi1 votes

if the buy function were to take in two parameters: (item, number) then what would the number be? The array index? Cost of item? I was thinking that the player object would have an arraylist in the field data for the list of items owned by the player, and cost of item would be already in the field data of the item object.

Am i missing out something?

Last time i studied java was 2 years ago and decided computer science wasnt suitable for me.

Blackstone011 votes

No. The number of items to buy.

notice me Sin pi1 votes

we buy items one at a time in-game tho (either double-click tear 5 times, or press BUY button 5 times in this example) rather than using some command to buy multiple of the item.

If there actually is a quicker way to buy item 2055 x3 than to double click it 3 times, lemme know, it'll allow me to return to lane 0.3sec faster (which could be the difference between getting that cannon minion or losing the cannon minion)

Blackstone011 votes

Except we aren't computers. DravenBot.exe wouldn't particularly care about click speed and the like. Furthermore you will likely reuse the buy function in some way, and you buy multiple copies of the same item at times.

notice me Sin pi1 votes

Idk if u are a programmer or a computer science student, but all i know is that im already lost.

Blackstone011 votes

Comp Sci. Adding a number of items to buy would ultimately shorten the total lines of code needed.

notice me Sin pi1 votes

so do u mean just recursive calls? if so, im saying that we humans have to click with mouse every time per item when we play league and try to buy items, and for-loop describes that human action better than a recursive call. If not, im definitely and completely lost on what u r saying.

public abstract class Player{ ....//some other randoms like feed(), run(), flame(), ragequit(), etc. ....public void buy(item x, int y){ ........if(y==1) .............//add item x into player's item list .........else{ .............//add item x into player's item list .............buy(x, y-1); //im not even sure if this recursive call works, ...................................//it's been too long since i used codes ....} }

Maximum Morde14 votes

In what shitty language is int a function on its own?

deathgod51 votes

if programmed right, java

edit it would not work like the example above tho

Maximum Morde4 votes

Int isn't a function in java either. It's a data type.

deathgod52 votes

yea i was wrong, you can rewrite it to an object, not a function.

Maximum Morde4 votes

Everything in Java is an object :)

xShapoopy13 votes

Python :)

Maximum Morde7 votes

Ah, you're right. And so was I about it being a shitty language. Thanks friend!

Velzard of Koz3 votes

Triggered. Srsly why do people diss Python so much. My teacher of algorithms and data structures on first lesson: ,,While training, we'll be using pseudo-code, however all exams are in Python. I mean Python is also technically pseudo-code but no one says it out loud."

Maximum Morde3 votes

XD

If I want a scripting language I'll use LUA. If I want a full power language I'll use C++. Python simply has no reason to exist for me. Hell I'll use Java before I use Python. Everyone has their own preferences.

Shaco Psycho7 votes

Seems pretty closed minded to me. I'm a software engineer, and it just depends on the application. I've found Python invaluable for quick prototyping and AI analysis.

I also have extensive history using:

  • Java - Great for large projects
  • C++ - Great for projects requiring speed or deep hardware access
  • C - Similar to Java in that its great for large projects, but made by Microsoft
  • Basic - One of the foundations of modern programming. Not really useful anymore, but its near and dear to my heart.
  • PHP - One of the most used scripting languages of all time. Not to mention its nessecity in the world of web.
  • HTML/CSS/JS - The most superior markup language, a styling language, and the most rapidly increasing in popularity scripting language.
  • Python - Popular; invaluable in education, mathematic, and scientific applications.
  • LUA - Used frequently in game dev.
  • Assembly - Nesecary to understand the in's and out's of every other language on this list.
  • SQL - Widely used data storage scripting language

I'm honestly shocked when you said

If I want a scripting language I'll use LUA

You would use LUA over PHP, JS, SQL, and Python? I mean... To each their own, but you can't be serious?

I totally get the whole its a preference thing, but when it comes to software development, its more than just a preference. It's using the right tool for the task at hand.

Analogy: Just because I prefer a drill over a screwdriver, doesn't mean I try to take a drill into a cramped space way too small to use it.

Maximum Morde1 votes

In your analogy, I simply use the proper attachment, extended libraries, and keep using my drill. And yeah I'd use LUA over Python every time. The others have their place. LUA and Python don't really compete with PHP JS or SQL.

Shaco Psycho1 votes

What I meant by my analogy was the area where you're trying to stick the drill wasn't meant to be big enough to fit a drill in. Let's say there's a couple 2x4's in the way and the spot isn't deep enough to fit the drill.

So, the only attachment that would help you there is a snake bit which is incredibly hard to use and a pain in the rear.

Yes, you're right it's doable using work-arounds, but why waste time and resources on work-arounds when the alternative does the job for you and does it faster?

I could throw in a screw in 20 seconds using the screwdriver instead of wasting 5 minutes finding and setting up the snake bit. Like I said, it depends on the task at hand, and limiting yourself for no reason only inhibits you rather than take you further.

Maximum Morde1 votes

Your analogy is flawed though because there is literally nowhere you can fit a screwdriver that you can't fit a drill with the proper attachment. Right angle bit does wonders ;P.

In any case, to get back on actual topic. What would you do if you had already invested 20 years creating your own libraries, that do exactly what you want, how you want it done? Would you rebuild them from the ground up using a different language? Not if you didn't have to. I can understand a freshly minted engineer doing so, they don't have the libraries already built up. Some of us who've been doing it 20+ years do though.

Shaco Psycho1 votes

Or use a popular open source library? Not sure why you would be insistent on building all the libraries you use yourself.

SeaWyrm3 votes

{quoted}

  • C - Similar to Java in that its great for large projects, but made by Microsoft

In what universe is C made by Microsoft? :O Or did you mean C#?

TheLaughingHyena2 votes

He must have meant C#, considering C is not like Java. Being memory managed languages and all.

Shaco Psycho1 votes

That is correct. My bad

BLACK REALM GOD1 votes

i dont know anything about python or its competitors, but it might have something to do with ease of access, tradition, or just simply not enough variables to allow transition or complexity.

edit

let me explain by using spoken language

you have caveman language - verb+object. You go there. Take apple. Eat Apple. Make Full. You Full. No Apple. No Eat.

then there's slang - random rules based entirely on mutual understanding. Yo dog was happenin'? Cool Cool. Hungry? Aight.

then there's structure language - specific rules that have to be followed 24/7 and lead to grammar nazification.


im assuming that python is probably either slang or caveman language.

Velzard of Koz1 votes

It's more like this:

Java:

Behold, for I, a man of American lands with skin as white as snow and hair grasping the darkness of the deepest abyss am feeling such rumble in my belly that I get the feeling it may need to be fed like the great whales feed in the oceans.

C (or low-level programming):

American male with white skin; black hair: am hungry.

Python:

I hungry

BLACK REALM GOD1 votes

there are times when python could probably do a better job than c and java then. such as when something needs to run as fast as possible. you could limit code checks by removing transitional phrasing and standby formats.

java is better for creative design and python is better for informational design.

Maximum Morde1 votes

No. Python is interpreted. A compiled language like C/C++ is faster to execute(optimization held equal anyway). Java is also interpreted, but executes a bit faster than python usually.

Velzard of Koz1 votes

You can compile Python into C tho. It's because during interpretation, Python is translating itself to C anyway.

Maximum Morde1 votes

Yes. You can, with the proper setup.

Velzard of Koz1 votes

What do you mean proper setup? Compile function should be available with classic Python, libraries can be made with single simple module. That doesn't seem to me like terrible pay-off for maintaining ease of Python while making it effective.

Maximum Morde1 votes

I ment it exactly as it's typed. You just have to get it set up. Still won't be as fast as pure, but it gets close enough for most applications that it doesn't matter.

a special one1 votes

i use c++ and python, i suck at c++

RaptorKarr6 votes

Ugh! It's even worse cause I get the damn joke. >.> Take it and go. http://i.imgur.com/yYw2VbG.jpg

Asayake 5150glow3 votes

{quoted}

Ugh! It's even worse cause I get the damn joke. >.> Take it and go. http://i.imgur.com/yYw2VbG.jpg

Is that Yang?

Hyrum Graff5 votes

God dammit I thought this was someone in misc with an actual question, but then m&g.

Take your freakin' +1 and get out.

PaladinNO1 votes

Ahh! Now this makes a whole lot more sense:

http://i.imgur.com/SuZ2nvK.gif?nodirect

Maybe the new client...?

PaladinNO4 votes
Mcloved1 votes

they look at what the community wants, then make the exact opposite happen (ie: making Aatrox playable) they seen people loved urf, better make it all random urf, instead of letting people choose who they want. People liked URF? Better make it a weekend only event instead of the 2-4 weeks it was... People like playing tanks? Better make them obsolete with lethality...

Legacy Hydralpha15 votes

Sorry bud, Gameplay boards are over there.

http://www.clipartbest.com/cliparts/acq/x9y/acqx9y4Ri.jpg

TheHappyReaperz3 votes
Skins Project2 votes

Does it matter it's all a joke Either way ;)

Mcloved1 votes

actually, was proving info. besides wasn't referring to game play, was answering his question.... sorry bud.

Supreme Senpai691 votes

It wasn't an actual question it was a joke

More from Memes & Games

More by a special one