« first day (2168 days earlier)      last day (2781 days later) » 

12:07 AM
Oh my hell, pygame, why??
If you try using Surface.fill with a rect argument that goes outside its bounds and a BLEND flag, it'll crash.
C++ runtime probz.
BUT! If you give it something like mySurface.fill(whatever_rgba, (0,0,0,0), pygame.BLEND_RGBA_MULT) first, it's totally cool with anything you send it.
 
usually if I hear "PyGame" I just assume problems are coming
 
T-T
 
it was a good question too (how were you to know there was a bug)
 
12:28 AM
good evening o/
 
DSM
12:48 AM
-1, unclear whether that's a hello or a goodbye.
 
ha!
I just discovered for myself that Reginald VelJohnson is in the original Ghostbusters
Maybe I knew this....but it was definitely a surprise for me this time around
 
I just watched that movie and I was shocked when I saw him
It's like when someone showed me Boy Meets World for the first time and I was like "KIT" now where's Micheal
 
1:03 AM
Off I go.
rbrb all
 
rbrb - time for me to head off too
 
cheers
 
DSM
2-0 rhubarb for Augusta and JG.
 
They're doing so well :D
 
1:24 AM
in big O notation, we have various exponent classes like N^2 up to N^100 and so on, and beyond that I'm told we have exponential complexity such as 2^N. my question is whether there is some function that exists between these two? Or is N^(largest number conceivable) sitting right before (smallest coefficient)^N?
 
oh man..the title of the question is actually give me the codes: stackoverflow.com/questions/39628865/…
 
@idjaw lol
 
So why isn't there a dupe target for give me teh codez - I'd be able to dupe-hammer it.
 
DSM
That's sufficiently awesome that I'm breaking out the Sapporo.
 
my favorite part is that the copy/pasted text requires javascript, not python, lol
 
1:32 AM
lol
"Good Day, Am a new self-developing programmer on python." -- what?
bonus points to deducing what language google translates to that sentence..
 
resource request Heteroscedasticity - Random Forest - P.O BOX‎ - 2016-09-22 01:15:09Z
 
DSM
(Aside: my Sapporo is brewed in Guelph. I like it anyway.)
 
0
Q: Cross-Domain XML Querying

A. KayI have two servers in my organization. One of which is read-only to me (Server A) and the other hosts our knowledge base (Server B). There is an XML file on Server A which is refreshed at an unknown interval. This file contains information on the status of various items. I want to be able to disp...

please tell me you can't do what that person wants to do
 
If I wanted to blindly load a number of .py files as modules is there an easy way to sandbox them?
 
DSM
Sandboxing and Python don't play too well together, more's the pity. I think there used to be a sandboxing translation mode for PyPy, but I haven't been following it so I don't know if it's still a thing..
 
1:49 AM
Say I had some students instructed to give me files with no imports. Then I grep the file for import - if there is none, is it safe to execute? :|
 
run it in a docker container
 
Or a vm?
 
VM seems like a lot of overhead if you have a lot of these
are you checking stdout or something?
 
Nope, running unittests
 
so just script it in a docker container or something
 
1:54 AM
IDK, haven't played with Docker in a while.
What's that look like?
maybe I can run it in a subprocess with zero perms?
 
DSM
@Aaron: nope, consider exec("siht tropmi"[::-1]). Even if you ban exec you can still get it, e.g. getattr(__builtin__, "__imp" + "ort__")("this"), etc. It's just really, really hard to sandbox Python.
I second the idea to run everything in a container.
 
docker exec -v foo.py:/foo.py python:2.7 python foo.py or something similar
 
what's the step by step plan for that? Step 1. set up a container Step 2. put the code in it. Step 3. run it. Step 4 collate results.??
Is that a sudo apt-get install docker away?
 
eh, depends on what you want to do, do you just care "passes tests"?
you could just bash it and check non-zero container exit code, I'm assuming failed unittests will exit nonzero
 
yep, passes tests, graders to visually inspect for any issues...
Well I'm going to use the number of tests passed to grade by. after complete "coverage" then some units with stricter tests.
 
2:08 AM
would be fun to write a dockerfile that would grab the python code set it up in a container, run tox on whatever, get your results
but at the same time, I don't know if that is overkill and there is an easier way
 
Yeah, write a dockerfile... how do you do that now?
 
DSM
Of course since it's quite likely the students aren't actually malevolent, you might as well just jump into an instance and do everything the normal way. Even if somebody does try to do something dangerous, the worst that happens is you make a new container and grade the others.
 
there probably is @idjaw but it really depends on how often this is going to be needed and whether it's worth optimizing once for easy grading later
 
yeah, well it's just me being paranoid. plus I overanalyze everything.
 
anyways rhubarb
 
DSM
2:10 AM
Rhubarb, e.
 
we're limited to 50 code approvers on config, so today I coded up an algorithm that got every pre-existing code approver on a couple of files of importance to me, then used multisets to determine who to cull and who is required to approve from each project in an attempt to get decent coverage on as many projects as possible (and avoid having to approve crap myself.) I spent 4 or 5 hours on that today.
Multisets = Counters
 
We need a dupe target for give me teh codez.
 
DSM
Years of being a Leafs fan have made me careful, but I am cautiously optimistic.
 
DSM, you poor soul
The Leafs really need to do things soon
 
DSM
@AaronHall: the World Cup of Hockey is going on. When I commented, Canada was up 4-1 over Europe with about 1 minute to go. Statistically that means we were almost certain to win, but my sports superstitions outweigh my logic.
 
2:44 AM
To me, DSM still means Dragon Scale Mail.
breathes, you die
 
@idjaw how have you been, now?
 
@AaronHall Been doing pretty good! Work has been awesome, family life has been pretty busy.
How about you?
been a while! :)
 
3:05 AM
Typed up a lot of details and deleted for over-sharing. I'm doing good, but I want to be doing better. I'm sure you understand.
 
Definitely understand :)
 
DSM
A few weeks ago I helped to debug a particular expensive problem we were having. Along the way I wound up creating a trivial (well, trivial for us) interactive dashboard in a Jupyter notebook. Unfortunately parts of it became popular, so now I have to give a talk tomorrow morning on how easy it is to start exploring data in the notebook and then create a standalone webapp from the very same code.
Moral of the story: never do anything, or people will think you know stuff.
And with that, it's rhubarb time. Eastern time good night for all!
 
yep. When people ask me if I know Python I just hiss.
rbrb o/
 
4:18 AM
Hi guys, Can any one help me in solving this issue.stackoverflow.com/questions/39622647/…
 
 
1 hour later…
5:43 AM
cbg
 
5:54 AM
cbg
 
6:31 AM
@JGreenwell hem...
 
@DSM Apparently, there is a saying in the Swedish armed forces: "Avoid overachievement, avoid underachievement, never volunteer."
It may have been Finland.
 
it was required that Sweden beats NA and then Finland scores at least 3 more goals against Russia for Finland to advance
@Augusta Finland.
at least it has a familiar ring to it
 
I knew it was a Scandinavian country, and Norwegians are more fun and Danes aren't quite as interested in sharing secrets like that.
 
and Finland is not a Scandinavian country
 
Isn't it? What am I th-- Iceland.
Iceland?
I'm sure there are four.
 
6:35 AM
no 3
 
I want to ask if you're sure but I'm confident that you are. =_=
 
there are 5 "Nordic Countries", 4 countries on the Fennoscandian shield
scandinavia is a peninsula
 
I know that much
It's the cultural boundaries that get me.
 
they're the same :D
 
If they were the same then you could call Poland a "Baltic country." :y
 
6:41 AM
it is the same as to say thta canada is in Alaska
sorry, got dc
 
That one is a bit of a tough sell.
 
very brief cbg
 
the top of the Scandinavian peninsula from about the the border of Sweden and Finland to Northwest is additionally an area where there are Finnish influences... or Sámi
 
@idjaw the first assignment in that question has an answer here. How about deleting the latter as well?
made it -3 now
 
@Augusta Lagom är bäst.
 
6:46 AM
quote from question:
> It's a bit challenging because I have tried a little.
 
Just so.
 
(although there's some code there)
 
@AnttiHaapala Being cruel to Estonia again, aren't we.
 
@Augusta and if you do not believe otherwise, just count the guys in the banner at satwcomic.com
@MartijnPieters sorry
 
rhubarb
 
6:48 AM
@AnttiHaapala don't be a Canadian now.
 
@AnttiHaapala I do not believe otherwise! :v
 
@Augusta SatW is spot on :D
Finland belongs to the Nordic countries because it is the exception that marks the rule :D
 
Well, SatW is drawn by a dane, so how could it go wrong?
 
You know I thought the North Pacific was a really weird part of the world culturally but then I remember the Baltic rim and I have to reconsider.
 
6:51 AM
Finland used to be sweden
 
@Gemtastic Norway used to be Denmark. Then Sweden. Then Denmark again.
Or was it the other way around?
 
the fun fact is that the Danish flag, the oldest national flag in the world...
 
Sweden and Denmark have fought more wars between them than you have had hot dinners.
 
As far as I know, everything between Koln and St. Petersburg was at some point part of Poland.
 
@MartijnPieters That's pretty much it, except iirc All of norway wasn't really swedish; they became independent before we got all of 'em
We had a union though
 
6:53 AM
according to the legend, appeared from the heavens above the battlefield where Danes were slaying Estonian heathens in the area that now is known as the "Danetown" (Tallinn)
 
But only the swedes were dumb enough to ride moose into battle XD
We lost an entire army into the sea because "Oh hey, there's ice on the ocean, let's grab our cannons and head over there!"
Denmark is a force to be reckoned with. That tiny country held up against sweden really well
 
Sure showed those Canadians at Hans Island. :y
 
Are you talking about the boose-fight?
Did you know there's a swede who moved to Åland because he wanted to live where there's no immigration?
The irony
 
Well, though, I would gladly give Åland to Sverige anyway
can't stand their whining
 
It'd be fun to let them become independent
And by fun I mean "I want to play a game" fun
 
7:05 AM
independent for exactly 29 hours and 37 minutes before the little green men from unidentified country start patrolling the streets, if you mean independent from Sweden and Finland
 
Green men?
I meant independent of everyone, including Russia
 
that's what I said :d
29 hours and 37 minutes
 
Considering how much russia is drooling for Gotland I bet they'd take Åland in less than that XD
 
on first of January they celebrate the independence at noon, in the afternoon of Jan 2, there would be great anticipation about the results of the newly organized referendum...
 
Which by the way has a military base again. Because Sweden could tooottally take russia on if they decided to stop bullying us like a cat plays with a mouse..
 
7:09 AM
cbg
 
cbg
 
then how about
 
too dozey. rbrb all
 
rbrb
cbg
Nokian boots still makes rubber boots.
 
these soviet folks -_-' :they've been always/often better at propaganda
 
7:13 AM
@AndyK they couldn't take over in 4 months.
 
lol
loads of super powers have been wrongly thinking that warring smaller countries would have been an easy task until they found out the truth
 
it is not to say that Finns were particularly good, but the Soviet strategy was just plain bad and motivation 0, and the winter '40 wasn't exactly like the Soviet soldiers were used to as they were mostly from Ukraine and so.
so even the Russians were glad to make peace in 1940 because they were like "we got better use for our troops than trying to get this Finland that's really got nothing"
 
I read a book a few years ago ,written by Vo Nguyen Giap where he was saying that regardless of the size of the adversary, if the motivation of the adversary is 100%, you should better be very very careful in engaging a fight with its army
I will read a bit more about this battle
impressive, the ratio of fallen is almost 1 to 10 ... o_O
 
they really didn't have any advantages at all...
 
@AnttiHaapala They survived their hunger game against russia
 
7:20 AM
@AndyK well, the current numbers in wikipedia are a bit lower :P
 
lol @AnttiHaapala
 
Finland is such a small country that they pretty much put the entire country was put to war mode.
though again, "While the Soviet Union did not conquer all Finland, Soviet gains exceeded their pre-war demands"
 
mmmh
 
so it was a bad move anyway :D
 
I think it's impressive how Finland managed after all those years being ravaged by sweden
We bled them dry before we threw them away
 
7:29 AM
indeed. from now on, the sentence will be like carved in stone, in my mind never mess with a Finn
 
Does that mean you can only mess with me a little?
 
Aug 9 at 11:06, by Antti Haapala
In Oulu, in 19th century they used to sing christmas songs in the name of Tsar Alexander II, Grand Duke of Finland ~"who took away the slavery/serfdom, and the tyrant and will defeat all hostile countries (= Poland and Sweden and such), so let all people of Finland rejoice as you've been relieved of your troubles"
 
I'm a quarter finn
 
@Gemtastic 1/4 , 1/2 , 1/3 , fully regardless of the fraction, you are fully Finn ,to me , so the adage is still relevant ... ;)
 
user6568562
Cbg [ :
 
7:32 AM
half the US is part-Finn by now...
 
o/
Finland takes over the world. World, behold!
going back to my python drill. Catch u in a bit
 
"John Rambo was a finnish settler at Wiccaco in 1643 and Peter Rambo was another Finn living on Raccoon Creek.18 From this it would appear that the descendants of the original settlers in his day were all considered as Swedes. For that reason in historical accounts the Finns are seldom mentioned as distinct from the Swedes."
 
user6568562
I wouldn't mind seeing more Finnish women downtown
 
@randomhopeful lol
 
7:36 AM
@AndyK But maybe I want to be messed with ? ;P
 
looool. run , you fools, run
 
@AnttiHaapala Finns were swedes back then :P Well, we didn't view it that way when it came to the people, but finland was sweden.
 
7:55 AM
"For example, in certain 16th century documents, Gustav Vasa occasionally uses the phrases the cities of Sweden and Finland and the cities of Finland and the cities of Sweden, thus implying that the two entities are not identical."
appeal to authority :P
 
cbg, all
 
o/
 
@holdenweb bugrit!
 
Can someone help me get my account unbanned? I have to clean up old questions? i am having trouble decieding which questions need clean up
 
8:12 AM
Well your questions would be a good start.
Your questions are pretty bad.
 
Yeah >.< but i want to fix them . Beginner noobiwe questions >.<
 
how can you get questions banned...? David only asked 10 questions so far ...
 
And they've been downvoted. Plus, he might have deleted/had some deleted.
 
I am just going to keep answering other peoples question
untill i get unbanned >.<
 
You should also try to improve your own if possible.
Though unfortunately, some of your Qs are so bad that they're probably not salvagable.
i.e. they should never have been asked.
 
8:17 AM
>.< lol okay
 
If you're going to abuse the community by asking poor questions, you have to accept the consequences.
 
Im just dumb okay i fully understand
 
you are not dumb, you play dumb. that's different
 
I am sorry. I guess im quick to ask questions. It normally takes me a whole day to figure those out. I wont waste your time. bye
 
@DavidGonzalez good things take time to build, honest advice.
 
8:23 AM
@Andy
@AndyK Thank you for encouragement ill get on learning and ask less questions
 
it is not a matter of asking questions, we all do. but have you tried hard enough by yourself?
if yes, ask. if no, well ... you know the rest ;)
 
@DavidGonzalez have you deleted some others?
 
8:44 AM
@DavidGonzalez You need to learn to search for the answers before asking. I can agree though that there's a talent to that.
Pretty much anything you can have issues with as a beginner has already been asked and answered
 
yes i understand thankyou for your kindness
 
Good luck!
 
(:
 
+1 @Gemtastic
 
9:14 AM
@DavidGonzalez I've been active on stackoverflow for 5 years
during that time I've asked all questions that I've been able to formulate well and for which I didn't find the answer on stack overflow yet. There have been 8 of them.
the number of questions on stack overflow doesn't equal the number of problems I've met
 
Good questions can answer others' questions
I've found the answer to unrelated issues when I read a well written question
Though it happens more often with well-written answers
 
exactly
 
Hey guys, in a multiprocessing.Manager(), what's the right way to assign a value to Manager().Value? I think I shouldn't use a simple assignment operator as it may overwrite the whole proxy, right?
 
9:46 AM
recbg
what's with the starring?
 
@AndrasDeak which stars are you referring to?
 
got caught copying the homework cbg
 
???
y u copy hw m8
 
had no time to write it myself
 
9:53 AM
@AndrasDeak are you trying to extend the life of your keyboard or something? :p
 
@khajvah then man person up and face the consequences:P
 
lol was about to get hit by feminists
:P
@AndrasDeak the drawbacks of having a full time job and studying at the same time
 
@khajvah well...
I'll just not comment:D
 
justdodgingbullets
 
@khajvah Better time management or a time machine! :p
 
9:56 AM
As far as I'm concerned (as teacher) I don't mind if a student is lazy but is upfront about it, but trying to be shady and cheating pisses me off
 
yeah it would piss me off too.
 
and the student can only expect my good will in the first case:P
 
I am a hypocrite. Everybody is one way or the other
@JonClements I can manage by avoiding about social life but that is sometimes unavoidable
 
ninja puppy has no social life - be like puppy! :p
 
@DSM will you be using blog.ibmjstart.net/2016/01/28/… for your talk? Might be a cute way of making your point ...
I guess you can produce HTML as easily as JSON
Ah, maybe not :-( But JSON -> HTML is done on the client in one-page apps anyway
 
10:11 AM
REST API Design Question: Say my users can favourite things. I'd like to have a REST method where they can toggle their favourite status on an entity. So if they don't have a favourite status on it, it'll add it, if they do have it, it'll delete it. Would something like POST /entity/id/favourite be sensible for toggling, rather than having a POST and DELETE method for setting/unsetting?
Also, if that doesn't make sense at all, I'd appreciate a comment along those lines :P
Never had to implement favouriting using REST.
 
Oh, you're going to let me in know are you stack overflow chat
Also, cbg to the rest of you fleshware.
 
Guys, could someone please look at my quesiton? I'd really appreciate it
I need a simple shared boolean to stop the event loop inside my process, but I'm unable to set it from the outside. What's the right way to set it?
I initialize it with Value(ctypes.c_bool, False)
but then how to set to True, or more clearly: mutate it to True
 
@JonClements you mean you don't go into the park to sniff the butt of other puppies? That's sad:(
@IntrepidBrit please update language processing unit
 
@AndrasDeak he hasn't had his half bottle of scotch this morning hence the lack of coherency...
 
10:26 AM
Ticket #1: Intrepid not parsing words correctly. Intrepid: wontfix, worksforme
Traceback (most recent call last):
  File "<intrepidbot.py>", line 1, in ?
ImportError: Not enough red bull.
 
Try a redder bull then
(that might only work with a Hunglish parser)
 
Have you tried Tenzing instead?
(if only that brand started with a j. Have you tried jQuery jTenzing instead?)
 
On that note @joncle. The office no longer has a supply of rare whiskies. I'm not sure I can afford to replace them at this rate
@MartijnPieters I've not, but would be interested in starting a new habit, literally cannot be worse than Relentless that is my preferred drink poison.
 
does it dissolve non-noble metals?
 
@IntrepidBrit come visit the FB offices, we have the stuff in the fridge here.
 
10:38 AM
stop the non-facebook shaming
 
@MartijnPieters let's just face it - FB isn't a workplace - it's a free restaurant with loads of gadgets :)
 
@MartijnPieters Better be careful on passing out those invites ;) - I'm likely to be heading down to London more regularly now that the Thames catamaran project is entering a more interesting phase
 
Make sure you go there when Grumpy Cat visits
2 celebs at once:P
 
@AndrasDeak that's true... although - grumpy cat really didn't appear to be that impressed being in Martijn's presence :)
 
it's their loss
 
10:50 AM
@JonClements Apparently it's nothing personal. Grumpy Cat wasn't impressed by being on TV either: twitter.com/BBCBreakfast/status/756035768707977216
 
I don't envy the creature. It clearly hates humans since birth, and now its loathing causes it to be carried around the world like a sack of potatoes to meet and entertain...humans. Oh the irony.
of course that ^ would work with any cat that becomes a celebrity, not just the grumpy one:P
man, I'm sleepy
 
It's the cat equivalent of Marvin the Android!
 
Exactly:D Only less intelligent (I hope)
 
@Ffisegydd why wouldn't you use UPDATE /entity/id/favourite? You can then use data such as value=val, where val is chosen from {true,false,toggle} to set or toggle the value
 
@holdenweb I wasn't aware that UPDATE was a HTTP method?
 
11:01 AM
Maybe I just made it up ...
 
I suspect you did :P
PUT or PATCH are used for updating I think
But they assume the existence of the entity already, if I read correctly.
As opposed to POST, which is for creating an entity.
 
@holdenweb I see you were testing Fizzy there... cough cough :p
 
11:15 AM
New Leonard Cohen song, dude turned 82!
light-hearted as usual:)
I'm looking forward to his new album come this fall
guess I should keep listening to some music, now that I rolled out my earphones:P
 
So much free food...
 
> Fatal Python error: Cannot recover from stack overflow.
 
11:30 AM
@MarlonAbeykoon Yes the value is in bytes because response.content is bytes and not characters. If you want characters use the response.text attribute. Of course this only makes sense if the body actually is text. If it's an image for instance, you'll get garbage or a decoding error when accessing the text attribute. — BlackJack 33 mins ago
Is this answer really correct?
 
@MarlonAbeykoon well, you can see for yourself if the return value is bytes or not
 
response.content is a str
 
python2 or 3?:P
 
so according to my comment , stackoverflow.com/questions/24688479/…
python2
 
well BlackJack claims that it's bytes
 
11:38 AM
if its ascii latin1 I know its correct
 
> Yes the value is in bytes because response.content is bytes and not characters.
I guess the answer lies within
I don't actually know requests
 
11:55 AM
>>> resp.content[10]
'P'
>>> bytearray(resp.content)[10]
80
you got me curious
 
morning sports fans
 
stands idly in the corner
If everything but supervisor, carbon, graphite-web, moz*, python-gflags and thrift support py3, how are so many people stuck with python 2 due to "depending on a library that's not ported yet"?
 
there's a lot of stuff out there still depending on py2
Most of the py2 projects I'm a part of have an active effort to work towards py3
 
I have a feeling that this is a bit like a Mott insulator: everyone could simultaneously switch to py3 fairly easily, but each project has to do the jump independently, and it's much harder if your nearest neighbours are still stuck. Or maybe emergent properties in solid state physics have nothing to do with software development.
rhubarb for now
 
12:12 PM
o/
 
Yo
 
Yo
 
I have pyQT application that have...
@pointA.setter
stuff... is that python or QT ? What does it mean ? Its not class but I'm finding it hard to find out what it is :c
@pointA.setter
def pointA(self, point):
    self._pointA = point
    self.updatePath()
 
That's a decorator
 
12:19 PM
was just about to paste ;)
 
Sorry for meddling :D
 
ha...don't apologize :P
 
oh god @_@ what sort of sorcery is that
 
@AndrasDeak see this,
print sys.getsizeof(bytearray(r.content))
print len(r.content)
25803
25754
they are not equal
 
You hear Leonard Cohen and you want to commit suicide during the song or shortly after
 
12:27 PM
^^oh dude you heard it too?
woosh
 
@Dariusz Worry ye not. The decorator "simply" takes a function and returns another function. This allows you to "wrap" a computation - i.e. use the function as part of the value computed by the wrappings. Simple examples include a decorator to trace all calls of a function, and a decorator to cache results against arguments to avoid recomputations
 
@holdenweb mm black magic. I'm reading now about it. Sounds great but so far I have barely scratched the surface. Thanks for info holdenweb! Will be back in a bit with more... questions :- )
 
Cabbage
 
o/
 
hey @PM2Ring
 
12:45 PM
@Dariusz Don't expect to "get" decorators straight away. They can be a bit weird & confusing at first, but as you play with them they'll gradually make sense, and hopefully you'll eventually realise that they are actually fairly simple "syntactic sugar". :) The decorator in the example you posted above is rather special: it's used to create a setter method. Martijn has written an excellent answer on this topic: stackoverflow.com/a/17330273/4014959
Hi, idjaw & Andy.
 
mmm Yeah, tricky. I have a script sniped where we have few of those decorations doing a number of weird stuff. Just trying to understad what does what
 
Yeah, take your time reading it and play around with those examples to understand what is going on. Once you get it, you get it. :) I had a hard time with decorators until I just started messing around with them and breaking things and trying to figure out what was going on
Time to grind through traffic... grumble grumble temp rbrb
 
The really tricky decorators are the ones that take parameters. Imagine: @decorator folowed by def f effectively binds decorator(f) to f.
 
while I'm reading it
decorator. do they have specific names? @property/val.setter etc etc. Or are we namind them any way we want?
 
Now imagine @decorator(arg1, arg2) followed by def f. In that case, f is bound to decorator(arg1, arg2)(f) - in other words decorator(arg1, arg2) must return a decorator function!
Obv, you can make it as head-twisting as you like, but it's pretty simple in principle. As always, learn the principles and the practice should, if sensible, seem obvious
 
12:55 PM
hehe...so this just got migrated from Code Review. I think I understand their frustration with SO questions being migrated to CR. stackoverflow.com/questions/39639683/…
 
so as far as I can see...
Command Arg_A> FunctionA Arg_A> result >
Command Arg_A> decoratorB - FunctionB Arg_A to Arg_B > FunctionA Arg_B > Result ?
decorator is like... kidnaper.. that kidnaps args send to function below him, redirrect it to another function and then sends the result data back to original function
damn ninja!
 
Morning cabbage.
 
Hey
 
@holdenweb That might be a bit too advanced for Dariusz at this stage. :) But yeah, I like to think of decorators that take params as decorator factories, with the params specifying the details of the actual decorator that will be used to do the decorating.
 
Makes a lot of sense, since that is indeed what they are!
 

« first day (2168 days earlier)      last day (2781 days later) »