ELLIOTTCABLE changed the topic of #elliottcable to: a ρяєтту тєяяιвℓє cult
<pikajude> oh my fucking god
<pikajude> if pkg_libpath:
<pikajude> output['libraries'] += (
<pikajude> filter(None, map(str.strip, pkg_cflags.split('-L'))))
<pikajude> node.js, everybody
<pikajude> more specifically: its build system
<pikajude> see if you can spot the bug!
<whitequark> filter accepts a lambda?
<whitequark> oh
<whitequark> oh cool None is special-cased, I didn't know
<whitequark> anyway, the bug is pkg_libpath/pkg_cflags. typical
<pikajude> whitequark: so that's the first one
<pikajude> the second one you wouldn't be able to figure out just from looking at that code
<pikajude> but '-L' is not prefixed to each of those strings
<pikajude> so the build process attemps to pass a directory to the linker
<whitequark> wait
<whitequark> split('-L') is just wrong
<whitequark> like, it's so wrong, my brain papered over it
<pikajude> the way python split works, it technically is not
<whitequark> there are no circumstances where splitting over -L is not wrong
<pikajude> that's what the filter(None, ...) is for, silly!
<pikajude> first you split on '-L', then you strip out all the whitespace you have left, then you remove the None at the beginning of the string
<whitequark> well, no
<whitequark> oh, there's strip too
<whitequark> yeah, with strip it's not wrong
<whitequark> it's still a horrible idea
<whitequark> >node.js
<whitequark> why even bother
<pikajude> wait what the fuck
<pikajude> it should be pkg_libpath.split(' ')
<pikajude> because the -L is already present???
<pikajude> what the fuck
<pikajude> that entire line could be replaced with this: output['libraries'] += pkg_libpath.split()
<whitequark> assuming pkg_libpath is never None
rurik has quit [Ping timeout: 246 seconds]
rurik has joined #elliottcable
alexgordon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexgordon has joined #elliottcable
sharkbot has quit [Ping timeout: 264 seconds]
sharkbot has joined #elliottcable
Hrorek has joined #elliottcable
rurik has quit [Ping timeout: 268 seconds]
alexgordon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexgordon has joined #elliottcable
Hrorekr has joined #elliottcable
Hrorek has quit [Ping timeout: 246 seconds]
vigs has quit [Ping timeout: 244 seconds]
vigs has joined #elliottcable
eligrey has quit [Quit: Leaving]
vigs has quit [Ping timeout: 250 seconds]
vigs has joined #elliottcable
Hrorekr has quit [Quit: Leaving]
rurik has joined #elliottcable
rurik has quit [Client Quit]
rurik has joined #elliottcable
rurik has quit [Max SendQ exceeded]
rurik has joined #elliottcable
rurik is now known as akshatj
nuck has quit [Read error: Connection reset by peer]
akshatj is now known as Rurik
alexgordon has joined #elliottcable
Rurik has quit [Read error: Connection reset by peer]
Rurik has joined #elliottcable
Rurik has joined #elliottcable
eligrey has joined #elliottcable
<trolling> ELLIOTTCABLE.
<ELLIOTTCABLE> gkatsev: there's a slack?
<gkatsev> ELLIOTTCABLE: you should've gotten an invite to it
<ELLIOTTCABLE> er. not that I'm aware of.
<gkatsev> hm...
<gkatsev> it's the andyou slack
Rurik has quit [Ping timeout: 244 seconds]
Rurik has joined #elliottcable
<ELLIOTTCABLE> I dunno what that is :P
<gkatsev> well, ping them on twitter or something about it :P
<pikajude> django is bizarro world web framework
<pikajude> every time i use python for some kind of enterprise application i come back befuddled
<pikajude> "do people really use this?"
<pikajude> there are no deployment tools with any level of maturity or practical application
<pikajude> there is no separation of model vs view
<pikajude> handler functions just take a raw request object
<pikajude> the django documentation says that you can call "delete_cookie" on a response and it will "delete a cookie if it exists"
<pikajude> even though cookies are not stored on the response object
<pikajude> it just sends a Set-Cookie with a date of jan 1 00:00:00 1970
<gkatsev> the more I learn about langauges and anything the more I find python unusable for anything except simple scripts
<pikajude> it's pretty good at OOP
<pikajude> and good for teaching
<pikajude> but like, there are web frameworks and stuff written in it
<pikajude> which is what confuses me
<gkatsev> idk, python's oop is weird
<pikajude> it's like if people started writing server-side code in javascript
<gkatsev> also, the significant whitespace is terrible
<pikajude> like why would you do that
<pikajude> gkatsev: agreed
<pikajude> it's not a pretty language
<gkatsev> and while I still hate ruby
<pikajude> oh, it's better than python for sure
<gkatsev> the more I learn about it, the more I understand why
<gkatsev> and how it's core is actually quite small
<pikajude> the more you hate ruby?
<gkatsev> nah, I don't hate it quite as much
<gkatsev> but I at least understand why people would use it
sharkbot has quit [Remote host closed the connection]
<pikajude> oh i see
<pikajude> yeah i'd go with ruby all day over python
* gkatsev likes javascript and node
* gkatsev runs away
sharkbot has joined #elliottcable
Rurik has quit [Ping timeout: 264 seconds]