Activity Graph

Page 1 of 1


[02:17:10] dysfigured: Quit: I hate quit messages.
[02:18:31] dysfigured: has joined #ruby


[14:02:34] dysfigured: *.net *.split
[14:03:03] dysfigured: has joined #ruby


[23:19:43] dysfigured: has left #ruby: ("I hate quit messages")


[04:17:02] dysfigured: Ping timeout: 260 seconds


[00:10:57] dysfigured: has joined #ruby


[18:26:09] dysfigured: Ping timeout: 248 seconds
[19:04:50] dysfigured: has joined #ruby
[19:38:01] dysfigured: Ping timeout: 240 seconds
[21:24:28] dysfigured: has joined #ruby
[22:25:03] dysfigured: Ping timeout: 252 seconds


[01:08:37] dysfigured: Read error: Connection reset by peer
[01:20:38] dysfigured: has joined #ruby
[01:27:00] dysfigured: Quit: I hate quit messages.
[01:27:23] dysfigured: has joined #ruby


[20:24:10] dysfigured: *.net *.split


[08:47:17] dysfigured: *.net *.split
[09:31:16] dysfigured: has joined #ruby


[19:07:54] dysfigured: *.net *.split


[02:13:57] dysfigured: *.net *.split


[05:20:02] dysfigured: Disconnected by services


[00:17:39] dysfigured: *.net *.split
[00:23:13] dysfigured: has joined #ruby


[14:17:06] dysfigured: Quit: I hate quit messages.
[14:17:24] dysfigured: has joined #ruby
[14:21:38] dysfigured: has joined #ruby


[08:07:58] dysfigured: Quit: I hate quit messages.
[08:17:26] dysfigured: has joined #ruby
[08:18:47] dysfigured: has joined #ruby


[01:06:23] dysfigured: has joined #ruby
[01:07:17] dysfigured: any linux users have any tips on parsing xprop? i want to make a script that will print _NET_DESKTOP_NAMES and highlight _NET_CURRENT_DESKTOP
[01:09:14] dysfigured: actually, http://ix.io/pdr here's the output i want to parse. so there's a line that starts _NET_DESKTOP_NAMES that has an "array" of strings with the desktop names, and _NET_CURRENT_DESKTOP contains the index of which is the current
[01:10:16] dysfigured: this is day 0 of ruby things for me, i've only so far gotten a simple grasp on the syntax (i have a lot of experience with js though)
[01:12:07] dysfigured: OO--OO: i'm pretty decent with regex. you shouldn't ask to ask though. if you'd posted your actual question this message would be answer instead
[01:20:59] dysfigured: is there an eval bot in here?
[01:21:57] dysfigured: >> s = 'http://aaa/bbb/ccc'; s.split('/').pop
[01:22:54] dysfigured: not bad for my first day? maybe?
[01:56:46] dysfigured: how does basic irc etiquette escape so many people
[03:14:53] dysfigured: code review of my first ruby? http://ix.io/pdv
[03:15:17] dysfigured: specifically, just the list function
[03:15:42] dysfigured: why would i use popen3?
[03:16:06] dysfigured: oh interesting
[03:19:17] dysfigured: what i ideally want is to use xprop -spy which is a long running process that prints changes as they happen
[03:20:39] dysfigured: but then i'd have to figure out how to print when xprop changes, instead of polling every second
[03:23:58] dysfigured: oh neat, thank you. can you explan the _, bit though?
[03:27:09] dysfigured: heh. i don't get the _ though. iinm, it's usually a throwaway variable.. which makes me think there's some destructuring going on?
[03:28:16] dysfigured: some of the 'magic' in ruby syntax makes those things a bit less obvious
[03:30:57] dysfigured: ok, what about not using a giant block of "if line matches this regex then do this"? in clojure there's like cond and condp which i think would be ideal here..
[03:31:57] dysfigured: actuall cond doesn't really make sense because i'm not assigning to the same var.. still, i can't help thinking there's something nicer than a big block of if/elsif
[03:32:24] dysfigured: :| yup, i suppose that'd do it
[03:40:08] dysfigured: man this is a lot tricker than i thought it would be.
[04:48:21] dysfigured: is there anything like ramda.js for ruby?
[04:49:19] dysfigured: it's like a general-purpose functional programming lib. it gives you curried versions of map reduce filter and dozens of others so you can compose them
[04:51:26] dysfigured: http://dry-rb.org/gems/dry-monads/ this is nice
[04:53:47] dysfigured: funkify looks great too
[04:59:40] dysfigured: thanks for the links
[21:27:42] dysfigured: would you say that ruby allows for a lot of functional programming ideas? or is it mainly for oop-like code?
[21:32:44] dysfigured: i'm coming from [mostly] javascript and i've learned a lot of FP from js, i guess i'm wondering how they compare
[21:35:06] dysfigured: oh, there's no first class functions in ruby? dang that's a bummer
[21:36:07] dysfigured: i just learned about implicit blocks with yield and that almost seems to be the same..
[21:37:36] dysfigured: ACTION wonders if you can make a curried version of map in ruby
[21:38:53] dysfigured: right, a curried version should take two, the block, and then the array
[21:39:31] dysfigured: in js with ramda you can do map(fn)(array)
[21:40:03] dysfigured: which means you can then `compose(map(fn), filter(fn))(array)
[21:50:05] dysfigured: implementation seems a bit ugly but the usage doesn't seem terrible (albeit completely alien coming from js)