mspo

Activity Graph

Page 1 of 1

2019-01-14

[00:22:48] mspo: has left #ruby: ()

2019-01-11

[00:39:23] mspo: zenspider: congrats
[00:39:28] mspo: zenspider: I have 30 years to go
[00:39:58] mspo: zenspider: but I also have 17 years in so.. whatever
[01:47:12] mspo: dviola: https://www.reddit.com/r/cscareerquestions/comments/9ni46v/how_to_improve_underdeveloped_software/
[01:48:09] mspo: groovy is terrible
[01:48:23] mspo: I think it's my least favorite language I've encountered
[18:27:51] mspo: don't you probably want to use .to_r ?
[22:01:42] mspo: do whatever you do to send 1
[22:01:49] mspo: parallelize it

2019-01-10

[15:58:46] mspo: yeah stay positive when possible :)
[15:59:02] mspo: it's too easy to OR yourself into an always-true or always-false
[16:08:04] mspo: newb question- what is the %w(foo bar) doing there?
[16:09:43] mspo: I was wanting to see the ["200", "201"] form :)
[19:20:26] mspo: OOP more, obviously
[19:21:04] mspo: they wanted more inheritance?
[19:22:10] mspo: was this an interview?
[19:22:21] mspo: that is weirdly specific
[19:22:33] mspo: without a *lot* of very specific guidance being given
[19:24:03] mspo: so there were followup things in the in-person
[19:24:13] mspo: and he didn't think your initial take-home was flexible enough to solve those
[19:28:02] mspo: dviola: clearly you can only ever write in a single style and would never absorb institutional practices
[20:31:10] mspo: lrthw has a good price ;)
[21:04:39] mspo: yeah getting feedback at all is super weird
[21:04:48] mspo: usually it's just ghost you for a month :)
[21:07:00] mspo: luckily you only have to deal with working for 40 years or so
[21:09:57] mspo: zenspider: most of the way into your 40 years of work?

2019-01-09

[16:31:22] mspo: yeah seems kind of repeat-y
[16:35:25] mspo: but the order is different depending
[16:35:59] mspo: you could make the method take the field mapping as a parameter
[16:36:56] mspo: then it would be, like, if $ normalize {name => 2, city => 4, ..} ?
[16:37:31] mspo: but each field would need its own normalizing method too
[16:37:37] mspo: since you have that trick on date
[18:34:50] mspo: is there a nicer way to do this part? https://gist.github.com/phaul/be4256516ee5c0917fb57eded580303d#file-x-rb-L26
[18:38:50] mspo: phaul: bummer
[18:40:04] mspo: mozzarella: I mean it's a lot of layers

2019-01-08

[15:09:09] mspo: -> { [1,2,3] }[].select { |x| x > 2 }

2019-01-07

[15:04:45] mspo: a 200 is no different from a 404 from a 999
[15:06:22] mspo: Bish: in http a reponse has way less stuff than a request
[15:07:16] mspo: a request has a verb at least
[15:07:21] mspo: which sets context
[15:07:26] mspo: every response will have the same stuff
[15:07:32] mspo: it's much simpler
[15:07:55] mspo: http/2 screws it all up, of course :)

2019-01-05

[14:15:14] mspo: use docker

2019-01-04

[21:17:12] mspo: rubocop?

2019-01-03

[15:41:22] mspo: $thing means run to_proc on thing, right?
[15:41:47] mspo: yeah sorry- &
[15:42:04] mspo: $thing means global thing :)

2019-01-02

[21:08:19] mspo: I do workwork at home
[21:08:55] mspo: it rarely presents as "figure out how to slice a pizza in two lines of code"
[23:40:12] mspo: cthulchu_: does it dtrt if that character is wide?
[23:42:06] mspo: (fyi ruby25 seems to)
[23:42:20] mspo: with the extra annoying string: ⚛⚛⚛ :)
[23:44:53] mspo: cthulchu_: ?
[23:45:19] mspo: put it in ""

2018-12-29

[00:27:13] mspo: justache: where can I find a channel who answers "no" to that question? :)
[00:28:36] mspo: I'm in #redditaquariums and it's pretty friendly
[00:32:11] mspo: cthu|: try antifungal cream
[00:35:37] mspo: I've never used byebug

2018-12-28

[18:06:01] mspo: blockchan: your program worked for me

2018-12-27

[15:30:26] mspo: so I asked this already but didn't understand the answer. Is there a way to explicitly a method without arguments? like foo() but with foo(nil) or similar
[15:34:30] mspo: phaul: I am probably way off base but I wanted to do something like this: P.new( foo.empty? : nil ? foo )
[15:36:35] mspo: phaul: which is probably just a bad idea because I'm just learning but I was trying to find a good way to test for the argument
[15:42:13] mspo: havenwood: thanks I think I get it
[15:42:27] mspo: havenwood: *[] expands the (empty) array into nothing?
[15:48:33] mspo: havenwood: okay cool. ruby still doesn't like my bad idea but I appreciate the lesson in the *[] syntax :)
[15:49:06] mspo: nbd I just skipped having a default value for the paramter and put better testing in the initialize
[15:49:43] mspo: which got me to use a begin/rescue
[15:49:52] mspo: havenwood: I'm kind of live hacking as I learn
[19:01:50] mspo: I have another newb question. Why are methods documented (talked about) as Class#stuff but that # is not used as syntax?

2018-12-24

[19:47:44] mspo: has joined #ruby
[20:03:04] mspo: is there a way to call a method without arguments explicitly? like foo = P.new( foo.empty? : nil ? foo ) ; the P.new(nil) is not the same as P.new()
[20:05:09] mspo: oops got my ?: mixed up there, but you get it