dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.1.0
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
rikai has quit [Quit: No Ping reply in 180 seconds.]
rikai has joined #cinch
rikai has quit [Changing host]
rikai has joined #cinch
rikai has quit [Quit: No Ping reply in 180 seconds.]
rikai has joined #cinch
rikai has quit [Changing host]
rikai has joined #cinch
postmodern has quit [Quit: Leaving]
aclearman037 has joined #cinch
Azure has quit [Quit: My MBP went to sleep.]
somasonic has joined #cinch
<somasonic> is there a :disconnect event?
<somasonic> i.e. disconnected from IRC server
<catepillar> yes
<somasonic> cool
<somasonic> someone should add it to the docs
<catepillar> it's a standard event
<somasonic> ok
<catepillar> if you wanna add it, submit a PR
<somasonic> thankyou for your help catepillar
<catepillar> np
<dominikh> it is documented.
<somasonic> I was referring to this page, dominikh http://rubydoc.info/github/cinchrb/cinch/file/docs/events.md
<dominikh> hm yeah, it's missing indeed
<catepillar> i assume it's part of that "events of the first 2 kinds"
<dominikh> it is not
somasonic has left #cinch ["thx"]
hobo has joined #cinch
<hobo> anybody here have a wolfram plugin working?
Azure has joined #cinch
<onewheelskyward> hobo yeah
<hobo> which gem are you using? i'm new to ruby but i'm confused about the 2 options of wolfram-alpha and wolfram
<onewheelskyward> I rolled my own. :)
<onewheelskyward> Ignore the docblock, it's a copy/paste I need to update
<hobo> cool thanks
postmodern has joined #cinch
txdv__ has joined #cinch
txdv has quit [Ping timeout: 240 seconds]
txdv__ has quit [Read error: Connection reset by peer]
<Paradox> dominikh hmm
<Paradox> i'd monkeypatch it onto string
<dominikh> Paradox: not an option.
<Paradox> maybe in helpers then?
<dominikh> mhm, yeah
<Paradox> i mean…rails patches it on strig
<dominikh> yeah, and one of Cinch's early mottos was "it's not like rails, at all" ;)
<dominikh> I'm opposed to monkeypatching core/stdlib classes
<dominikh> I suppose they make sense in Helpers
<Paradox> probably the best place for it
<dominikh> they do pollute the namespace though
<dominikh> (also why all helpers start with capital letters)
<Paradox> maybe make a new one? utilities?
<dominikh> but I don't want capitals for those two methods
<Paradox> seems like there already isnt much in helpers…
<dominikh> what's in helpers are stuff like "constructors" (the User/Channel/Timer) stuff and formatting
<Paradox> sanitize would dovetail nicely with formatting
<dominikh> currently they are in cinch/utilities/string.rb – but the whole utilities tree was supposed to be internal and private
<dominikh> maybe, but would we name it Sanitize, to match all the other methods in Helpers?
<Paradox> probably
<dominikh> and StripColors?
<Paradox> could make a few types of sanitization too
<dominikh> seems out of place
<Paradox> eh, just make stripcolors an option on santiize
<Paradox> ie Sanitize(blah, stripcolors, stripunicode
hobo has quit [Remote host closed the connection]
<Paradox> something like that
<dominikh> they're two entirely different operations :/
<dominikh> there's strip colors + sanitize, there's sanitize only, there's strip colors only
<dominikh> have fun encoding that in the arguments to one method. that's just boolean arguments hell
<Paradox> hmm yeah
<Paradox> well, you could do it with an options array
<Paradox> ie def sanitize(string, *options)
<dominikh> that's named boolean arguments ;)
<Paradox> reads nicely though
<Paradox> sanitize(mystring, :stripcolors, :stripunicode)
<dominikh> (also, it'd be stripunprintable, and that's one hell of a word)
<Paradox> well, think of it this way
<dominikh> also it makes the default harder to use
<Paradox> you have Format, which adds colors
<Paradox> so StripColors could be called UnFormat (lol)
<Paradox> because its stripping more than colors
<dominikh> also, are [:stripcolors, :stripnonprintable] and [:stripnonprintable, :stripcolors] identical?
<Paradox> its stripping bold and italic too
<dominikh> because the order of these two operations matters
<Paradox> yeah
<Paradox> probably better to keep em separate
<dominikh> (only one of the two orders makes sense)
<Paradox> but UnFormat would be a better name than StripColors
<Paradox> makes it pretty clear what it does and prevents dumb shit like "why the fuck is it stripping bold"
<Paradox> from the naive who dont understand irc programming
<Paradox> i.e. people coming from a RTF or HTTP chat client like HipChat
<dominikh> yeah, not naming it "*_colors" was on the todo already
<dominikh> Unformat may work, but it's not a real word
<Paradox> plaintextualize
<Paradox> lol i kid
<Paradox> unformat looks the best for me
<dominikh> yeah, I suppose
<dominikh> I'll add it on master and not cut a release for a while, can still rename it later then
<Paradox> worst case is you can enter alias hell
<onewheelskyward> I was just thinking that.
<dominikh> one of the items on my Cinch 3.0 (if it ever happens) todo list is "remove aliases" ;)
<Paradox> nah, aliases aint bad
<Paradox> least imo
<Paradox> they're very ruby
<onewheelskyward> I just want my method calls to do one thing, and one thing only.
<dominikh> yeah, and I don't like everything about ruby :)
<dominikh> pick a name, stick by it. don't invent 3 names for the same thing
<Paradox> yeah everyone whines about inject vs map
<Paradox> but at the end of the day who cares
<dominikh> inject and map are two different things
<dominikh> I whine about select and find_all :)
<onewheelskyward> Every time I see an inject, it makes me want a deject method.
<Paradox> err, yeah, thats the one i thought of
<Paradox> i just use rubocop to enforce a code style and call it a day
<dominikh> aliases should be entirely unnecessary
<dominikh> I shouldn't have to learn more than one name, and switch between names when working on different code bases
<dominikh> unfortunately I came to that realisation long after I added the same sort of aliases to Cinch…
<onewheelskyward> You're only ever two releases away from fixing those. First deprecate, then remove.
<dominikh> semver. no backwards incompatible changes within the same major version ;)
<Paradox> not mozver?
<Paradox> where you increment the version because why the fuck not
<dominikh> mozver – Google did it first
<onewheelskyward> goover sounds weird. Also a japanese band.
<Paradox> yeah but at least chrome introduces features with each update
<Paradox> moz is just like "oh shit google updated again!? we need to do it now"
<Paradox> lol
<dominikh> we could use gnomever – remove one useful feature per version
<Paradox> what about the part where you hire a bunch of activists and run out of money?
<dominikh> I fucked that one up, I ran out of money first.
<onewheelskyward> Bummer.
<Paradox> where are you located dominikh
<Paradox> sf?
<Paradox> if you dont mind me asking
<dominikh> Germany.
<Paradox> ah damn
<Paradox> im moving to sf and hoped to buy you a drink sometime
<Paradox> lol
<dominikh> yeah, that one never worked out for me :D
<dominikh> I'll get SO drunk once I visit the US
<onewheelskyward> If you';re ever in Portland, I'll support that cause. :)
<dominikh> :)
aclearman037 has quit []
_whitelogger has joined #cinch