What does a programmer do in League?
int()
int()
I thought cooking spaghetti lol
I was going to post this. Guess I'll have to cook up another pun.
every ally
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
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.
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.
No. The number of items to buy.
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
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)
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.
Idk if u are a programmer or a computer science student, but all i know is that im already lost.
Comp Sci. Adding a number of items to buy would ultimately shorten the total lines of code needed.
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
....}
}
In what shitty language is int a function on its own?
if programmed right, java
edit it would not work like the example above tho
Int isn't a function in java either. It's a data type.
yea i was wrong, you can rewrite it to an object, not a function.
Everything in Java is an object :)
Python :)
Ah, you're right. And so was I about it being a shitty language. Thanks friend!
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."
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.
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:
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.
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.
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.
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.
Or use a popular open source library? Not sure why you would be insistent on building all the libraries you use yourself.
- 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#?
He must have meant C#, considering C is not like Java. Being memory managed languages and all.
That is correct. My bad
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.
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
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.
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.
You can compile Python into C tho. It's because during interpretation, Python is translating itself to C anyway.
Yes. You can, with the proper setup.
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.
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.
i use c++ and python, i suck at c++
Ugh! It's even worse cause I get the damn joke. >.> Take it and go. http://i.imgur.com/yYw2VbG.jpg
Ugh! It's even worse cause I get the damn joke. >.> Take it and go. http://i.imgur.com/yYw2VbG.jpg
Is that Yang?
God dammit I thought this was someone in misc with an actual question, but then m&g.
Take your freakin' +1 and get out.
Ahh! Now this makes a whole lot more sense:
http://i.imgur.com/SuZ2nvK.gif?nodirect
Maybe the new client...?
What does a programmer do in League?
https://thesaleswars.files.wordpress.com/2012/05/istock_000004122788small.jpg
??
they look at what the community wants, then make the exact opposite happen (ie: making
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...
Sorry bud, Gameplay boards are over there.
Actually, they are that way. http://worldartsme.com/images/left-pointer-clipart-1.jpg
Does it matter it's all a joke Either way ;)
Actually, they are that way. http://worldartsme.com/images/left-pointer-clipart-1.jpg
actually, was proving info. besides wasn't referring to game play, was answering his question.... sorry bud.
It wasn't an actual question it was a joke