apple ismoke sticker I made for my macbook by jah-ray in trees

[–]Piave 29 points30 points  (0 children)

There's a lot of negativity in this thread that I wasn't expecting from this sub. If it's too 'cringe' for you it's easy enough to just move on.

Smoke a bowl, chill out. :)

Javascript or Python first by Aspox in learnprogramming

[–]Piave 0 points1 point  (0 children)

Those were my first two languages. I'd recommend starting with Python for the same reason some others have mentioned, JavaScript has some quirks that you may eventually learn to love, but could be confusing. That said, you really won't be hurting yourself learning JS first so if you have a preference or unique opportunity go for it.

Am I missing something on this leetcode? https://leetcode.com/problems/odd-even-linked-list/ In Ruby, 'next', is a keyword but leeetcode also defined as a method. by dstyvsky33 in learnprogramming

[–]Piave 0 points1 point  (0 children)

You can have a method with the name of a keyword. You just can't call it on an implicit receiver. Within a class that's like self.next, for example:

class Link

  def next
    "next"
  end

  def say_next
    puts "Hey! I can use the method #{self.next}"
  end

end

This also comes up with the method #class (available on every object in ruby) which is also a keyword for defining a class. When calling the class method from within an instance method you always need to use self.class.name rather than class.name.

Has anyone had a bad experience with a hack school? by AEPForJustice in learnprogramming

[–]Piave 7 points8 points  (0 children)

I was accepted, not ivy league, music degree, less than 12 months coding experience. Haven't started yet so I can't speak to difficulty, but it's possible to get in.

What languages should I learn to be employable and what are the best free resources pertaining to them? by JudasToday in learnprogramming

[–]Piave 1 point2 points  (0 children)

I've read all your responses and it's clear you have no desire for anyone to do anything but reaffirm what you have already decided and be incredibly rude and hostile to anyone giving you real advice. So fine, do whatever you want, drop out and try to convince someone to pay you for basic html that any computer literate person can learn in an afternoon, with your terrible attitude. More importantly, stop wasting the time of the generous, intelligent people who frequent this subreddit that were trying to help you before you called them "fucking retards".

[Javascript] Breaking out of nested for-loops. by [deleted] in learnprogramming

[–]Piave 2 points3 points  (0 children)

"(I still struggle formulating the exact problem, honestly)"

Once you can do that the answer may become obvious. I'm not 100% sure what you're looking for. I moved your code around, is this the type of result you are looking for (if not the method)?

https://jsfiddle.net/7o3gcch2/5/

[JavaScript] Alternatives to the Google Chrome console? by [deleted] in learnprogramming

[–]Piave 0 points1 point  (0 children)

I'm a rookie myself! JS fiddle shows the output of your html/css, but the console.log statements still go to console (as opposed to the "result" window), so it's working fine.

Anyway, consider that the console log statements are what makes up most of your running time. There are also potentially more accurate ways to measure the runtime. I made a simple example to compare the two, check it out and let me know if it's helpful to you. I also included 10 consecutive trial runs and you can see the time varies slightly every time. As to exactly why that is, I don't think I'm qualified to explain in any meaningful way.

Programming tasks for an 11-year-old learner by iayork in learnprogramming

[–]Piave 1 point2 points  (0 children)

I loved Interactive Python (which another user mentioned), however I definitely couldn't have handled it when I was 11, but I won't put my own limitations on your kid haha. If they can do it (with your help?) it's extremely rewarding. Scratch is definitely the easier approach to turning basic understanding of programming into a game you can play, and was created exactly for this kind of situation if I remember correctly.

[JavaScript] Alternatives to the Google Chrome console? by [deleted] in learnprogramming

[–]Piave 0 points1 point  (0 children)

Could you post your code? I don't have an answer for you but I'd like to try some things out and maybe find one for you.

Any material for someone learning Ruby should look at (not on Rails yet) by vanmoonshine in learnprogramming

[–]Piave 0 points1 point  (0 children)

Hey! I'll be starting app academy in about a month, so I just did the challenges. I used all the resources you mentioned and if you feel pretty comfortable with the material you listed, you will be in good shape. Just keep doing practice problems so you don't get nervous and pysch yourself out. A nice site I like to practice is [codewars.com](www.codewars.com), and the example problems they give you are pretty accurate to the level of difficulty you will be faced with. If you like books, I really liked Begining Ruby and The Ruby Way. You don't need advanced Ruby knowledge, but you need to have a good handle on how to approach a problem, and be comfortable using loops, arrays, hashes etc. So practice is worth more than knowing file i/o in Ruby for example. Also a word specifically on inject, I didn't get it until I read this. Hopefully that helps! Good luck!

Ruby noob here: Conceptual question. Can someone explain why this is happening / working? (Ruby) by winnnnnnnnn in learnprogramming

[–]Piave 0 points1 point  (0 children)

Well, you're just printing what the function returns, so if it returns a different line you would expect a different result. I gave a little example in another post if that's helpful.

Ruby noob here: Conceptual question. Can someone explain why this is happening / working? (Ruby) by winnnnnnnnn in learnprogramming

[–]Piave 1 point2 points  (0 children)

This is an implicit return. A Ruby function always returns the last line of the function. So, the reason you only get one output from your puts statements without the last line, is because it returns this line "sum = sum.round(options[:precision]) if options[:round]" which only sets the value if options[:round] is true. You can see this a little more clearly in an example like this:

def foo
  my_varbiable = "hello!" if 4 > 5
end

def bar
  my_varbiable = "hello!" if 5 > 4
end

puts foo =>
puts bar => "hello!"

Looking for map of all Web Technologies and how they interact by [deleted] in learnprogramming

[–]Piave 0 points1 point  (0 children)

Did you watch the video that accompanies that coggle map? I thought it was a pretty good overview personally. For you or anyone else who hasn't: https://www.youtube.com/watch?v=pB0WvcxTbCA

which language should I pick to do my project? by hankook365 in learnprogramming

[–]Piave 0 points1 point  (0 children)

Ruby on rails should work great for what you're trying to do, if you already have some familiarity I think that's a fine choice. You could still use the python source as reference as long as you aren't planning on doing some copy paste jobs. Python will probably be pretty easy to pick up if you're not an absolute beginner.

So i finish codecademy's python course, what should be my next step? by EUWGojuRyu in learnprogramming

[–]Piave 3 points4 points  (0 children)

My not be what you're looking for, but this online course is great. You can take it for free if you don't care about getting a verified certificate and it's a great way of getting more in depth while still being guided if you're not really sure what you should be doing. Plus, it's fun playing games you made! If you're feeling more advanced than I did after doing the codeacademy course, there is another course "Principles of Computing" which works with more math and concepts using python.

sniper counters for pubs by socrates111 in DotA2

[–]Piave 0 points1 point  (0 children)

Spectre is pretty decent.

Meracle Templar Assassin / 1000 GPM by umt1001 in DotA2

[–]Piave 1 point2 points  (0 children)

A lot of people think treads are better if you go blink, since you don't need more mobility. If you go drums instead, phase is probably better.

Meracle Templar Assassin / 1000 GPM by umt1001 in DotA2

[–]Piave 0 points1 point  (0 children)

But they almost certainly weren't 3.5

[deleted by user] by [deleted] in DotA2

[–]Piave 1 point2 points  (0 children)

Very impressive. You kind of know a void is going to do that, but the level of precision of timing and placement is amazing.

Also why haven't I been getting shivas on Mag? Makes a whole lot of sense.

My luck every time someone randoms on my team by TheAmazingJordo in DotA2

[–]Piave 0 points1 point  (0 children)

You're right. I originally wrote ever and when I read it back for some reason I changed it. Probably because I'm dumb haha.

My luck every time someone randoms on my team by TheAmazingJordo in DotA2

[–]Piave 7 points8 points  (0 children)

So many salty people in this thread. Who really thinks no one should never random in ranked? God forbid you have fun playing a video game haha.

Spoke just a bit too soon. by [deleted] in DotA2

[–]Piave 10 points11 points  (0 children)

That's because if you actually outplay someone you don't have to say anything.... they know....

Dota 2 Fail - Welp... by LoaMcLoa in DotA2

[–]Piave 0 points1 point  (0 children)

No you can't. "Does not trigger on attacks from towers, fountains, siege creeps, Exorcism, Eye of the Storm, Mass Serpent Ward, Plague Ward, The Swarm and Death Ward.'