<weaksauce>
FullMetalStacker basics of non complicated thing is to treat all the trivial setup time as trivial
<weaksauce>
O(1)
<weaksauce>
meaning constant time
<weaksauce>
as in that setup time is there regardless of how big n is
<weaksauce>
then say you have to look at the list of items once in a row. well that's O(N) since the number increases (is bound) based on the input size
<weaksauce>
you can go through the list many times say 5 times and it's still O(n)
<weaksauce>
you look at O(n^2) when you have loops that have loops so O(n^2) is when you have a loop and you loop through the list again for every element
<weaksauce>
if you had an algorithm that did something O(N) and also O(n^2) you would drop the O(n) since the O(n^2) is much bigger
<weaksauce>
that's the hand wavy intuition but there is a formal definition that you can use to prove it and if you go to a cs major you'd have to do that in a algorithms class
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
crax23 has quit [Ping timeout: 264 seconds]
grokify_ has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
<leftylink>
oho! so you see that you have written this bit of code, (x - 1).downto(0).map { |newx| arr[newx] } and you think aha! I can just replace this with arr[0..(x - 1)].reverse and it will do the same thing! but you would be wrong! surprise!
<leftylink>
ruby is too smart for you and does the wrong thing!
grokify_ has quit [Remote host closed the connection]
grokify has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.7.1]
perrierjouet has joined #ruby
grokify has quit [Remote host closed the connection]
reset has quit [Quit: reset]
Sankalp- has joined #ruby
moldorcoder7 has joined #ruby
Sankalp has quit [Ping timeout: 260 seconds]
Sankalp- is now known as Sankalp
wks has quit [Ping timeout: 256 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
goldfish has joined #ruby
grokify has quit [Remote host closed the connection]
markong has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
Michaela has quit [Remote host closed the connection]
Michaela has joined #ruby
grokify has quit [Remote host closed the connection]
goldfish has quit [Remote host closed the connection]
grokify has joined #ruby
goldfish has joined #ruby
Sankalp has quit [Ping timeout: 256 seconds]
grokify has quit [Remote host closed the connection]
graywolf has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
Sankalp has joined #ruby
Michaela has quit [Ping timeout: 255 seconds]
graywolf has quit [Quit: WeeChat 3.5]
grokify has joined #ruby
_aeris_ has joined #ruby
aeris has quit [Ping timeout: 255 seconds]
_aeris_ is now known as aeris
grokify has quit [Remote host closed the connection]
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
Michaela has joined #ruby
Michaela has quit [Remote host closed the connection]
tirnanog has joined #ruby
Michaela has joined #ruby
grokify has joined #ruby
Michaela has quit [Remote host closed the connection]
Michaela has joined #ruby
Guest89 has quit [Quit: Connection closed]
grokify has quit [Remote host closed the connection]
polishdub has joined #ruby
grokify has joined #ruby
aeris has quit [Ping timeout: 255 seconds]
aeris has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
Michaela has quit [Remote host closed the connection]
aeris has quit [Read error: Connection reset by peer]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
_aeris_ has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
Michaela has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
<ox1eef_>
adam12: I do that all the time. All my gems have a '.rb' suffix.
rvalue has quit [Ping timeout: 268 seconds]
FullMetalStacker has quit [Remote host closed the connection]
FullMetalStacker has joined #ruby
rvalue has joined #ruby
grokify has joined #ruby
rvalue has quit [Ping timeout: 264 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
stirl has joined #ruby
grokify has quit [Ping timeout: 252 seconds]
stirl has left #ruby [#ruby]
reset has joined #ruby
caedmon has joined #ruby
gonix has joined #ruby
caedmon has quit [Ping timeout: 256 seconds]
FullMetalStacker has quit [Remote host closed the connection]
FullMetalStacker has joined #ruby
soknte5 has joined #ruby
gonix has quit [Ping timeout: 260 seconds]
rvalue has joined #ruby
soknte5 has quit [Ping timeout: 268 seconds]
cartdrige has joined #ruby
grokify has joined #ruby
FullMetalStacker has quit [Remote host closed the connection]
grokify has quit [Remote host closed the connection]
FullMetalStacker has joined #ruby
grokify has joined #ruby
Michaela has quit [Remote host closed the connection]
Michaela has joined #ruby
r3m has quit [Quit: WeeChat 3.8-dev]
r3m has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
some14u has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
markong has quit [Ping timeout: 268 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
ur5us has joined #ruby
tumdum has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 256 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
tumdum has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grokify has joined #ruby
some14u has joined #ruby
grokify has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 246 seconds]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crax23 has joined #ruby
some14u has joined #ruby
<havenwood>
ox1eef_: I only add a `.rb` prefix when the name is taken when it probably shouldn't be.
<havenwood>
So very, very rarely.
<havenwood>
Have only done it once.
cartdrige has quit [Ping timeout: 265 seconds]
<ox1eef_>
I think I started doing that to distinguish Ruby projects from other languages on GitHub, and it kind of grew on me over time.