[QUOTE=Tamschi;47646655]You could simplify it a bit by using framework types / delegates (which iirc are comparable) as message receivers, but otherwise I think it looks pretty good.
I may use this in situations where Willkuer's flexibility isn't needed or it would have too much overhead.
I think instead of the [I]Console[/I] writing I'd just error and provide additional [I]Try[...][/I] methods that return [I]bool[/I]s (or just return a [I]bool[/I] from [I]Remove[/I] which I think is available with certain .NET collections, but that's not my preference).
On the licensing: "unlicensed" as adjective usually doesn't equal "public domain", over here the meaning is in fact more or less the opposite (except that public domain releases are impossible in Europe as far as I know. The Unlicense does have enough redundancy to account for this issue though). You could clarify this by rewording the readme to make it clear you're using a specific license. Something like "The code is in the public domain, [...]" or "The code is under the Unlicense, [...]" or possibly even just "The code is [B]U[/B]nlicensed, [...]" would be less confusing.[/QUOTE]
Thank you very much, I've edited the readme to better reflect the chosen license.
Do you think it'd be a good idea to throw something like a MessageBusException, which would specifiy if the message didn't exist or the subscriber didn't exist when removing a receiver? Also, do you think an exception should be thrown if a message has been sent but there aren't any listeners for it?
[QUOTE=Asgard;47646736]Thank you very much, I've edited the readme to better reflect the chosen license.
Do you think it'd be a good idea to throw something like a MessageBusException, which would specifiy if the message didn't exist or the subscriber didn't exist when removing a receiver? Also, do you think an exception should be thrown if a message has been sent but there aren't any listeners for it?[/QUOTE]
Well Unity has option "RequiresReceiver", where you input in true/false.
[editline]2nd May 2015[/editline]
[QUOTE=PelPix123;47646800]In my experience, it's generally not a good idea. My friends with parents like that thought the way you do until they were out of academia and then realized they had no real life skills and about half of them killed themselves.[/QUOTE]
That is harsh. I think there are many types of strict - some parents blame the kid for everything, some parent are harsh real but still love the kids.
But it kind of hurt me about your friends killing themselves. I hope you are doing fine and are not depressed. Depression is bitch and makes you think irrational.
[QUOTE=PelPix123;47646800]In my experience, it's generally not a good idea. My friends with parents like that thought the way you do until they were out of academia and then realized they had no real life skills and about half of them killed themselves.[/QUOTE]
So if you don't know how to play an instrument you kill yourself?
Any implement atmospheric scattering before? I'm doing it currently, using this:
[url]http://http.developer.nvidia.com/GPUGems2/gpugems2_chapter16.html[/url]
I'm trying to figure out a line of their program (how they calculate the height of a sample point). Any care to help me?
Never mind, I think I found the implicit assumption they made
[QUOTE=Fourier;47645506]Math homework, just spent 3/2 hours integrating Sqrt[1-x^2] <.<
[editline]2nd May 2015[/editline]
Yes that is one possibility, other possibility is that people with stricter parents turn into insecure wussies.[/QUOTE]
It's really how you orient your kids so they succeed, rather than the methods involved. For instance, my father's a math professor, and all the drilling in math I got growing up paid off later, because I do it for a living.
Talking from experience, getting the ability to do whatever the hell I wanted growing up didn't hurt either, probably better off for being thrown to fire a few times also, honestly. It taught me to rely on myself, and have self discipline.
[QUOTE=PelPix123;47646823]No, I was saying that a lot of my friends whose parents pushed them hard academically and in music and forced them to play instruments at an early age ended up killing themselves.[/QUOTE]
Maybe parents forcing their children into doing things they don't necessarily like is bad for the child?
Hey this is not a WAYWT and its unrelated to the discussion above but I just wanted to share my story with you guys. I basically learned how to code from this community and it really kickstarted my career in programming. All the time at school I hear people tell me I'm a genius or I'm smart because of all the projects I've done, but I really can't see myself that way.
I look up to you guys in WAYWT, I really do. You guys started here like me, you were just a bunch of kids who just had an interest in modding and playing games. I can't see myself as a good programmer because I'm not good as you guys, and I'm still learning. For how young you guys are, or were when you started programming, you came up with some amazing projects. I hope you know how amazing you guys are, and how great this community is at fostering young minds and pushing them to achieve so much.
Thank you for all that you guys have done, I wish all of you bright futures.
[QUOTE=Jellyman;47646864]Maybe parents forcing their children into doing things they don't necessarily like is bad for the child?[/QUOTE]
I was forced to take piano for around 5 years, it only really developed a hatred towards piano. I really prefer the guitar. I've never been pushed academically and while its relaxing its also lead to a lot of bad habits like not studying or doing my homework outside of school though I still make good grades.
Perhaps there can be a happy medium?
The moral of the story is just do what you want to do.
Parents should mediate their children's choices to make sure they don't make an absolutely stupid one. But sometimes one has to make their own choices and find out for themselves.
[QUOTE=Asgard;47646736]Thank you very much, I've edited the readme to better reflect the chosen license.
Do you think it'd be a good idea to throw something like a MessageBusException, which would specifiy if the message didn't exist or the subscriber didn't exist when removing a receiver? Also, do you think an exception should be thrown if a message has been sent but there aren't any listeners for it?[/QUOTE]
You could make an exception hierarchy for your library, but I think just using [I]ArgumentException[/I] or [I]InvalidOperationException[/I] with appropriate description (and documenting them in the XML comments if you add that) should be enough.
It seems all generic default collections return a bool instead of throwing though, so it may be better to follow that example.
[QUOTE=PelPix123;47646823]No, I was saying that a lot of my friends whose parents pushed them hard academically and in music and forced them to play instruments at an early age ended up killing themselves.[/QUOTE]
I thought you quoted KmartSqrl for some reason and not Andrew McWatters. Yeah, I can agree with that, them feeling like they have no control of their own lives and having their parents live through them.
I've been continuing with my lighting control project that I last posted about, and in between I've programmed the lighting for a few shows and it got me thinking about a very common activity we do when setting up the desk. Basically for any light that can change colour we store palettes that have that colour information (this is unit specific, all lights produce colour slightly differently and we have to mix the same colour across them all). This tends to be quite a repetitive task in the desk.
One of the most common family of desks, ETC EOS-Family, can be controlled via UDP strings of syntax across a network. So I'm building a quick utility to take a list of colours that you want to use in the desk, record them into palettes for the fixture you want, and give them nice labels. I'm also planning on a few convince features like, either storing the palettes starting from a given point, or as the same number as the colour (for example, L201 would be Colour Palette 201, which is common).
So far I've just played when getting the desk and the programming to talk to each other, but I've written the functionality to parse the colour information from the leading filter company, Lee Filters, and get its official name, so the colour palette can be labelled. Conveniently, while Lee don't provide an easy data file, they serve the names of every gel they stock in every page of the website. I download and parse the page, and then build a dictionary from that.
[thumb]http://i.imgur.com/NZqfzZs.png[/thumb]
The program (for now) just takes a colour reference and then spits out the label. We never talk about colour outside of lighting unless were talking filter numbers, the leading people being Lee and Rosco. If I was talking about Red, I would talk about L106 Primary Red. I'm planning on adding Rosco support as well.
You guys are lazy
[url]http://facepunch.com/showthread.php?t=1463536&p=47647194#post47647194[/url]
Sorry, you need to Log In to post a reply to this thread.