spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maattdd has quit [Ping timeout: 240 seconds]
m4yfield has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
enterprisey has quit [Remote host closed the connection]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 264 seconds]
JeanCarloMachado has joined #ruby
lightheaded has quit [Ping timeout: 258 seconds]
montanonic has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
BTRE has quit [Read error: Connection reset by peer]
BTRRY has joined #ruby
marr has quit [Ping timeout: 258 seconds]
BTRRY is now known as BTRE
arescorpio has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
Trynemjoel has joined #ruby
lightheaded has joined #ruby
milardovich has joined #ruby
knight33 has joined #ruby
ElDoggo has joined #ruby
usrben has joined #ruby
HoierM has quit [Quit: Leaving]
HoierM has joined #ruby
prometheanfire has left #ruby [#ruby]
houhoulis has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 260 seconds]
cschneid_ has quit [Remote host closed the connection]
nowhereman has quit [Remote host closed the connection]
nowhereman has joined #ruby
ElDoggo has quit [Remote host closed the connection]
zeroDi has quit [Quit: WeeChat 1.7]
cschneid_ has joined #ruby
enterprisey has joined #ruby
nowhereman has quit [Remote host closed the connection]
lightheaded has quit [Ping timeout: 258 seconds]
lightheaded has joined #ruby
mzo has quit [Quit: :*]
rhyselsmore has quit [Ping timeout: 260 seconds]
<pytuger>
I was using the class example in irb from https://www.ruby-lang.org/en/ and failed to get the posted output. I used 2 spaces for indentation after class and function definition statements, and typed the code exactly as it was
<pytuger>
is my irb version to old? or is there a common logical mistake I am overlooking
<pytuger>
too old*
jnr has joined #ruby
jnr has left #ruby [#ruby]
<pytuger>
SyntaxError: (irb):24: class/module name must be CONSTANT
d^sh has quit [Ping timeout: 264 seconds]
d^sh has joined #ruby
nowhereman has joined #ruby
<havenwood>
pytuger: It sounds like the "g" in your `class Greeter` isn't uppercase?
<pytuger>
havenwood, you'd be correct. a major mistake on my part
knight33 has quit [Read error: Connection reset by peer]
milardovich has quit []
ddffg has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
cschneid_ has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 264 seconds]
roamingdog has joined #ruby
saneax-_-|AFK is now known as saneax
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
saneax is now known as saneax-_-|AFK
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
saneax-_-|AFK is now known as saneax
Derperperd has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
HippoDippo has joined #ruby
<HippoDippo>
I have not learned rails yet, and was wondering what people mean when they say "Rails has alot of magic".
<HippoDippo>
are they saying that it is very abstract and is hard to tell why things do what they do
Gigi12 has joined #ruby
houhoulis has quit [Remote host closed the connection]
<Gigi12>
Hi. Question: when an equal sign '=' appears inside a block comment, is the line following that equal sign actually evaluated?
dionysus69 has quit [Ping timeout: 240 seconds]
<elomatreb>
Gigi12: Nothing in a comment should be evaluated
anisha has joined #ruby
<Gigi12>
Thanks elomatreb. So for instance, in a rails proj, in app/assets/stylesheets/application.css , where there's a line: '*= require_tree' - that bit isn't evaluated. That's just another bit of comment?
HippoDippo has quit [Quit: Going offline, see ya! (www.adiirc.com)]
HippoDippo has joined #ruby
HippoDippo has quit [Client Quit]
renchan has joined #ruby
roflmyeggo has quit [Ping timeout: 260 seconds]
<elomatreb>
Oh, that's something else. You're in a css file and (presumably) using Sprockets, that bit will include some other files.
<elomatreb>
It's not a Ruby comment however
<elomatreb>
Gigi12: ^
<Gigi12>
elomatreb: sorry. of course! thanks for the clarification!
v1_ has joined #ruby
Gigi12 has quit [Quit: Bye]
nothingnew has quit [Remote host closed the connection]
_whitelogger has joined #ruby
jgt has joined #ruby
bkxd has joined #ruby
dionysus69 has joined #ruby
Derperperd has joined #ruby
Alina-malina has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
djbkd has quit [Quit: Leaving...]
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
ddrmanxbxfr has quit [Remote host closed the connection]
adgtl- has quit [Remote host closed the connection]
lightheaded has quit [Ping timeout: 258 seconds]
nowhereman has quit [Remote host closed the connection]
nowhereman has joined #ruby
nOwz has joined #ruby
rhyselsmore has joined #ruby
Alina-malina has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
nOwz has quit [Ping timeout: 256 seconds]
jnoob22 has quit [Ping timeout: 246 seconds]
nowhereman has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
nowhereman has joined #ruby
lightheaded has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.7]
CloCkWeRX has joined #ruby
jnoob22 has joined #ruby
jshjsh has joined #ruby
ta_ has quit [Remote host closed the connection]
JoshS has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Ping timeout: 246 seconds]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
al2o3-cr has joined #ruby
UserJosh has joined #ruby
tomphp has joined #ruby
jgt has quit [Quit: WeeChat 1.4]
jshjsh has quit [Ping timeout: 268 seconds]
willardg has joined #ruby
Pumukel has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
enterprisey has quit [Remote host closed the connection]
bkxd has joined #ruby
CloCkWeRX has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
bigkevmcd has joined #ruby
Chagel has quit [Ping timeout: 258 seconds]
roamingdog has quit []
last_staff has joined #ruby
cschneid_ has joined #ruby
govg has quit [Ping timeout: 260 seconds]
kernelPaniq has joined #ruby
conta has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
__Yiota has joined #ruby
dionysus69 has joined #ruby
yaewa has joined #ruby
moei has quit [Ping timeout: 258 seconds]
teclator has joined #ruby
uncertainty has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
vondruch has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has quit [Read error: Connection reset by peer]
lightheaded has quit [Remote host closed the connection]
mark_66 has joined #ruby
Mortomes|Work has joined #ruby
lightheaded has joined #ruby
andikr has joined #ruby
nowhereman has quit [Remote host closed the connection]
raul782 has quit [Read error: Connection reset by peer]
xen0fon has quit [Quit: xen0fon]
coatezy has quit [Ping timeout: 256 seconds]
larcara has joined #ruby
disem has joined #ruby
coatezy has joined #ruby
Fernando-Basso has joined #ruby
huddy has joined #ruby
flying has quit [Remote host closed the connection]
ghoti has quit [Ping timeout: 264 seconds]
ghoti has joined #ruby
Chagel has quit [Ping timeout: 264 seconds]
Chagel has joined #ruby
milardovich has joined #ruby
lxsameer has joined #ruby
flying has joined #ruby
xen0fon has joined #ruby
__Yiota has joined #ruby
tvw has quit [Remote host closed the connection]
larcara has quit [Remote host closed the connection]
tvw has joined #ruby
larcara has joined #ruby
jameser has joined #ruby
uncertainty has quit [Ping timeout: 264 seconds]
disem has quit []
<Bish>
since webassembly is here, has anyone ever tried compiling ruby to it?
<Bish>
i googled for it , ofc, but it's all pretty fishy
<Bish>
there is opal, which is really great, i tried doing things with it, but i ended up having super large .js files, which made it impractical
<Bish>
so, if there is webassembly, pretty soon, i wonder if there could be the all-ruby-webapplication, without disadvantages
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Chagel has quit [Ping timeout: 260 seconds]
uncertainty has joined #ruby
ldnunes has joined #ruby
Zequal has quit [Ping timeout: 240 seconds]
HoierM has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CloCkWeRX has left #ruby [#ruby]
uncertainty has quit [Ping timeout: 260 seconds]
jameser has joined #ruby
jameser has quit [Client Quit]
bkxd has joined #ruby
cullaloe has joined #ruby
JeanCarloMachado has joined #ruby
coatezy has quit [Ping timeout: 258 seconds]
cullaloe has quit [Client Quit]
jameser has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 260 seconds]
coatezy has joined #ruby
larcara has quit [Remote host closed the connection]
larcara has joined #ruby
dionysus69 has joined #ruby
jestjb has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 256 seconds]
edliss has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
larcara has quit [Ping timeout: 258 seconds]
<allisio>
Bish: Did you try passing the Opal-generated JS through Google's Closure Compiler?
synthroi_ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
edliss has joined #ruby
astrobunny has joined #ruby
uncertainty has joined #ruby
umdstu has joined #ruby
<umdstu>
how would I convert a datetime value to a 64bit unsigned integer
synthroid has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
astrobunny has quit [Remote host closed the connection]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
edliss has quit [Ping timeout: 256 seconds]
herbmillerjr has joined #ruby
<Bish>
allisio: would that make it 1/10 of the size?
<allisio>
Bish: Try it.
<Bish>
otherwise, not feasible
<Bish>
is that the correct word, no clue
jameser has joined #ruby
<allisio>
umdstu: To what end?
Qchmqs has joined #ruby
<Burgestrand>
umdstu DateTime doesn't necessarily have a numerical representation. Time does, however, and you can #to_time on DateTime.
tens0r has quit [Quit: tens0r]
lhambley has joined #ruby
fivmo has quit [Ping timeout: 260 seconds]
<lhambley>
hi all, looking for a sanity check - Time.strptime(Time.now.strftime('%s%6N'), "%s%6N") blows up with 'ArgumentError: invalid strptime format - `%s%6N'' how else is one supposed to parse microseconds without losing resolution ?
Derperperd has quit [Ping timeout: 268 seconds]
__Yiota has joined #ruby
edliss has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cibs has quit [Ping timeout: 256 seconds]
<allisio>
Everything has a numerical representation.
<Burgestrand>
Like pie.
lightheaded has quit [Remote host closed the connection]
cibs has joined #ruby
edliss has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swills has quit [Quit: Leaving]
Kug3lis has joined #ruby
<Burgestrand>
lhambley Can't tell you why you receive that error, but you can get creative and use Time.at with Rational.
<Burgestrand>
lhambley Rational allows you to express a fractional value without losing precision.
<ruby[bot]>
lhambley: # => undefined method `strptime' for Time:Class (NoMethodError) ...check link for more (https://eval.in/757550)
jameser has quit [Client Quit]
lightheaded has joined #ruby
Derperperd has joined #ruby
daBee has joined #ruby
swills has joined #ruby
pwnd_nsfw` has joined #ruby
<Burgestrand>
lhambley Wow, that's so obvious I find it funny I didn't think of it :)
<lhambley>
:) indeed
raul782 has quit [Ping timeout: 240 seconds]
<lhambley>
I suppose "%s" is "greedy", hence the problem parsing things back in
<Burgestrand>
lhambley Just make sure you convert it to an integer first, or you'll get quite a surprising result!
<Burgestrand>
>> "Hello" * 5
<ruby[bot]>
Burgestrand: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<lhambley>
quite :)
daBee has quit [Quit: daBee]
<Burgestrand>
lhambley Maybe, but my version of Ruby complains about "%6N" but it's lonesome too.
<lhambley>
I think then the simpler answer might be that strptime doesn't accept all the same tokens as strftime, which is a shame, since they link each other in the docs
<lhambley>
but fair enough, we both learned something today ;-)
pwnd_nsfw has quit [Ping timeout: 260 seconds]
larcara has joined #ruby
raul782 has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
ghoti has quit [Ping timeout: 264 seconds]
<Burgestrand>
lhambley Yeah, it's possible that the documented supported formats contains a copy-paste error :)
<Burgestrand>
lhambley i.e. the documentation lies
<lhambley>
documentation always lies :D
<Burgestrand>
;)
nobitanobi has joined #ruby
cibs has quit [Ping timeout: 246 seconds]
jane_booty_doe has quit [Quit: Leaving]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
edliss has joined #ruby
cibs has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
raul782 has quit [Ping timeout: 258 seconds]
t-recx has joined #ruby
tvw has quit []
sepp2k has joined #ruby
hutch34 has joined #ruby
Kug3lis has joined #ruby
bkxd has joined #ruby
psychicist__ has joined #ruby
unshadow has joined #ruby
Derperperd has joined #ruby
edliss has quit [Ping timeout: 264 seconds]
edliss has joined #ruby
hutch34 has quit [Ping timeout: 256 seconds]
hutch34 has joined #ruby
vifino has quit [Quit: Who turned this off?! D:<]
<unshadow>
Hi Guys, looking at the chan's rules I dont see any issues with writing thise here (If i'm mistaken please notify me and I wont do it again), The company I work at is looking for a "pure" Ruby dev, no rails, no web, full back-end and network, we are ok with working remote. see job desc here: https://www.linkedin.com/jobs/view/249908166/ (cv can be sent to hr@safe-t.com)
raul782 has joined #ruby
mzo has joined #ruby
bmurt has joined #ruby
uncertainty has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 256 seconds]
hutch34 has quit [Read error: Connection reset by peer]
Tempesta has quit [Quit: See ya!]
rgr has joined #ruby
uncertainty has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
dionysus69 has quit [Remote host closed the connection]
yeticry_ has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
yeticry has joined #ruby
chouhoulis has joined #ruby
raul782 has quit [Ping timeout: 256 seconds]
teddysmoker has joined #ruby
czeq has quit [Ping timeout: 246 seconds]
houhoulis has quit [Ping timeout: 246 seconds]
Tempesta has joined #ruby
raul782 has joined #ruby
<Bish>
i like how job offers in irc are getting more common
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
Olipro has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Remote host closed the connection]
hutch34 has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Olipro has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
DLSteve has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
baked__beans has joined #ruby
raul782 has quit [Ping timeout: 256 seconds]
ElDoggo has joined #ruby
ElDoggo has quit [Remote host closed the connection]
sleetdrop has joined #ruby
ElDoggo has joined #ruby
ElDoggo has quit [Remote host closed the connection]
GodFather has joined #ruby
<unshadow>
Bish: do they ?
<jpleau>
they think that if you can connect to irc chances are you might maybe have a brain!
patarr has joined #ruby
<unshadow>
Hm... TBH it's just a big group I usually hang in and It's a Ruby group , which is what we are serching for :)
vali has quit [Quit: vali]
larcara has quit [Read error: No route to host]
larcara has joined #ruby
Lord_of_Life has quit [Excess Flood]
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Lord_of_Life has joined #ruby
mwlang has quit [Read error: Connection reset by peer]
mwlang has joined #ruby
atom3_ has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
atom3 has quit [Ping timeout: 264 seconds]
ozcanesen has joined #ruby
millerti has joined #ruby
tomphp has joined #ruby
Pumukel has joined #ruby
Derperperd has quit [Max SendQ exceeded]
agent_white has joined #ruby
mula has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
yaewa has quit [Quit: Leaving...]
Derperperd has joined #ruby
gnufied has joined #ruby
moei has joined #ruby
lenwood has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
govg has joined #ruby
Chagel has joined #ruby
charliesome has joined #ruby
raul782 has joined #ruby
hutch34 has joined #ruby
SirFunk has quit [Ping timeout: 264 seconds]
bkxd has quit [Ping timeout: 260 seconds]
<Bish>
unshadow: well, i saw it yesterday and today, so i figured maybe it's just luck
<agent_white>
Mornin' folks
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mostlybadfly>
Might be more a Ruby thing. In case rails isn't the correct channel
<mostlybadfly>
I thought based on looking online that openssl needs to be installed but it is, but perhaps I have this installed incorrectly
esObe_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
ElDoggo has joined #ruby
esObe_ has quit [Remote host closed the connection]
vifino has joined #ruby
xen0fon has quit [Quit: xen0fon]
duckpuppy has joined #ruby
<matthewd>
mostlybadfly: Yeah, sounds like it doesn't like your openssl. Might be happier with 1.0?
Fernando-Basso has quit [Quit: WeeChat 1.7]
<herwin>
yes, openssl 1.1.0 introduced a number of backwards incompatibilities
ghoti has joined #ruby
mula has quit [Remote host closed the connection]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esObe_ has joined #ruby
<mostlybadfly>
I see , I'll give that a shot thanks!
Kug3lis has joined #ruby
Burgestrand has quit [Quit: Good bye and have a nice day!]
Burgestrand has joined #ruby
lenwood has joined #ruby
lmc has joined #ruby
chouhoulis has joined #ruby
chouhoul_ has joined #ruby
tvw has joined #ruby
raul782 has quit [Ping timeout: 260 seconds]
muelleme has joined #ruby
yehowyada has joined #ruby
synthroi_ has quit [Remote host closed the connection]
hxegon_afk has quit [Quit: leaving]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 256 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
ElDoggo has quit [Remote host closed the connection]
akahn has joined #ruby
Kug3lis has joined #ruby
saneax is now known as saneax-_-|AFK
milardovich has quit [Ping timeout: 268 seconds]
hxegon has joined #ruby
patarr_ has joined #ruby
uncertainty has quit [Ping timeout: 240 seconds]
be_______ has joined #ruby
raspado has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Derperperd has quit [Max SendQ exceeded]
ngqvhx has joined #ruby
patarr has quit [Ping timeout: 256 seconds]
synthroid has joined #ruby
rippa has joined #ruby
lenwood has quit [Ping timeout: 240 seconds]
ben___ has quit [Ping timeout: 246 seconds]
terens has quit [Remote host closed the connection]
Derperperd has joined #ruby
LyndsySimon has joined #ruby
uncertainty has joined #ruby
<LyndsySimon>
Is it possible to delete a class after you're created it in Ruby?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LyndsySimon>
I'm testing a metaclass, and I want to create a new subclass for each test run.
chouhoulis has quit [Ping timeout: 246 seconds]
<hxegon>
LyndsySimon: Maybe an anonymous class would work. What test framework you using?
<LyndsySimon>
rspec. I'm 99% sure anonymous classes are the way.
<LyndsySimon>
I can set the test subject to be a "fresh" subclass each time.
snickers has quit [Ping timeout: 240 seconds]
<hxegon>
LyndsySimon: probably, can you link to a gist?
SuperLag has quit [Quit: reboot]
Derperperd has quit [Ping timeout: 256 seconds]
mim1k has joined #ruby
yeticry_ has joined #ruby
<LyndsySimon>
hxegon: Yep, as soon as I get a working spec here, I can at least paste the spec. I don't know if I can paste the object under test or not.
milardovich has joined #ruby
ngqvhx has quit [Remote host closed the connection]
<LyndsySimon>
The `class_eval` blocks are spurious for this, but I wanted the syntax of the tests to mirror the actual usage as closely as possible so they can also serve as documentation.
BSaboia has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
saneax-_-|AFK has quit [Ping timeout: 246 seconds]
snickers has joined #ruby
Derperperd has joined #ruby
cdg has joined #ruby
blackpajamas has quit [Quit: WeeChat 1.7]
SuperLag has joined #ruby
naprimer_2 has joined #ruby
Snowy has joined #ruby
bmurt has quit [Read error: No route to host]
bmurt_ has joined #ruby
pandaant has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
naprimer has quit [Ping timeout: 256 seconds]
<hxegon>
LyndsySimon: so BaseDatatable is intended to be a superclass?
<LyndsySimon>
hxegon: Correct. Never instantiated or used directly.
admin1 is now known as roger_rabbit
roger_rabbit has quit [Changing host]
roger_rabbit has joined #ruby
<LyndsySimon>
hxegon: If I were writing Python, BaseDatatable would be an ABC (Abstract Base Class). I don't know of an analogue to that in Ruby though.
BSAlb has joined #ruby
<hxegon>
LyndsySimon: Looks good to me
teclator has quit [Remote host closed the connection]
<LyndsySimon>
👍
mwlang has quit [Quit: mwlang]
<LyndsySimon>
I'm going to write up a quick Jupyter Notebook showing how it works - it wasn't very easy to search for a solution.
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
ferr1 has quit [Quit: WeeChat 1.7]
BSaboia has quit [Disconnected by services]
BSAlb is now known as BSaboia
<hxegon>
LyndsySimon: Just for my own personal curiosity, can I see the BaseDatatable class?
<LyndsySimon>
It's a mess, contains a bit of business logic, and has a couple of TODOs left. If you're OK with that, I can strip the business logic and send you a link. One sec.
<LyndsySimon>
There is also a view helper that builds a <table> element, and an associated javascript file that initializes it properly and hooks it up to the AJAX data source.
marr123 has joined #ruby
marr is now known as Guest80359
marr123 is now known as marr
Guest80359 has quit [Killed (sinisalo.freenode.net (Nickname regained by services))]
Chagel has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
unshadow has quit [Quit: leaving]
milardovich has joined #ruby
username1 has joined #ruby
username2 has joined #ruby
Cohedrin has joined #ruby
<hxegon>
LyndsySimon: I've seen far worse messes :)
<hxegon>
LyndsySimon: I would suggest a couple of things though; remove get_ from method names, and think about extracting a column class
<LyndsySimon>
OOoh, I like the idea of extracting a column class. I'm doing quite a bit of logic on manipulating what would be its internal data, and I see more logic like that in the near future. That would make it much easier to test.
<LyndsySimon>
I agree on get_*, but I'm extended a gem with this work (ajax-datatables-rails). They're using that convention so I stuck with it.
LuckyABA has joined #ruby
benlieb has joined #ruby
<LyndsySimon>
Generally speaking if I have setters/getters on a class I prefer to hide that from the consumer. In Ruby that means writing `*=` methods; in Python that means writing property methods and setters.
aganov has quit [Remote host closed the connection]
<LyndsySimon>
baweaver: I actually didn't know that. That's awesome :)
<LyndsySimon>
I've been using Jupyter since it was iPython, before the notebook functionality was available.
<LyndsySimon>
hxegon: Well... my blog is mostly dead. At some point I'll get around to revitalizing it, and once I do I'm not sure if it will still be a traditional blog.
milardovich has joined #ruby
<LyndsySimon>
hxegon: I'm thinking it will be more like a tumblog, but with content ranging from code snippets to programming essays to photography to random jokes and such.
saneax-_-|AFK has joined #ruby
<LyndsySimon>
hxegon: I'd actually like to abandon Facebook at that point.
Burgestrand has quit [Quit: Closing time!]
raspado has quit [Read error: Connection reset by peer]
raspado has joined #ruby
Beams has quit [Quit: .]
milardovich has quit [Ping timeout: 256 seconds]
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
gusrub has joined #ruby
doublemalt_ has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
rgr has quit [Remote host closed the connection]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgr has joined #ruby
DoubleMalt has quit [Ping timeout: 256 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
rgr has quit [Remote host closed the connection]
rgr has joined #ruby
lenwood has joined #ruby
lightheaded has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Client Quit]
Pumukel has joined #ruby
mark_66 has quit [Remote host closed the connection]
dlitvak has joined #ruby
FooMunki has quit [Quit: FooMunki]
Blacink has quit [Quit: This computer has gone to sleep]
<hxegon>
mminski: what are you trying to teach with it? Do you have a game design in mind?
akahn has quit [Quit: Connection closed for inactivity]
Beams_ has joined #ruby
<mminski>
yeah teaching ruby game
nobitanobi has quit [Remote host closed the connection]
<hxegon>
ah, I see what you mean.
<mminski>
i already scrabed the data for it
<mminski>
from rubydocs
AnomalousBit has joined #ruby
tlaxkit has quit [Quit: ¡Adiós!]
<mminski>
datamined it
<hxegon>
mminski: do you have a game design in mind?
<mminski>
hxegon: yes
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
graft has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
HoierM has joined #ruby
andikr has quit [Remote host closed the connection]
<hxegon>
could you describe it?
blackmesa has quit [Ping timeout: 264 seconds]
xen0fon has quit [Quit: xen0fon]
<mminski>
youre in or out?
bkxd has joined #ruby
graft has joined #ruby
<mminski>
we could just open a bitbucket repo (git) or subversion whatever
aufi has joined #ruby
gregf_ has quit [Ping timeout: 260 seconds]
<mminski>
and start coding ^__^
<canton7>
noone's going to commit their time without more info :P
dionysus69 has quit [Ping timeout: 256 seconds]
<hxegon>
mminski: depends on the game design. I don't need a technical document, but I'd like to know what you're idea for it is before I commit to anything :)
fearoffish has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
<hxegon>
your*
jsrn_ has quit [Quit: Leaving]
<mminski>
something like super mario
<Bish>
i remember someone saying there is a shortcut to get the folder of the running file
muelleme has joined #ruby
<Bish>
something like __DIR__
<matthewd>
Bish: __dir__
<mminski>
File.dirname(__FILE__)
<adam12>
I wonder the logic behind the downcase version
<Bish>
minimalism: >shortcut
<Bish>
matthewd: *
mula has joined #ruby
anisha has joined #ruby
<Bish>
sorry minimalism your nick would've told me that you know
hahuang65 has joined #ruby
<mminski>
the game should teach the player all ruby objects and their methods
<mminski>
collecting the right method-to-object relations
edliss has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hxegon>
mminski: hmm... alright, I'm at least a bit in. Can't promise much because I'm busy right now, but if you want to start a github or bitbucket repo or whatever, we can start making a design doc
rt has quit [Ping timeout: 258 seconds]
Snowy has quit [Remote host closed the connection]
<mminski>
awesome programmer
<mminski>
i'll send you the link
Snowy has joined #ruby
tomphp has quit [Ping timeout: 240 seconds]
mula has quit [Remote host closed the connection]
gregf_ has joined #ruby
mula has joined #ruby
Snowy_ has joined #ruby
jgnagy has joined #ruby
<canton7>
adam12, __FILE__ is a constant, __dir__ is a method
baked__beans has quit [Ping timeout: 260 seconds]
<adam12>
canton7: Makes sense - thanks for the clarification.
jamesaxl has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
Snowy has quit [Ping timeout: 264 seconds]
jamesaxl has joined #ruby
itarato has quit [Quit: WeeChat 1.4]
enterprisey has quit [Remote host closed the connection]
raul782 has quit [Read error: Connection reset by peer]
raul782 has joined #ruby
duckpuppy has quit [Ping timeout: 264 seconds]
Puffball has quit [Remote host closed the connection]
uncertainty has joined #ruby
rgtk has joined #ruby
psychicist__ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
squarebracket has quit [Quit: WeeChat 1.4]
hutch34 has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
bastrud has quit [Ping timeout: 240 seconds]
username2 has quit [Ping timeout: 240 seconds]
username1 has quit [Ping timeout: 240 seconds]
<snickers>
What is the correct approach to test unit which connect to external api. Should it be tested on real api, or better monkey patch function that connect to api that it will return expected value?
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<failshell>
hello. i need to send commands into an interactive prompt from Ruby. the CLI is similar to the MySQL cli, run the command, then you get to run commands. is there a gem that exists to wrap this ? i could do it with bash and EOFs, but meh
bastrud has joined #ruby
bastrud has quit [Max SendQ exceeded]
bastrud has joined #ruby
patarr has joined #ruby
centrx has quit []
postmodern has joined #ruby
enterprisey has joined #ruby
Kug3lis has joined #ruby
Pumukel has joined #ruby
nobitanobi has joined #ruby
haylon has joined #ruby
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]