--- Log opened Thu Nov 06 00:00:05 2014 |
00:54 | | Harlow [harlow@Nightstar-pq0497.il.comcast.net] has joined #code |
02:04 | < Harlow> | so I have a good question, why can't sub classes inherit their parents private variables? is space for those variables still created when i create a subclass? |
02:04 | <&McMartin> | (a) definition of "private" (if they can, it's called "protected" instead); (b) Yes it is, because when you call into the parents' methods those methods can see them |
02:09 | <~Vornicus> | Your children can't touch your privates |
02:09 | <~Vornicus> | your friends can |
02:09 | <@Reiv> | Not without serious security concerns. |
02:09 | <@Reiv> | >_> |
02:17 | | Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has quit [Ping timeout: 121 seconds] |
02:27 | | Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code |
02:27 | | mode/#code [+o Reiv] by ChanServ |
02:27 | | Thalass [thalass@Nightstar-b3055v.bigpond.net.au] has quit [Ping timeout: 121 seconds] |
02:30 | | Checkmate [Z@Nightstar-ajg.slu.72.87.IP] has quit [Ping timeout: 121 seconds] |
02:32 | <@celticminstrel> | Does any language other than C++ have friends? |
02:32 | | * celticminstrel thinks friends are a good thing though. |
02:37 | <&McMartin> | Python just doesn't have data protection |
02:46 | <~Vornicus> | Java doesn' have friends |
02:46 | <~Vornicus> | Most languages don't bother with data protection, that I'm aware of |
02:46 | <~Vornicus> | oh, I guess php has it |
02:48 | <@Alek> | ... |
02:48 | <&ToxicFrog> | Java and Scala don't have it. Lua and Python don't have data protection at all except by convention. |
02:48 | <@Alek> | something php is actually good for??? |
02:48 | <~Vornicus> | Wrong |
02:49 | <&ToxicFrog> | The fact that this is a feature apparently found only in PHP and C++ is a pretty strong argument that it's a bad idea, IMO~ |
02:49 | <&McMartin> | C++ has a use case Java does not |
02:49 | <&McMartin> | Which is "functions outside of classes that need to operate like methods" |
02:49 | <&McMartin> | Mostly for things like output overloading |
02:50 | <&McMartin> | I'm not willing to state outright that having a type forest instead of a type tree is an error, but Java having an "Object" class is why it doesn't need it |
02:50 | <@celticminstrel> | I don't see why it's a bad idea. |
02:50 | <~Vornicus> | php doesn't have friends |
02:51 | <~Vornicus> | or at least not that I'm aware of, but my knowledge of the deep shit of php is fortunately still relatively lo |
02:51 | <~Vornicus> | w |
02:55 | <&McMartin> | PHP only has enemies |
02:57 | <@Alek> | \o/ |
03:01 | | Thalass [thalass@Nightstar-b3055v.bigpond.net.au] has joined #code |
03:01 | | mode/#code [+o Thalass] by ChanServ |
03:06 | | orth [orthianz@Nightstar-dvd.0jj.224.119.IP] has joined #code |
03:07 | < Xon> | McMartin, C# kinda has something like "friend". 'internal' is public for the current DLL module but private outside of it (and then you can use attributes to allow other modules to see them) |
03:08 | | orth [orthianz@Nightstar-dvd.0jj.224.119.IP] has quit [Connection closed] |
03:28 | <&McMartin> | Xon: Yeah, Java has something like that too ("package scope"). |
03:28 | <@Alek> | I'm not scoping no packages |
03:46 | | Kindamoody[zZz] is now known as Kindamoody |
04:21 | | Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving] |
04:36 | < Lambo> | <Xon> McMartin, C# kinda has something like "friend". 'internal' is public for the current DLL module but private outside of it (and then you can use attributes to allow other modules to see them) <-- I think protected is internal to the object and anything that inherits it, don't quote me on that though |
04:36 | < Lambo> | A protected member of a base class is accessible in a derived class only if the access occurs through the derived class type. For example, consider the following code segment: |
04:36 | < Lambo> | now you can quote me on that |
04:36 | < Lambo> | http://msdn.microsoft.com/en-us/library/bcd5672a.aspx |
04:43 | < Xon> | Lambo, yes it also has protected in C# |
04:43 | < Xon> | but it is internal which is like firend |
04:43 | < Xon> | friend* |
04:56 | < Lambo> | right |
06:21 | | himi [fow035@Nightstar-dm0.2ni.203.150.IP] has quit [Ping timeout: 121 seconds] |
06:29 | | Thalass [thalass@Nightstar-b3055v.bigpond.net.au] has quit [Ping timeout: 121 seconds] |
06:47 | < Lambo> | http://www.theregister.co.uk/2014/11/06/languages_dont_breed_bugs_people_breed_b ugs/ |
06:47 | | Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds] |
06:47 | | Syka [the@Nightstar-c409v3.vividwireless.net.au] has quit [Ping timeout: 121 seconds] |
06:47 | | Syka [the@Nightstar-c409v3.vividwireless.net.au] has joined #code |
06:48 | | Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code |
06:48 | | mode/#code [+o Syloq] by ChanServ |
06:49 | <&jeroud> | Are the people in that URL entomologists? |
06:50 | < Lambo> | they're programmers |
06:50 | < Lambo> | so close enough |
07:09 | | Harlow [harlow@Nightstar-pq0497.il.comcast.net] has quit [[NS] Quit: BED] |
07:10 | <@abudhabi> | Interesting. |
07:52 | | Kindamoody is now known as Kindamoody|afk |
08:18 | | Orthia [orthianz@Nightstar-dvd.0jj.224.119.IP] has quit [Ping timeout: 121 seconds] |
08:22 | | Orthia [orthianz@Nightstar-4tc.inp.224.119.IP] has joined #code |
08:22 | | mode/#code [+o Orthia] by ChanServ |
08:37 | | thalass [thalass@Nightstar-cdvd7b.bigpond.net.au] has joined #code |
08:37 | | mode/#code [+o thalass] by ChanServ |
08:51 | | mac is now known as macdjord|slep |
09:57 | | thalass [thalass@Nightstar-cdvd7b.bigpond.net.au] has quit [Ping timeout: 121 seconds] |
10:03 | | celticminstrel [celticminst@Nightstar-l2rg83.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
10:25 | <@abudhabi> | Hmm. Java. What's the proper way to implement a two-way browsable folder-like structure? I mean, from the code level, I'd like to refer to an instance's "parent", and see its "children" (the latter is easy). |
10:26 | <&McMartin> | Have the parent pass itself to the children's constructor, and let the children thus register who their parent is |
10:28 | <@abudhabi> | How does that work in Java? I'm a bit puzzled, what with the lack of pointers; I'm unclear what becomes a local copy and what is actually a reference to a difference object. |
10:29 | <&McMartin> | So, you've got some kind of Node structure here, that has a Collection of children, right? |
10:29 | <&McMartin> | Basically, though, if you made it, directly or indirectly, with "new", it is a pointer. |
10:29 | <&McMartin> | So if you as the parent hand the children the pointer "this", they will get a reference to you. |
10:30 | <@abudhabi> | I'm thinking of something like a non-binary tree-like thing, where each node can have an arbitrary amount of successors. |
10:30 | <&McMartin> | Yep, so, Collection of children, yeah |
10:30 | <&McMartin> | Arbitrary successors, but only one parent |
10:30 | <@abudhabi> | Yes. |
10:30 | <&McMartin> | Node parent; Collection<Node> children; |
10:30 | <@abudhabi> | (BBS: Lunch.) |
10:30 | <&McMartin> | void setParent(Node p) { parent = p; } |
10:33 | <@froztbyte> | eh, doesn't java have super? |
10:33 | <@froztbyte> | it doe |
10:33 | <@froztbyte> | s |
10:35 | <@TheWatcher> | That's to get the superclass of your current class, not the parent who created you, though. |
10:37 | <&McMartin> | Yeah, this is for an n-ary tree with double links. |
10:37 | <&McMartin> | Which is absolutely a thing; my C red-black trees do it, and if you treat pointers you don't do arithmetic to as references the Java code would be totally equivalent |
10:57 | <@froztbyte> | McMartin: oh, true |
10:57 | <@froztbyte> | err, TheWatcher* |
10:58 | <@Tarinaky_> | So. I want to call some Windows API stuff through Ruby's FFI. |
10:58 | | ToxicFrog_ [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code |
10:58 | <@Tarinaky_> | http://msdn.microsoft.com/en-us/library/windows/desktop/dd371029%28v=vs.85%29.as px describes the function I want to use |
10:58 | <@Tarinaky_> | And it mentions how to include it in C++ code, with the header's name... |
10:58 | <@Tarinaky_> | But it doesn't tell me which DLL/OCX implements it. |
10:59 | <@Tarinaky_> | Hopefully you can see from the description why I don't need a thin C-layer between the Ruby and the C++ |
10:59 | | ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds] |
10:59 | <@Tarinaky_> | It'd be easier to just handle the HRESULT in RUby and raise exceptions there |
11:00 | <@Tarinaky_> | Any ideas how I find out where that function lives as object code? |
11:00 | <@Tarinaky_> | Or what's the proper idiom for exporting a thin C API layer |
11:01 | <@abudhabi> | McMartin: Thanks! I'll test that out when I'm home. |
11:01 | <@Tarinaky_> | Seems silly :/ |
11:02 | <@Tarinaky_> | I suppose I do need the thin C layer, because it's a C++ function which implies name mangling... |
11:02 | | * Tarinaky_ blarghs |
11:06 | <&McMartin> | Tarinaky_: Hey, this looks like a COM object. |
11:06 | <&McMartin> | Does Ruby have a COM API? |
11:08 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
11:08 | | mode/#code [+o himi] by ChanServ |
11:08 | <@Tarinaky_> | McMartin: I have an FFI API I can use to bind DLLs |
11:08 | <@Tarinaky_> | I'm not quite sure what COM is. |
11:08 | | * Tarinaky_ isn't a Windows developer... yes >.< |
11:10 | <&McMartin> | Windows is a very large set of techs |
11:10 | <&McMartin> | COM is somewhere between DBus and a way to bind C++ to a bunch of things |
11:10 | | Orthia [orthianz@Nightstar-4tc.inp.224.119.IP] has quit [Ping timeout: 121 seconds] |
11:11 | <@Tarinaky_> | Yes, well... |
11:11 | <&McMartin> | I suspect that you'll need to write a C wrapper that's less thin, to acquire the object properly and invoke that method and such |
11:11 | <@Azash> | https://github.com/now/com |
11:11 | <@Tarinaky_> | This is complicated by the fact that up until this point our playback record has been with Portaudio... |
11:11 | <@Azash> | Hope that helps any |
11:11 | <@Tarinaky_> | But Portaudio doesn't seem to export the /specific/ functionality I need >.< |
11:12 | <@Tarinaky_> | Oh, I've used WIN32OLE already... |
11:12 | | * Tarinaky_ looks through the sphegetti |
11:13 | <&McMartin> | I, on the other hand, know basically nothing of Ruby, so, welp~ |
11:13 | <@Azash> | McMartin: Do learn it, it's a nice language |
11:13 | <@Tarinaky_> | I don't think I have a RUby problem... |
11:14 | <@Tarinaky_> | Being told it's a COM object is greatly helpful. |
11:15 | | Orthia [orthianz@Nightstar-dvd.0jj.224.119.IP] has joined #code |
11:15 | | mode/#code [+o Orthia] by ChanServ |
11:20 | | * abudhabi appoints himself the comment writer for a colleague's code. |
11:24 | <@TheWatcher> | My sympathies. |
11:25 | <@abudhabi> | I'm supposed to be learning WTF is going on in this project, and this seems like a good way. |
11:26 | <@TheWatcher> | That is a valid approach, yes |
11:26 | <@Azash> | http://www.reddit.com/r/programming/comments/2lea0u/whats_your_most_controversia l_technical_opinion/ |
11:27 | <@Azash> | abudhabi: See if you can find some automated tools for plotting relationships between classes/files, and database tables |
11:27 | <@TheWatcher> | (Unfortunately it is also usually a valid approach to "losing all vestiges of sanity"~) |
11:30 | <@Tarinaky_> | abudhabi: I would advice writing unittests as well, unless they already exist, as a way to verify your assumptions. |
11:34 | <@Azash> | That can have the unwanted result of ending up writing new test data as well |
11:35 | <@abudhabi> | Neat! They are paying me the full salary for October, even though I've started on the 20th. :D |
11:36 | <@TheWatcher> | awesome |
11:41 | <@TheWatcher> | abudhabi: the project is in Java, I assume? |
11:41 | <@TheWatcher> | If so: javadoc comments, plzkthnxbai. |
11:44 | <@abudhabi> | Yes, that's what I'm doing. |
11:44 | <@TheWatcher> | Good man. |
11:47 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
11:47 | | mode/#code [+o Checkmate] by ChanServ |
12:01 | | thalass [thalass@Nightstar-cdvd7b.bigpond.net.au] has joined #code |
12:01 | | mode/#code [+o thalass] by ChanServ |
12:11 | | thalass [thalass@Nightstar-cdvd7b.bigpond.net.au] has quit [[NS] Quit: brb] |
12:31 | | * TheWatcher hates all over HTML email |
12:42 | | thalass [thalass@Nightstar-cdvd7b.bigpond.net.au] has joined #code |
12:42 | | mode/#code [+o thalass] by ChanServ |
13:01 | | thalass is now known as Thalass|afk |
13:10 | | * Tarinaky_ hates on people who go to the trouble of writing an API but then leave the API documentation sparse. |
13:11 | <@Tarinaky_> | What's the point of writing an API if you expect me to RTFS |
13:14 | <@TheWatcher> | Laziness. |
13:14 | <@TheWatcher> | "Oh, I should do something... just only enough to show it exists" |
13:20 | < Lambo> | Tarinaky: worse |
13:20 | < Lambo> | "If you want to see how to use it, check the unit tests!" |
13:20 | | * Lambo looks at the uncommented unit tests |
13:20 | < Lambo> | "...fuck you" |
13:24 | <@TheWatcher> | Ugh |
13:25 | <@TheWatcher> | Downside to having so many projects: you know you've written code to do something, and you need it somewhere else, but finding it.... |
13:25 | < Lambo> | Ctrl+T MyType |
13:25 | < Lambo> | <# ReSharper |
13:25 | < Lambo> | that typo is moderately funny. |
13:26 | | Orthia [orthianz@Nightstar-dvd.0jj.224.119.IP] has quit [Ping timeout: 121 seconds] |
13:27 | | * iospace is on her tablet on irssi o: |
13:29 | <@abudhabi> | What's the difference between "Object... params" and "Object[] params"? |
13:29 | < Lambo> | what language? |
13:30 | < RchrdB> | They are string literals that encode different strings? |
13:30 | | * RchrdB ducks. |
13:30 | | * Azash throttles whoever minified every single jquery script in this project |
13:30 | <@abudhabi> | Lambo: Java. |
13:31 | < Lambo> | I assume they both do the same thing |
13:31 | <@Azash> | iospace: Nice |
13:32 | | Orthia [orthianz@Nightstar-93s.1sq.224.119.IP] has joined #code |
13:32 | | mode/#code [+o Orthia] by ChanServ |
13:32 | < RchrdB> | abudhabi: offhand, the former is a variadic function, and the latter is an array. |
13:32 | <@iospace> | Azash: it is! |
13:32 | <@iospace> | slower than typing but eh |
13:33 | <@Azash> | That's probably a property of the tablet |
13:33 | <@TheWatcher> | Bluetooth keyboard time~ |
13:33 | <@iospace> | yup, and maybe TheWatcher |
13:42 | | Orthia [orthianz@Nightstar-93s.1sq.224.119.IP] has quit [Ping timeout: 121 seconds] |
13:46 | | Orthia [orthianz@Nightstar-hfd.d04.98.101.IP] has joined #code |
13:46 | | mode/#code [+o Orthia] by ChanServ |
14:12 | | Thalass|afk is now known as thalass |
14:17 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Operation timed out] |
14:19 | <@Tarinaky_> | This API is a tangled mess of sphegetti |
14:47 | | * Tarinaky_ hates COM/OLE32 so much. |
14:58 | <@Tarinaky_> | How do I get the class string/uuid for an OLE component in the first place? |
15:00 | < Lambo> | what language again? |
15:01 | <@Tarinaky_> | Agnostic |
15:02 | | * TheWatcher ponders |
15:02 | < Lambo> | at least with visual studio, you can browse registered com objects |
15:02 | <@Tarinaky_> | If I can get the ID I can use it in any language that has the appropriate bindings. |
15:02 | <@Tarinaky_> | How do I browse com objects? |
15:03 | <@TheWatcher> | One day I must write a language called Agnostic, just to fuck with people. |
15:03 | <@iospace> | http://www.theregister.co.uk/2014/11/06/wirelurker_makes_mockery_of_mac_malwarel ess_myth/ |
15:04 | < Lambo> | Tarinaky: http://msdn.microsoft.com/en-us/library/d0kh9f4c.aspx |
15:04 | < Lambo> | not sure if that helps |
15:05 | <@Tarinaky_> | I swear the WIndows API is like someone took one look at man pages and decided not to do /any/ of that. |
15:05 | < Lambo> | sounds about right |
15:06 | <@TheWatcher> | And the drugs. |
15:06 | <@TheWatcher> | don't forget teh drugs. |
15:07 | <@Tarinaky_> | iospace: From how it's described it doesn't seem that conspiratorial to blame a rogue state for deploying this for espionage. |
15:08 | <@Tarinaky_> | A lot of knowledge went into that |
15:09 | <@iospace> | Tarinaky_: heh |
15:09 | <@iospace> | still, apple viruses~ |
15:10 | <@Tarinaky_> | Which also plays into the conspiracy since 'western' technology is highly prized by the neuvau (sp?) riche in China. |
15:11 | <@Tarinaky_> | Western products in general. |
15:11 | <@Tarinaky_> | If it was a commercial motivation... it'd make more sense to target the million+1 crappy Android knockoffs. |
15:11 | <@Tarinaky_> | But, you know, conspiracy. |
15:12 | < Lambo> | still, MSDN docs are 100x better than most OSS docs |
15:14 | < Lambo> | I am inside a legacy VB.NEt application |
15:14 | < Lambo> | this BAL is only 3916 lines |
15:15 | <@Tarinaky_> | Well right now, I have been looking at this documentation all day and am still no closer to actually producing any code. |
15:15 | <@Tarinaky_> | As opposed to OSS where at least I /can/ RTFS |
15:16 | <@Tarinaky_> | And if all else fails, even poke the author for help. |
15:16 | < Lambo> | I hate to say it, but I've generally use the Object Viewer to find things |
15:16 | < Lambo> | which I'm used to from dealing with VBA |
15:16 | <@Tarinaky_> | I have literally no ida where to look for WASAPI related objects. |
15:17 | <@Tarinaky_> | There's no search :/ |
15:17 | < Lambo> | what COM object are you trying to search for? |
15:17 | <@Tarinaky_> | The X, that I'm trying to do is get an IChannelAudioVolume object. |
15:17 | | Checkmate [Z@Nightstar-ro94ms.balk.dk] has joined #code |
15:17 | | mode/#code [+o Checkmate] by ChanServ |
15:18 | < Lambo> | why are you launching on my 4th monitor VS? I don't want you there and now I have 3 instances of the same codebase open |
15:18 | <@Tarinaky_> | The Y is some combination of an IMMDeviceEnumerator, IMMDevice... |
15:19 | <@Tarinaky_> | Here's my X, I want to call this function: http://msdn.microsoft.com/en-us/library/windows/desktop/dd371029%28v=vs.85%29.as px |
15:19 | <@Tarinaky_> | How do I use Y to do X? |
15:48 | | mac [macdjord@Nightstar-7rac1r.mc.videotron.ca] has joined #code |
15:48 | | mode/#code [+o mac] by ChanServ |
15:50 | | macdjord|slep [macdjord@Nightstar-7rac1r.mc.videotron.ca] has quit [Ping timeout: 121 seconds] |
15:58 | < Lambo> | Tarinaky, sorry I wasn't much use :\ |
15:58 | < Lambo> | also, I'm looking at this legacy VB.NET code base |
15:58 | <@Tarinaky_> | It's fine. |
15:58 | < Lambo> | someone rolled out their own AutoMapper |
15:58 | < Lambo> | based on Reflection |
15:58 | <@Tarinaky_> | I've emailed some people in the company for some horizontal knowledge transfer >.< |
15:59 | <@Tarinaky_> | But I'm pretty sure this COM thing is designed to be as obtuse as possible |
15:59 | | thalass is now known as Thalasleep |
16:11 | | celticminstrel [celticminst@Nightstar-l2rg83.dsl.bell.ca] has joined #code |
16:11 | | mode/#code [+o celticminstrel] by ChanServ |
16:23 | | Thalasleep [thalass@Nightstar-cdvd7b.bigpond.net.au] has quit [Ping timeout: 121 seconds] |
17:09 | <@abudhabi> | Is there a one-word term for something which something else orbits? |
17:09 | <@abudhabi> | The opposite of an orbiter. |
17:15 | < ToxicFrog_> | Primary? |
17:15 | | ToxicFrog_ is now known as ToxicFrog |
17:16 | < ToxicFrog> | Or "gravitational primary" if disambiguation is needed. |
17:16 | < ToxicFrog> | Usually seen as, e.g., "Earth's primary" (i.e. Sol) |
17:29 | <@abudhabi> | Primary works. |
17:39 | <@abudhabi> | In Java, if I retrieve something by way of a getter, and modify, am I modifying a copy or the original property? |
17:41 | <&jerith> | abudhabi: It's complicated. |
17:42 | <&jerith> | Mostly, it depends on the getter. |
17:42 | <@abudhabi> | It's a generic, automatically generated getter. |
17:43 | <&jerith> | But if it returns the value of the property and that value is a mutable object, then you're likely to be modifying the original. |
17:44 | <@abudhabi> | jerith: http://pastie.org/9700740 <- Does this do what I want it to do? |
17:46 | <&jerith> | Probably. What do you want it to do? |
17:46 | <@abudhabi> | N-ary tree with double links. |
17:47 | | * abudhabi also feels http://hugelolcdn.com/i700/145518.jpg |
17:49 | <@abudhabi> | When DOES Java make a copy instead of just giving me access to the original? |
17:49 | <&jerith> | abudhabi: I don't think it ever does. |
17:49 | <&jerith> | As long as you don't feel like http://www.staplerfahrerklaus.de/ |
17:50 | <@abudhabi> | Foo foo1 = new Foo(); Foo foo2 = foo1; // Both foos occupy the same memory? |
17:51 | <&jerith> | They're both pointers to the same object. |
17:51 | <@abudhabi> | OK. |
17:51 | <&jerith> | (Even though Java denies having pointers until it throws a NullPointerException.) |
17:55 | <@abudhabi> | I don't quite see why Java bothers having setters. |
17:55 | <@abudhabi> | Because apparently you can foo.getProp() = 10; |
17:55 | <@abudhabi> | Right? |
17:58 | <&jerith> | No. |
18:00 | <&jerith> | Also, your getters and setters can contain arbitrary code. |
18:00 | <&jerith> | Usually they're used for validation or whatever. |
18:01 | <@abudhabi> | Why can't I do what I said? |
18:01 | < ToxicFrog> | Because method calls aren't assignable to. |
18:01 | <@abudhabi> | OK. |
18:01 | <&jerith> | Because the return value of a method call isn't a thing you can assign to. |
18:02 | < ToxicFrog> | To clarify what jerith said earlier about modifying stuff you get via a getter... |
18:02 | <@abudhabi> | I've however seen something along these lines: context().getMessages().addMessages(.......); |
18:03 | < ToxicFrog> | Prop bar = foo.getProp(); bar = someOtherProp; // foo's prop is completely untouched by this, you're just reassigning a local |
18:03 | <@abudhabi> | Now I'm confused. |
18:03 | < ToxicFrog> | Prop bar = foo.getProp(); bar.someHorribleMutatorMethod(); // bar was just modified in place, and since it is *probably* a reference to the same object foo holds as a property, foo also sees the changes |
18:03 | <&jerith> | abudhabi: There's a difference between a mutable object and a thing you can assign to. |
18:03 | < ToxicFrog> | The "probably" is because foo.getProp() may have created a copy and given you a reference to that instead. |
18:03 | < ToxicFrog> | Yes, that. |
18:04 | < ToxicFrog> | In your addMessages example, getMessages() is returning a mutable object which you then call a mutation method on. |
18:04 | < ToxicFrog> | This modifies it in-place. |
19:32 | | Kindamoody|afk is now known as Kindamoody |
20:26 | <@iospace> | i hate off by one errors |
20:27 | <@iospace> | hitting win+d instead of ctrl+s T_T |
20:27 | | * Reiv takes a moment to check the keyboard to work out why that's off by one. >_> |
20:28 | <@Tamber> | One column to the right. |
20:30 | <@iospace> | Reiv: on US keyboards, d and win are one key to the right of s and ctrl. At least on non-mac keyboard |
20:31 | <@Reiv> | Yeah, I got that |
20:31 | <@Reiv> | But I had to actually look at my keyboard to work it out~ |
20:31 | | * Reiv runs Dvorak.. |
20:31 | <@iospace> | :P |
20:31 | <@Reiv> | my s and d are where your K and ; keys are. |
20:32 | < Lambo> | someone uses dvorak? |
20:32 | < Lambo> | holyshit |
20:32 | <@Reiv> | don't be too shocked, it helps with my RSI. |
20:32 | <@abudhabi> | Lambo: I use Dvorak too. |
20:33 | <@Reiv> | With the proliferation of smartphone keyboards, I anticipate it will fade even further from general conciousness, but it does work rather well. |
20:33 | < Lambo> | this is the most dvorak users I've ever run across |
20:34 | <@Reiv> | Howard Taylor of Schlock Mercenary webcomic, which used to be one of the biggest channels on the network here, made good use of it. |
20:34 | | Kindamoody is now known as Kindamoody[zZz] |
20:34 | <&jeroud> | I know several Dvorakers. |
20:34 | <@EvilDarkLord> | Celebrity endorsements #code style. |
20:35 | <@iospace> | :P |
20:35 | < RchrdB> | heh |
20:35 | <@iospace> | I'm a qwerty |
20:35 | <@abudhabi> | "Check out these testimonials from real Dvorak users!" "400 wpm!" |
20:36 | < Lambo> | schlock mercenary had a channel here? dammit |
20:36 | <@abudhabi> | Still has. |
20:36 | <@abudhabi> | #Schlock_Mercenary |
20:36 | <@iospace> | oh gods |
20:36 | <@iospace> | there goes Lambo |
20:36 | < Lambo> | official channel as well? |
20:36 | <@iospace> | doesn't nightstar have a high population of webcomic irc channels in general? |
20:37 | <@abudhabi> | Yes. |
20:37 | < Lambo> | no kidding about the channel being dead |
20:37 | <@abudhabi> | For some reason, a lot of webcomics do IRC here. |
20:37 | <@iospace> | probably smaller, more stable |
20:37 | <@Reiv> | EvilDarkLord: hahaha |
20:37 | <@iospace> | less skiddies |
20:38 | <@Reiv> | EvilDarkLord: More accurately, I mentioned it as such because it was the channel that got me onto the network. |
20:38 | <@abudhabi> | Me too. |
20:38 | <&jeroud> | Me also. |
20:38 | <@Reiv> | Anyway, the channel used to be bloody huge, right up to the period around Strip 1000, when he switch to doing it commercially and printing the books etc. |
20:39 | <@iospace> | Mine... was #itswalky! waaaaaaay back in the day |
20:39 | <@abudhabi> | It went kind of dead when Pi and Chalain and Vermilion and the others left. |
20:39 | <@iospace> | then I drifted over to #crfh and eventually #fleet |
20:39 | <&jeroud> | That was about the time a bunch of regulars grew up and moved away. |
20:39 | <@Reiv> | Roughly the point that that the Petey Lives story happened, Howard Taylor decided that sitting on IRC was costing him too much distraction for insufficient marketing, or something, so he stopped showing up. |
20:39 | <@Reiv> | The channel died a slow death after that. |
20:40 | <@Reiv> | I still miss Jeremiah. :/ |
20:40 | <@abudhabi> | Now #Schlock_Mercenary is just a place for Grue, Half, tadpole and Tora-Chan to exchange hugs and saliva. |
20:40 | <@Reiv> | Pi and Vermillion and Kreely moved out of the house together, which lost Schlock in the process (eventually), and Chalain stopped showing up, and etc |
20:41 | <&jeroud> | Reiv: That's fine, you can reload and try again. We have plenty of ammo. |
20:41 | <@iospace> | you know who i miss? |
20:41 | <@iospace> | necomancer |
20:41 | <@abudhabi> | I remember Necomancer. |
20:42 | <&jeroud> | Chalain rewrote his brain from 3.0 to 3.5 or something and swapped IRC for Twitter. |
20:42 | <@iospace> | and setting him on fire |
20:42 | <@abudhabi> | He played RPGs. |
20:42 | <@Reiv> | jeroud: Much to my chagrin, aye. |
20:43 | <&jeroud> | Mine too. |
20:43 | <@abudhabi> | Does the overly dramatic non-#dnd gaming group centered around #mythic still exist? |
20:43 | <@Reiv> | I'm not convinced it helped his habits any, but I abhor twitter. |
20:43 | <@iospace> | abudhabi: why do you say hugs and "saliva" there? |
20:43 | <@abudhabi> | iospace: Tora-Chan licks people. |
20:43 | <@Reiv> | Abudhabi: It's long dead. The only traffic is halfs /amsg these days. |
20:43 | <@iospace> | right |
20:43 | <&jeroud> | Although I did actually meet up with him in SF after that. |
20:43 | <@iospace> | yeah, half does have that tendency to abuse /amsg >_< |
20:43 | <@Reiv> | A pity, because I occasionally want to talk to some of the folks in there, but they no longer show up when I'm around, or talk to let me know when they have >_> |
20:44 | <@iospace> | gods |
20:44 | <&jeroud> | We both found ourselves there at the same time. |
20:44 | <@iospace> | now we sound like a bunch of old fogies around a table drinking and thinking about the "good ol' days" |
20:44 | <@Reiv> | jeroud: How is he? |
20:44 | <@iospace> | :P |
20:44 | <@abudhabi> | We ARE old fogies. |
20:44 | <@Reiv> | And there WERE good ol' days |
20:45 | <@abudhabi> | I've been here since '06. |
20:45 | <&jeroud> | He was good at the time. That was a while ago. |
20:45 | <@iospace> | I've been on and off since around 06ish |
20:45 | <@iospace> | forgot when i first went on nightstar |
20:45 | <&jeroud> | iospace: I ran out of beer. :-( |
20:45 | <@iospace> | sounds like a personal problem |
20:46 | <&jeroud> | Reiv: I was immensely pleased to discover that he was as excited about meeting me as I was about meeting him. |
20:46 | <@Reiv> | haha, nice |
20:47 | <@Reiv> | I guess I really should get a twitter account at some point. |
20:47 | | * Reiv twitch |
20:47 | <@abudhabi> | No, you shouldn't. |
20:47 | <&jeroud> | We shared a Cultural Event and then spent some quality time in his hotel room. |
20:48 | <@Reiv> | abudhabi: Ehh, there's like four feeds I would actually quite like to follow |
20:48 | <@Reiv> | Chalain being one of them, the AA road alerts being another. |
20:48 | <&jeroud> | (The Cultural Event was a roller skater wearing a fedora. And nothing else.) |
20:48 | <@Tamber> | How... cultural. |
20:49 | <@Reiv> | I could've saved 20 minutes of travel yesterday if I'd had that as a live feed as opposed to a "I probably should have checked for that before I left, huh" while in line at an accident. |
20:49 | <@Reiv> | jeroud: ... a cute roller skater? >_> |
20:49 | <@Tamber> | Tickle-tackle flapping merrily in the breeze? |
20:50 | <&jeroud> | Reiv: He certainly wasn't ugly. |
20:50 | <@Reiv> | haha |
20:50 | <@Reiv> | And why was he not wearing pants |
20:50 | < RchrdB> | Doesn't everybody just assume that "cute" is built into the definition of the word "rollerskater"? |
20:51 | <&jeroud> | He skated past us, broke our conversation, waved, and disappeared into the sunset. |
20:51 | < RchrdB> | It's unusual to keep up an active hobby like rollerskating without making oneself at least a little cute in the process. |
20:51 | <@Reiv> | That is certainly a cultural event. |
20:52 | <&jeroud> | Yup. |
20:53 | <&jeroud> | Then we went to a restaurant and ate crab before retiring to his hotel room. |
21:17 | | RchrdB [RichardB@Nightstar-v5j366.understood.systems] has quit [[NS] Quit: WeeChat 1.0.1] |
21:18 | | RchrdB [RichardB@Nightstar-v5j366.understood.systems] has joined #code |
21:33 | | mac is now known as macdjord |
21:50 | | Checkmate [Z@Nightstar-ro94ms.balk.dk] has quit [Ping timeout: 121 seconds] |
22:25 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
22:29 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
22:29 | | mode/#code [+o Checkmate] by ChanServ |
22:59 | | Omega [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code |
22:59 | | mode/#code [+o Omega] by ChanServ |
22:59 | | Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has quit [NickServ (RECOVER command used by Omega)] |
22:59 | | Omega is now known as Alek |
23:27 | <@gnolam> | https://twitter.com/SwiftOnSecurity/status/530199875464351745 |
23:28 | <&McMartin> | -_- |
23:30 | < RchrdB> | :D |
23:30 | < RchrdB> | wait, I have a better smiley than that |
23:30 | < RchrdB> | (^Ï^) |
23:34 | <@froztbyte> | hahahahahaha |
23:47 | | Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code |
23:47 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
--- Log closed Fri Nov 07 00:00:21 2014 |