« first day (2121 days earlier)      last day (2873 days later) » 

8:45 AM
@Ixrec Exactly. There's basically three possible answers to this:
 
new question: is it okay in UML to have an arrow start and end on the same box?
 
1. You are missing an object: the parts of the two objects that refer to each other are actually a third object that either refers to both original objects or both original objects refer to it.
2. You have one object too many: the two mutually referencing objects are really just one object.
3. You actually do have a naturally circular relationship. Think nodes in a graph, etc.
@Ixrec Well no, obviously not, the poor box is gonna get hurt if it has to twist its arms like that!
 
I'm voting to close this question as off-topic because although the API may be used by programmers, this is not the place to ask for clarification of a company's Terms and Agreements. — BenBarnes 41 secs ago
 
9:13 AM
Probably one for programmers.stackexchange.com? — Brian Agnew 56 secs ago
 
 
6 hours later…
2:47 PM
Welcome to Stack Overflow. The purpose of this site is to answer technical questions with some given code, so your question seems to be too broad to be answered here. I think it would suit better in programmers.stackexchange.com Mayble you can try some solution yourself and, if you happen to be in trouble, ask it here with your code... — Xtreme Biker 17 secs ago
 
3:21 PM
ok, I'm factoring out a threading abstract base class from a module.
I want to try to rewrite it with TDD.
I guess first test is attempt to instantiate, and it raises an error because it's an ABC?
 
3:38 PM
assuming the errors cropping up are easy to fix
and all errors do crop up
 
3:50 PM
If the women don't find you handsome, they should at least find you handy.
If your wife's having a good time and you're not, you're still having a better time than if you're having a good time and she's not.
These quotes are relevant because they're from the Red Green Show.
Red Green? TDD? Get it?
ok, anyways, so this ABC has a couple of threading objects it delegates to...
literally "has a" :P
> and all errors do crop up
Not sure about the veracity of that...
 
4:07 PM
threading is notorious for rare race conditions that you just cannot replicate
 
I'm just about ready to start copying and pasting...
I need a red light...
 
does it work now?
 
the test passed, but the object doesn't "work" because it completely lacks the rest of the functionality.
I'm going to test a little more abstractly, changed the test name from test1 to test_must_implement_action
 
I mean does the module work
 
4:11 PM
Good programming laptop? IDE's and what not? Does it look possible to game on? Looks like a fair price to me, just want to know what you pros think
 
the one I'm factoring it out of? yes.
@EcstaticSnow you should probably take that to HWRecs.SE.
(But it looks decent, I wonder what Asus's reputation is for running Linux though...)
Brexit's causing us to do a code freeze, so I'm trying to get dev work done in the meanwhile.
 
jrh
@EcstaticSnow Intel HD Graphics is generally not good for games, 256GB is kind of a small HD for development work IMO
 
Pls continue the discussion on hardware here: chat.stackexchange.com/rooms/28945/the-rec-center
I'm trying to have an actual software architecture discussion with @ratchetfreak
There's a similar consumer thread written by a really smart guy with excellent tests. Maybe I should borrow his code (can't just merge code, his delegates to a thread object, mine is a thread)
 
I'm acting more like a rubber duck I think
 
well, I'm trying to get sharper, critique my ideas please
 
4:35 PM
ok, I'm just starting to copy and paste in methods now...
 
5:14 PM
I think I've found a useless method...
 
5:27 PM
Well, not useless, but probably shouldn't be public...
 
Where could i find downloadable java netbeans sample projects
 
Is there a Java room on StackOverflow? I don't do Java, and I seem to be the only one around...
 
Somebody here was a fan of monoids.
Citation: Negation in bounded commutative DRℓ-monoids. Contains the property ¬(x+y)=¬x−y=¬y−x=¬y−¬¬x=¬x−¬¬y, which makes no sense whatsoever if "negation" isn't the extension to monoids of "multiplication by –1". — Peter Shor 18 mins ago
 
5:44 PM
So since the internal user was the only user of the external function I just unfactored the public function to the internal implementation.
 
whats on.....:)
 
This has got to be the most beautiful Online REPL of all the Online REPLs: try-hy.appspot.com
It's an Online REPL for Hy, a little Lisp that integrates deeply with Python. (Hy is to Python what Lisp-Flavored Erlang is to Erlang, I guess.)
 
6:00 PM
Cool
@aaronchall maybe your pile of shit just isn't big enough yet. happens.
There.
Hey, guys, IT Doesn't Matter
 
@AaronHall That's cool for you! Also, Kent is a great source of one-liners.
 
@AaronHall misleading clickbait title aside, he's got a point
 
> Behind the change in thinking lies a simple assumption: that as IT’s potency and ubiquity have increased, so too has its strategic value. It’s a reasonable assumption, even an intuitive one. But it’s mistaken.
 
HBR. pft.
 
 
1 hour later…
7:22 PM
Hey, 90.57% coverage, alright.
83% coverage... :(
 
7:57 PM
94% coverage... getting close...
96%!
missing 2 lines...
 
lucky you writing a program where 100% coverage is feasible
what's it for?
 
@AaronHall Sorry
 
8:20 PM
98%!
I'm factoring out this ConsumerThread ABC from my report stuff into a utils.threading module.
It has an abstract method, thread.action(item) -> True if task finished, if False, keep trying to action it.
 
8:55 PM
So my test case actually has to implement thread.action and provide an object to serve as the 'item' that can be 'item.finished' (or whatever thread.action looks for.)
I think I could make it a little simpler if I understood the threading object a little better.
for example, I have a thread.closed() method, but the thread already has a is_alive() method.
Usage:
    >>> t = MyConsumerThread() # starts automatically on init
    >>> item = 'a' # the action method must know when 'a' is finished
    >>> t.put(item) # puts the item in the thread's queue
    >>> t.close() # don't wait until finished to close the thread

    or

    >>> t.close_when_finished() # wait until finished to close the thread
 
9:15 PM
pretty cool, right?
 
 
1 hour later…
10:28 PM
right?
 

« first day (2121 days earlier)      last day (2873 days later) »