logs archiveChat DB / Freenode / #programming / 2015 / November / 5 / 5
Guest96153
Will I get confused or something?
pyon
Guest96153: As long as you keep in mind that they're different languages, there shouldn't be a problem.
oded
Guest96153: you'll probably be fine
kadoban
Guest96153: They're such different languages that there's probably not a lot of danger of confusing them.
pyon
Guest96153: C++ and Haskell are just too different - there shouldn't be a risk that you confuse C++ concepts with Haskell concepts.
Guest96153
how about mixing something like Java and C++?
pyon
Guest96153: Ok, there's a bigger risk. Not because Java and C++ are actually similar (they're not), but because they *seem* to be similar.
notmybomb
rindolf: are you still thinking about it?
Guest96153
Ok
rindolf
notmybomb: well, I don't know.
notmybomb
rindolf: you don't see anything wrong with it? ._.
rindolf
notmybomb: I'm not versed in JS prototype-based OOP - it confuses me.
notmybomb: I used Joose so far for JS OOP.
notmybomb
rindolf: i see.
oh well
rindolf
notmybomb: I Should note that your pasted code is incomplete and you may have a better luck on Stack Overflow.
funrep_
can one use an arbitrary java object as an iterator?
linuxuz3r
xD
sup guys
pyon
funrep_: whut, no
linuxuz3r: Hello.
funrep_
okey
oded
funrep_: what do you mean? you can use objects that implement Enumerable or Iterable or whatever
funrep_
just wanted to do some quick stuff, btu if i need to change / define stuff i can more quickly just write a work around
oded
not sure though what you wanted Java to do when iterating this object. what does this object contain that you expected to be iterated?
funrep_
arbitrary stuff, i just realized this is not how it's done in java (because static typing)
anyone familiar with JAXB? if you have a file with for example 2 <foo> tags, how do you repreasent that as a java object? (obviously it cant have 2 foo methods)
nevermind found it
alexander_bell
http://pastebin.com/2eDcdgDH
I'm writing a class that implements callbacks using deferred in Python-Twisted
and when I supply a function reference using the self attribute within the class I get:
d.addCallback(self.handler) NameError: global name "self" is not defined
How is "self" not defined if I'm referencing it within the class?
funrep_
what is callback
alexander_bell
funrep_, what
Do you mean you don't know what a callback is?
Brando753
alexander_bell: it looks like your def main does not have self as the first argument
alexander_bell
sheeeit
funrep_
alexander_bell: yeah
alexander_bell
funrep_, http://stackoverflow.com/questions/9596276/how-to-explain-callbacks-in-plain-english-how-are-they-different-from-calling-o
funrep_
how is it different from high order functions?
pyon
funrep_: It's not.
funrep_: More precisely, a callback is just any function argument of a higher-order function.
rindolf
alexander_bell: def main(reactor, *args): ==> no self here.
alexander_bell: you need to pass self explicitly.
pyon
btw, self is just a name like any other.
The self argument of a method can be called whatever you want - calling it `self` is just a convention.
oded
but you should really call it self :)
Brando753
rindolf: morning
rindolf: or night
rindolf: or arbitrary time of day based upon geographic location of the user
rindolf
Brando753: it's morning here - 10:55
Brando753
¯\(°_o)/¯
ah nice
rindolf
Brando753: hi, sup?
Brando753
what have you been up to
alexander_bell
Oh god. I started phpstorm on my VM and now it's lagging like crazy.
pyon
oded: Well, in OCaml, where multiple inheritance is more useful than in Python, it sometimes makes sense to give different explicit names to different base objects. And you can't call them all self or super - names would collide.
alexander_bell
I made the code revisions though, thanks guys
rindolf
Brando753: I've handled the morning's email.
Brando753
rindolf: not much playing with the DM-15L I purchased and trying to sleep
oded
rindolf: same hour here! are you in my house or just above it?
rindolf
oded: I live in Tel Aviv.
oded
I live in Be'er Sheva
so above it
rindolf
oded: nice.
alexander_bell
Does anyone here use phpstorm on Ubuntu?
Does it usually cause massive performance issues or is it just because I'm on a VM with 1 gb of RAM?
rindolf
alexander_bell: what's the question? Don't ask to ask.
oded
pyon: thought we are doing Python, sorry
alexander_bell
rindolf, does PHpstorm on Ubuntu cause massive lag normally or is the lag I'm experiencing because I'm running it on a VM with 1 GB of RAM?
pyon
Anyway, be right back.
alexander_bell
I imagine there might be more than a few phpstorm users in here
rindolf
alexander_bell: isn't PHPstorm written in Java?
alexander_bell
Yes, I believe so.
rindolf
alexander_bell: well, there you go.
alexander_bell
It worked fine on windows though. I guess I should have allocated more RAM to the VM when I created it
nitrix
PHPStorm is slow on a network drive. It even warns you about that.
alexander_bell
Does a USB stick count as a network drive?
I was thinking of having my dev environment on a USB stick running Ubuntu + persistence
agorecki
!about
GitGud
!about
does nothing
agorecki
Sorry, I was trying to test my bot. I moved it to another channel
oded
pyon: did you read the entire thing or just the title? (just wondering, no hard feels of course)
GitGud
agorecki, ah okay
pyon
oded: The whole thing.
jeaye
agorecki: No noisy bots in here, please.
agorecki
I know. There are channels for bot development
oded
pyon: and you think you should have data in the relational database?
or you really meant you should use the filesystem
jeaye
pyon: How goes the clojure?
pyon
oded: What I think is that people are way too quick to dismiss the importance of structured data.
jeaye: Mostly using Racket now.
jeaye: But Clojure is fun. :-)
jeaye
pyon: Enjoy it more?
pyon
jeaye: There's nothing like syntax-parse in Common Lisp or Clojure. And it saves a lot of work.
defmacro is just too dumb. syntax-parse actually makes sense of what you're parsing, just like Haskell makes sense of what you're programming.
jeaye
I was torn between typed Racket and Clojure; I don't remember now why I chose Clojure for this. Probably the data structures.
pyon: Ah
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 next »