« first day (1718 days earlier)      last day (3266 days later) » 
00:00 - 19:0019:00 - 00:00

user55340
12:00 AM
Thats exactly why you want to use final and private... because you don't want to have to think about the inheritance of the class. It takes a lot of thought to think out class inheritance right.
 
user55340
I've got half of a blog post for @JimmyHoffa on skip lists and how they work... working on some performance tests now to see about how the skip list preforms compared to the TreeSet for various types of insertion of data.
 
user55340
Insert 1M entries in order (2, 3, 5, ...)
Insert 1M entries in reverse order (15485863, 15485857, 15485849, ...)
Insert 1M entries in shuffled order
Testing the presence of 1000 items that are in the list and 1000 items that are not in the list.
Summing all 1M entires in the set.
 
2:57 AM
This question on programmers.SE, Does syntax really matter in a programming language?, should be prerequisite reading for this question. — naught101 33 secs ago
 
 
5 hours later…
7:57 AM
@Bohemian Programmers Exchange, really? this is not a "conceptual" question - it is concrete in the context of maven dependencies for java projects. Can't see that it's not a good fit for this site. — vikingsteve 51 secs ago
 
 
3 hours later…
11:20 AM
I hesitate to (vote to) close this, due to your 52k rep, but I'm not sure this is a SO question... isn't it a bit broad? Wouldn't it be better on programmers.stackexchange.com ? — freefaller 32 secs ago
 
11:56 AM
Shouldn't a question on history "Why was X was designed without Y" be asked to programmers.se instead of SO ? — dystroy 55 secs ago
 
1
Q: Can I bill the client for my time learning his system?

TorraI'm working on some bug fixes on web project for a client/friend. He has everything set up and working, but called me to fix a handful of bugs. I've never used his system, I barely know how it runs, how it's organized etc and how everything works together. I'm going to need some time to understa...

Workplace? /cc @enderland
 
 
1 hour later…
1:02 PM
0
Q: Don't allow honeypots for questions that I've voted on

durron597When reviewing, it has happened that I get a review-audit for a question I've already voted on (this is not the first time, it is only the most recent). If I know I've upvoted a question, and I know that the question has very positive score, doesn't that defeat the purpose of a honeypot? If the ...

 
@durron597 I think you need to double check education.
 
1:34 PM
@ThomasOwens Haha. my name isn't blue, can you update the pin please?
I could just make a new one I suppose
 
user55340
Clearly we need a stci cleanup bot that periodically posts and stars / clears its posts.
 
@MichaelT Do you need me to paste the xkcd graphic again?
 
user55340
It's about how to do it... And being Lazy.
 
user55340
> Laziness: The quality that makes you go to great effort to reduce overall energy expenditure. It makes you write labor-saving programs that other people will find useful and document what you wrote so you don't have to answer so many questions about it.
 
user55340
1:39 PM
Great effort.
 
@MichaelT As long as I'm the one updating the pin 90% of the time, the only person who would use it is me.
 
@durron597 until the next burnination mission
 
Sweet. True Colors is on Google Play Music already.
 
user55340
But we could have DurronBot #598 do it instead. Just like we've got the prototype gnat bot on the main site (notice, no number)
 
user55340
Oh, neat bit on rpg.se on dice. 1d8 can simulate 3d2.
 
1:45 PM
Apr 27 at 21:14, by GlenH7
@Ixrec It's probably worth pointing out that @gnat has a positive user ID number, so he's not an official SE bot. Feel free to speculate on whether or not they've attempted to adopt the AI.
@MichaelT 1 -> 3; 2,3,4 -> 4; 5,6,7 -> 5; 8 -> 6, right?
 
user55340
Read the 8 as binary (d8-1). Count the bits.
 
@MichaelT My way would be faster for me.
And, it's count the bits and add three, but you knew that.
 
user55340
I don't think you would need to add three there.
 
user55340
8 -> 7 = 111 = 3. 7 -> 6 = 110 = 2.
 
user55340
3d2 means flip three coins, count the heads.
 
1:56 PM
@MichaelT a d6 -> 1-6. d4 -> 1-4. So d2 -> 1-2, right?
 
or you do bitcount(d8%8)
aka 8->0 and keep the rest the same
 
user55340
Yep. There is also fun things like d9 can be done as 2d3 (where d3 = d6 (1,1,2,2,3,3))
 
user55340
d9 = d6 (1,1,2,2,3,3) + d6 (0,0,3,3,6,6)
 
probabilities at work
 
user55340
Or d15 = d10 (1,1,2,2,3,3,4,4,5,5) + d6 (0,0,5,5,10,10)
 
user55340
2:09 PM
@ratchetfreak button men is a fun game.
 
if all prime factors of the final dN are present in your dice you can construct it from your dice
 
user55340
Button Men is a dice game for two players, invented by James Ernest of Cheapass Games and first released in 1999. Games are short, typically taking less than ten minutes to play. Each player is represented by a pin-back button of their choice. Buttons are metal or plastic discs, about 2–2.5 inches (about 5–6.5 centimeters) in diameter, with a pin on the back that can be used to fasten them to clothing. They bear the name and illustration of the combatant (the "Button Man", or "fighter") whose role the player is assuming. They also indicate the number, size, and abilities (if any) of dice to be...
 
user55340
cheapass.com/bpu/bmstrat.html - and dig into the strategy pages.
 
user55340
In particular swing dice theory : cheapass.com/bpu/strategy4.html
 
2:37 PM
There should be a dedicated sin for people who make web pages that are green text on black background.
 
user55340
Entire web pages? Ug.
 
@RobertHarvey at least without the option to change to a standard black on white
 
user55340
Amber > green. That said, the a/b test of community adverts show the green doing better.
 
Hmm... Not statistically significant, I think.
 
user55340
2:47 PM
Still interesting.
 
user114359
3:13 PM
43
Q: how do I make my shell prompt look like a cheeseburger?

Corey GoldbergI want my shell prompt to look like a cheeseburger! 🍔 🍔 🍔 It would be nice if it also displayed: username, hostname, and current directory.

 
Is this saveable?
7
Q: High resolution graphical representation of the Earth's surface

SimonI've got a library, which I inherited, which presents a zoomable representation of the Earth. It's a Mercator projection and is constructed from triangles, the properties of which are stored in binary files. The surface is built up, for any given view port, by drawing these triangles in an ov...

 
user41796
It's an XY problem.
 
user114359
Too broad.
 
user41796
You could drop the and it would be okay
 
user41796
But I'll acknowledge my bias on that particular question
 
user41796
3:22 PM
Then again, not my best work either.
 
Also, for what it's worth, if anyone is flagging a question for historical lock consideration, you don't need to flag answers and comments. I'm not sure about the other mods, but I historical lock then do a cleanup of tags, answers, and comments.
 
user41796
@ThomasOwens Other mods (in the past) have asked for cleanup flags to be applied prior to requesting the historical lock
 
@ThomasOwens Well, recently there's been this and this
 
user41796
The theory being it reflect the community better that way
 
Since I don't have 20k (or even 10k) I can't delete vote crap answers to these historical lock questions.
@GlenH7 He's definitely talking to me as I made around a dozen flags in that vein a little while ago.
 
user41796
3:25 PM
@durron597 Once locked, you have to flag unless you're a mod
 
@GlenH7 You can't flag locked questions, as they're locked.
 
@GlenH7 That's true. But I'd hope that anyone doing a historical lock will (pretty quickly, if not then and there), come back to clean it up.
 
It may not happen immediately for me (I sometimes leave it open in a tab or bookmark it), if the flag queue is big and I want to plow through it.
 
user41796
Just relating what my memory served regarding other mods and their preferences on locking
 
3:26 PM
I'm not sure about other mods. I find it annoying to have like a dozen flags in the queue for a single question that can be handled as one flag.
 
@ThomasOwens I was thinking it would make your life easier if I would make descriptive flags about certain answers rather than you having to evaluate every answer on your own. But perhaps I was mistaken.
 
It doesn't take me that much time to scroll through answers and delete or convert to comment.
 
user55340
Note also 3x 20k in chat for poor answers.
 
@ThomasOwens Duly noted. Again, I thought my way would be easier for you, but now I see why it is not.
 
@durron597 No worries. I probably wouldn't decline any of them, since I saw what you were going for.
Unless you're a mod, I don't think you'd know that it wasn't actually easier.
 
3:30 PM
@ThomasOwens VLQ flag goes into mod queue or review queue?
 
@durron597 I'm seeing them in the mod queue.
 
@ThomasOwens Well some of them I wrote custom messages but others of them I flagged as VLQ, because it was obvious what the problem was.
 
user55340
Both iirc.
 
Going to grab lunch now.
 
And I thought that doing VLQ would allow more community involvement
 
@Snowman I wouldn't see my own VLQ flags ;)
 
user55340
It's a question of who gets there first
 
user114359
@durron597 You can see others' though
 
@Snowman There aren't any others ;)
 
user114359
proving VLQ flags end up in the regular queue
 
user55340
3:32 PM
Down voting can also punt to vlq.
 
user55340
If you down vote a short answer to 0 or -1, it will very likely show up in lqp review.
 
The kid from Brand Sins is a discount Rick Astley.
OK, back to work.
@MichaelT Is anyone looking at these queues on Programmers?
Cover letters... Critical job search tool or antiquated affectation?
 
Heh. I've apparently done 5 reviews all-time.
 
user41796
@RobertHarvey Useful when your resume doesn't immediately fit typical pigeon holes.
 
user41796
3:41 PM
But not necessarily required either
 
user41796
So if you have a few elements that tie together and present a stronger view of you, but that combination may not be immediately obvious, then the cover letter is helpful
 
user41796
Speaking of interviews... @durron597 - how did things go?
 
@GlenH7 Very well, but not perfect
 
user41796
I don't think any interview goes perfect
 
I crushed all the easy questions but there were some snafus
For example, in the System Design segment, he was like "so how would you store <the data we've been talking about> in memory?" and I was like "uhh what do you mean"... but if he had said "what data structure would you use" I would have said "A hash table. Definitely." Just sort of a communication breakdown
Though eventually I figured it out... most of the issues I had was stuff like that
 
3:45 PM
Hmm, this is what the email from Dice to the employers looks like:
> Another candidate brought to you by Dice. No cover letter submitted
 
user41796
@RobertHarvey lovely
 
I think I'll put something in there from now on, even if it's short.
 
user41796
@durron597 I wouldn't sweat that too badly then
 
But I skipped the cover letters, and managed to get 30 applications out last night. Which is probably more than I got out the six weeks prior.
 
user41796
@RobertHarvey Is Dice allowing you to select who you are applying to? Or is this a generic thing they want to see for when they auto-match you to a prospective employer?
 
3:46 PM
@GlenH7 My worst of the 6 interviews, I got the easy question right (in O(n)), and then in the hard question followup, all my ideas were best case O(n), but he kept digging on me for a worst case O(n) algorithm
 
user41796
@RobertHarvey If crafting the letter is holding you back from submitting, then don't worry about it so much
 
I did a search, and after applying to a couple, it started giving me "similar to" and "people who applied for this also applied for" matches.
 
It was one of those algorithms questions where worst case O(n) is still possible but you have to be really clever. The problem is we only had 45 minutes
 
user41796
I'd skip them in this particular case. When rolling Dice, you want take targeted shots. I don't know that a cover letter would significantly bump your odds.
 
user55340
@RobertHarvey 848 lqp reviews. Glen has 1327.
 
3:47 PM
It was a legitimately hard question. I don't know what the expectation level is.
 
user41796
@durron597 I like having a range of questions to ask. If the candidate answered everything perfectly then I didn't have a broad enough range of questions.
 
They're looking for your ability to code. But, I must confess, some of these coding interviews are difficult for me to pass also. Basically, you need fairly deep computer science knowledge and the ability to code very fast. Look on GeeksForGeeks for the type of problems they want you to solve in interviews, and HackerRank for practice problems, but don't expect to be an expert at these white board interviews overnight. — Robert Harvey 15 hours ago
 
Well, all the coding interviews were easy question -> hard question
 
user41796
Not playing a gotcha game. Rather, I'm trying to identify your skill level
 
user55340
I know before 20k, I'd down vote to punt to lqp so that I could recommend deleting. And sometimes we'd get 6x votes in before a mod deleted.
 
3:49 PM
Well, actually only 3 out of 4 were. I don't know if the fourth interview had a follow up question because we never got to it.
 
user114359
 
But the "easy" question was very... figgly. Easy to make a small math mistake, off by one, that sort of thing, which is why it took so long.
 
user55340
Now it's often the case of seeing two delete reviews and a recommendation.
 
@Snowman More like "evil twin," I think.
 
user41796
@Snowman I like Robert's better. Isn't all pixelated
 
3:50 PM
Of the other three coding interviews, I crushed one "hard" question, did very well (and had time to implement) the second hard question, and had the bad one I described above.
 
user41796
@durron597 Attention to detail is important
 
user114359
@durron597 What about the non-code things? Fitting into the culture, for example.
 
@durron597 asking clarification is pretty good
 
@durron597 Sounds like you killed it to me. If I were interviewing people, I'd always put at least one question that's impossible to answer in the time allotted, just to see what people can do with it. Being on the other side of that fence is not pleasant, of course.
 
plenty of people just... don't ask them
 
3:52 PM
The figgly question was similar but not the same as this project euler q: projecteuler.net/problem=15
 
@durron597 And if they're making the interviews that hard, they damn well better be paying a lot of money.
 
(I can't tell you exactly what it was because of NDA). But just to give you the idea of what I was dealing with.
@enderland Oh I did that loads
 
google pays quite well... though depending on CoL might not be an effective raise
 
user114359
So, some type of lattice problem
 
user114359
Despite there being a formula it can be a little tricky.
 
3:54 PM
@Snowman I had a strong rapport with at least two of the interviewers. Several of them stayed late (they tried to keep to a really strict schedule) just to chat with me about random stuff
 
user114359
@durron597 that is normally a good sign.
 
Anyone here know Angular? (for a hypothetical question)
 
@RobertHarvey, I played with it a bit, just toyed around really, might be able to answer
 
@Snowman Think like, path traversal in a large graph according to very exacting requirements. So it's easy to take the wrong path if not careful. Again, that's not enough to give you the question but enough to follow what I'm saying.
 
@durron597, that's your google interview?
 
3:55 PM
@André yea
 
@durron597, hope you did great then :-)
 
How long should one reasonably expect a seasoned programmer to take learning Angular? Corollary: does anyone really need two years or four years experience to be productive in it?
 
@RobertHarvey, I'd say 2-4 months, and no, a 6-8 months at best to be productive (to be able to express any concept/idea)
 
@RobertHarvey My girlfriend thinks I killed it too. Because it wasn't perfect, and because I don't know the threshold for success, I don't actually know. Like, I think I got a 9/10 but they may want a 10/10, you know?
@André Thanks
 
@durron597 Nobody gets a 10/10. If people can do that, they can build the next Google platform in 10 days.
@André Thanks.
Already got two bites so far this morning from those 30 applications I sent out last night.
 
3:59 PM
@RobertHarvey :)
@RobertHarvey Nice!
 
@RobertHarvey, knowing the MVC, how to consume REST, dealing with JSON and having prior experience in building rich internet applications is enough, Angular is just a framework to deal with all these concepts
 
@durron597 you sound a lot more bummed about it than you should imo
 
I think I'm going to send a application to Arctouch
 
@enderland Well, I'm just naturally nervous. Plus I thought I did well three years ago and didn't get it.
 
They said if I just know Java well and can code clean that will be enough, they don't need a expert in Android, it would be a asset. I suppose is the same with Angular requirement
 
4:04 PM
@RobertHarvey depends on whether they want it to make sense or not; if it's an experience developer it will probably take them longer to get a handle on Angular than someone new who doesn't quickly realize much of it makes very little sense
 
@JimmyHoffa It doesn't matter; it's sponsored by Google, so that's where the herd goes.
They're going to change everything in version 2 anyway, which should be fun ;)
If I can spend a couple weeks slinging some Angular and get comfortable with it, I'm going to stick that keyword on my resume and start applying for jobs that ask for Angular experience.
 
@RobertHarvey I'm not kidding though. Somebody who's green can overlook a lot of oddities and pick them up as just memorizing "Do-this-like-that" from tutorials 'n such, somebody who's experienced and used to reasoning through behaviours will have a lot more trouble remembering to Do-this-like-that because it doesn't make sense that you should do X that way
 
I don't think about how UI frameworks work. Winforms never made much sense to me, but that's all I had for years.
Angular seems like a step up from Winforms.
 
user41796
@RobertHarvey There are some parallels to be drawn there. Follow the established road and don't focus too closely on how it works under the covers. Then it's fair enough
 
@RobertHarvey will be just as crappy; same people doing 2 as did 1, and they haven't let go of their erroneous beliefs that it's ok to have a completely ambiguous scoping which is nonesense
 
user41796
4:08 PM
I'd echo Andre's estimate of 2 - 4 months being reasonable. There's a ton of material out there to help with that.
 
@RobertHarvey really? WinForms always made absolutely perfect sense I thought, I've never heard anyone say they didn't think it was clear and obvious how it behaved...
 
Here some material about AngularJS
 
Winforms is good for small applications, but it doesn't scale well out of the box. You have to start imposing some serious discipline to write larger programs.
 
@RobertHarvey absolutely! It's still got obvious semantics though, Angular's semantics have lots of ambiguity which is why people have memorized Just-do-it-this-way because there's no way to reason through many of it's behaviours
 
I can see that happening @JimmyHoffa
 
4:12 PM
A good deal of the effort of a programmer is dealing with all of the pitfalls and corner cases of a programmers' tools.
 
^-- anyone looking to use Angular really should read this
@RobertHarvey Angular puts the pitfalls front and center, not in the corner.
 
Angular is popular for two reasons: Google, and it's a Kitchen Sink. The trainer that I was watching yesterday said you can do all the same things with other libraries, but you need several of them, not one.
 
user55340
 
@RobertHarvey no one disputes it's popularity, I'm just disputing it's quality. Also I dispute your trainers claims that it takes several libraries to do what Angular does in one as a bad thing. That is good. That is the definition of modularity. Angular fails in terms of modularity terribly because it's an everything framework
 
user114359
@JimmyHoffa SRP: do one thing and do it well.
 
4:16 PM
You don't like how it does X? Tough, you can't choose another framework to do it because angular will fall over since it's too busy integrating with itself (AKA: being tightly coupled). And guess what? Angular does most all versions of X because it knows better than you what you want!
 
@JimmyHoffa Oh, I never said it was bad. I only said that Angular is a Swiss Army Knife, and that's what people seem to want.
 
@RobertHarvey yeah, except the scissors are sharpened on both the handles and the blades, and the tweezers have pin-points at the end, the corkscrew's just straight like a nail, but sure it's got every tool you want...
 
user114359
@JimmyHoffa including a nuclear grenade? I hope you have a strong arm...
 
Swiss Army Knives are cool, but they were never very good at any one thing. The bigger they are, the worse they become performing the individual functions.
 
user41796
@Snowman optional module, but yes.
 
4:19 PM
I'm just saying, it's a low-quality terrible framework. Everyone everywhere is using it, and that will be the case for some time. Everyone will have a hangover in about 2 or 3 years from it after enough devs have spent enough time fixing shit that's broken because the framework they work with is jacked
 
Yeah, was just about to link that.
 
user114359
Q: Where is the Flugelhorn? A: Right in between the warp drive and the creme brulee torch.
2
 
user114359
Which actually just about sums up AngularJS
 
@JimmyHoffa And so the cycle begins, once again. HTML5 is the new hotness, and Flash is so yesterday. I wonder what will replace HTML5 in 10 years.
 
4:21 PM
Angular's like WebForms, there was huge swaths of it being written for a long time, but after ~5 years everyone realized they spent more time wrestling with problems with the framework than actually working on the system they were meant to be working on, and now you only hear it mentioned with a scoff from bad memories
 
You guys are making me cry over the Angular think. It's pretty much what every employer wants.
 
@RobertHarvey not everything goes bad so quickly as WebForms did and Angular will, .NET is still a great thing, client-side web applications working off REST endpoints are a solid architectural design, those will still be in vogue 10 years from now.
 
user41796
@RobertHarvey Winforms makes me cry too. But I learned the technology because I wanted a job.
 
Flash.. I developed in Flex, it was.. like, working around the framework 7 hours, actually coding, 1 hour.
 
user114359
In all fairness I have only brushed up against AngularJS a couple of times and have not had to use it much. But those few times were confusing as hell.
 
4:24 PM
@RobertHarvey Nothing wrong with learning it and working with it, just saying if you don't want to get bit by a cobra working in it, beware that it's not very good and be careful with it.
 
@André That's what I mean. I had the same sense with Access, which I developed applications in for years. It's incredibly rapid development initially, but you spend 80% of your time coaxing it to do things it wasn't designed to do, but which you really need it to do. That's why two-inch thick books were written about it.
 
user41796
The venomous snake is a good example. It can be handled safely if you're aware of what you're doing. And always maintain that level of awareness because it will strike if provoked.
 
learn it, get a job with it, the industry far and wide is using it so that's all well and good. Just don't be bowled by all the fanbois "its better than bread, bacon, and cinnamon toast! It puts me to sleep at night with a soft coo of contentment!" pfleh. There are better ways, it's just The Way the industry is working right now.
 
user41796
@RobertHarvey I'd code in Angular way before I'd code in Access (or Excel)
 
user41796
@JimmyHoffa Bacon cinnamon toast is way better, no doubt.
 
4:26 PM
Well, there you go. And Access is a pretty good development platform. It's Achilles' heel is deployment.
 
@RobertHarvey, coded in Access too, same experience.
 
Deployment problems are what forced Employer^^ to rewrite in Winforms.
 
I thought Access was a database, not a language. That's like saying "I coded in postgresql"
 
user114359
@durron597 it is both
 
Reading the open job listing here: "C, Delphi and Cobol required" [sigh]
 
4:28 PM
@André Delphi is actually pretty nice to work in
 
user55340
@GlenH7 @Snowman the post you commented on about being a comment is better. Please consider deleting your comments so I don't have to flag them.
 
@durron597, you actually code in VBA within Access
 
@André Yeah, that's an employer who's trotting out their laundry list of technologies, and hoping someone has worked in all of them.
 
C and Cobol...well, I think I could actually live with C but Cobol I don't know and absolutely do not want to
 
user114359
I think of Access as "Oracle Forms for one seat"
 
user114359
4:28 PM
@MichaelT which comments?
 
user55340
2
A: Help with OO class design / Object Thinking

JacquesBIt is perfectly fine to have an object which exposes data rather than behavior. We just call it a "data object". So why would someone say "getter and setter methods are evil"? You will see this a lot - someone takes a guideline which is perfectly valid in a specific context and then remove the c...

 
@JimmyHoffa, it just doesn't scale very well, for very large projects, but yeah, it's pretty nice for small, quick projects.
 
user55340
I'm just a bit slow on the phone linking to things.
 
@Snowman You can comfortably network up to 20 or so users, if you use SQL Server Express as a backend.
 
user41796
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. — Snowman 37 mins ago
 
user114359
4:29 PM
@MichaelT must have been an auto-generated comment from the VLQ queue
 
user41796
@MichaelT Agreed, and the change should keep it from being deleted via VLQ
 
user114359
I did not manually comment and did not realize the system added that
 
another pearl "Knowledge of Java Web"
 
user41796
@Snowman Yes, the system adds those pro-forma comments if that's what you select in the VLQ queue
 
user41796
I frequently select "No comment" for that reason
 
user114359
4:31 PM
After being edited I think the answer is fine though.
 
@André Delphi? Au Contraire, it just depends on the task. It's a good language and is plausibly the best for windows desktop applications out there, but beyond that it's still a decent OO language with a good module system to let you set up your boundaries and abide the SOLID principles with ease
 
@JimmyHoffa, I suppose my experience is limited then to humongous poorly coded enterprise grade blob's of code.
 
@André aye, mostly procedural programmers working in Delphi still so yeah..
 
There is this software here, it has a function with 3500 parameters
 
I put it on par with .NET for the most part, just doesn't have as robust community supported libraries, the framework isn't as robust, and the language lacks a few of the finer functional abilities, but otherwise there's no reason you can't implement a nicely designed well segregated system in it.
 
4:49 PM
2
Q: How to inherit from classes that have relationships between each other and recreate the relationship on the higher level?

MarcI have two classes that know each other in a many-to-many relationship. Now I want to have two additional classes that inherit from the existing classes. The association between the inherited classes should stay. Example: Say you have a Vehicle public class Vehicle{ } And you have Tires pu...

^-- completely rewrote it just now
@Marc hope you're okay with me having...removed your entire question... please edit back whatever you want! I just figured I'd go out on a limb because frankly, what you had before took far too much work to parse
You can look in the revision history and see the previous question to pull pieces from and put back into your question
also vote to reopen that Q if it makes sense now folk! @MichaelT @RobertHarvey
 
@JimmyHoffa ITires.
 
@RobertHarvey nope
 
Also, "Oh, shit: I just invalidated all the original answers."
 
Truck.Tires still doesn't return TruckTire[] then, it just returns ITires
@RobertHarvey they were invalid to begin with - because his Q didn't make sense people misunderstood his problem
 
Meh. Composition.
Also, vehicles and animals make bad inheritance metaphors.
 
4:54 PM
@RobertHarvey If you can write code that allows the inheritance he described and makes Truck.Tires return TruckTire[] instead of Tire[] or ITire[] etc, go for it.
 
Composition.
Not inheritance.
 
user114359
I was out of CVs at the time so I did not vote on that question, but that wall of text was painful. I agree with the close reason. I am not sure if you accurately captured the author's intent, because I have no desire to read through The Great Wall of Text in the revision history.
 
@RobertHarvey so write up an answer with code showing how to get his desired effects without using inheritance and explain why he doesn't want to do what he's asking to do, but otherwise I say he's asking how you would do it with inheritance. No harm in showing him how he can do it with inheritance.
@Snowman He came in here and more or less told me I did capture his problem, you can wait to reopen for him to respond to me in here saying I got it right or not.
the reason the question was so troubled was he didn't understand the problem well. No answers would have solved his problem when he didn't even know what his problem was to begin with...
 
user114359
@JimmyHoffa fair enough, I was not aware.
 
@JimmyHoffa I approved of this edit. With a reopen vote.
 
4:58 PM
if he edits it back to a pile of nonsense I'll vote to close it again as I did before heh
 
It sounds as though you're using inheritance as a mechanism to share private implementation details. This is generally considered a bad idea; it is much better to use composition for this purpose, and only use inheritance where objects need to both have the same public interface and implementation (e.g. because they are to be used as polymorphic substitutes for one another). — Jules yesterday
 
@RobertHarvey quit pointing at other things and solve it or don't :P I agree inheritance is a bad design and said as much when I spoke of it earlier
 
user41796
2 audits in a queue in a single day irks me because of the wasted votes
 
@GlenH7 The reviews are wasted but not the votes
Besides they were both leave open reviews.
 
user114359
5:11 PM
@GlenH7 what if you skip them? Generally audits are fairly obvious.
 
user114359
and a shift+click away. When I open the "real" question and it has a red background that is a fairly good indication it is an audit.
 
@Yannis I flagged asking to delete all comments on this, if you see this before the flag would you mind? Or if not all, I'm not up to parsing which ones could stay and which ones couldn't...
 
user41796
@Snowman My observation is that the algorithm to pick review audits keeps pestering you until you finally deal with one of them.
 
user41796
@durron597 review vote, yes.
 
@GlenH7 or until you get stabby
Stabbiness is a precursor to most anything you want stopping IME.
 
5:13 PM
@GlenH7 Yeah, I don't care about that, I'm usually happy to have the extra close vote that I can use to throw a new question in the queue
 
user114359
@durron597 you only get 20 reviews, audit or real. I have ended my 20 reviews with 7 votes before.
 
user41796
I nearly put a comment on a question today to the effect of "Voting to close as Foo as this showed up in a review audit and this question's quality is too low for it to be used that way."
 
user114359
even on days where I never "leave open" any questions
 
@Snowman I'm happy to have the extra close vote, I don't care if a "review" is "wasted" by an audit.
 
user41796
but I just down voted and VTC'd after clearing the audit
 
5:15 PM
13
Q: Allow high rep users to indicate that a honeypot question is a false-positive

jonscaHaving seen at least two questions here on Meta today about reviewers running into honeypot questions that may have been edited into shape in the meantime and undeleted, I think there needs to be a mechanism in place for users to audit this audit mechanism. I grant you, having an It's not fair b...

 
user41796
The impression I get is that the review audit tool is a pretty low priority for the SE team, but I could be wrong.
 
it's also designed for people robo reviewing
not people actually doing reviews
 
user41796
What's the big O equivalent for using a LINQ select (or equivalent) instead of a foreach loop?
 
user41796
Mebbe I ought to ask that on Main
 
@JimmyHoffa You're great! It is not on an UML basis, but that's okay. And I'm totally agree with you saying the following: "so write up an answer with code showing how to get his desired effects without using inheritance and explain why he doesn't want to do what he's asking to do..."
 
5:27 PM
Top Reasons to Work with Us

1. We have been in business since 2008 and are continuing to grow.
2. __Our CEO has been making money off of the internet since the age of 13__
Egad, Markdown in chat is so flaky.
 
@RobertHarvey, awesome, where I can send my application?
 
@Marc Bleh. "Use Composition."
 
user41796
@RobertHarvey So you're working for someone who can't legally drink alcohol yet?
 
No drinks for you.
 
"Making money off the internet" can mean a lot of things
 
5:30 PM
Linq select is equivalent big O to foreach.
 
user41796
@whatsisname Fortunately, not all of them are unsavory
 
user41796
@Telastyn Thanks. That's kind of what I was thinking as well, but wasn't certain
 
user41796
I have two foreach loops, one nested in the other. I went with a select to remove the inner loop
 
user41796
where remove === pasted over it with syntactic sugar.
 
@Telastyn Isn't SELECT lazy, as in yield return?
 
5:34 PM
@JimmyHoffa Yesterday, I was thinking about how to remove the confusion out of my question. I studied the Composition Pattern and created sample code. But it turned out the UML model is looking totally different now. Remains the question, how would an implementation of my first diagram look like? I mean there is no direct relationship between "SuperParent" and "SubChild".
@RobertHarvey Bleh. "Thanks!"
 
Linq select is basically a glorified foreach wrapper
in fact, most linq functions are basically glorified control statement wrappers
 
Microsoft went to a lot of trouble to write that glorified foreach wrapper.
 
Select is lazy, but it has the same performance of foreach. If you exit select early or exit the foreach (return/continue/etc) makes no difference.
 
user41796
0
Q: Big O equivalence for LINQ select

GlenH7I'm trying to determine if there is a change in the Big O equivalence of a nested loop when I use a LINQ select instead. public void myFunc(List<Foo> fooList, List<Bar> barList) { foreach(Foo foo in fooList) { foreach(Bar bar in barList) { if(foo.PropA == bar....

 
user41796
Feel free to go rep farm on that one
 
5:47 PM
Sorry, in Vegas with an iPad. Not conducive to coherent answers.
 
user41796
I think Big O notation ignores the fact that the lists could be different lengths
 
user41796
Although they should be identical in this case
 
user41796
It would be interesting to compare the IL produced by the compiler for each of these. — Dan Pichelman 2 mins ago
 
user41796
@DanPichelman - Quit nerd-sniping me! Yes, I agree that would be interesting to find out. Are they equivalent or not? — GlenH7 32 secs ago
 
Big O notation also ignores the constant on the front, which is often ignored but is often still very important
 
user114359
5:51 PM
@GlenH7 depends on how you define n. Technically there are two inputs making it O(n*m), but often we just simplify to O(n^2)
 
user41796
both n and m are reasonably small (~100) and they may differ in size by less than 10% total unless something went really, really wrong.
 
I would be stunned if the linq reduced the complexity. I would not be surprised if it increased it.
Well, actually, no, I'd be surprised if it increased the Big-O complexity
I would not be surprised if there was a constant-factor overhead, though.
 
user114359
If you really want to be pedantic they are both O(n^3). But what is the ϴ?
 
user41796
@Snowman because of the if(bar.PropZ.HasValue) part?
 
user114359
@GlenH7 no I'm just messing around, ϴ is the least-worst bound ;-)
 
user41796
6:02 PM
Normally I couldn't give a hoot less about Big O notation. But this one piqued me for some reason.
 
user41796
And I wish I had the time today to delve into the IL as Dan suggested
 
Analyzing Linq for Big O is complicated by the fact that, when you're creating a Linq statement by chaining Linq methods together, you're assembling an execution pipeline that is lazily executed unless you use a method that forces eager execution.
 
user41796
@RobertHarvey So you're saying I have a deeper question than I realized? :-)
 
Possibly. Most linq methods aren't equivalent to for each; they're equivalent to yield return. It's the for each that actually forces execution.
Or the returning of a value instead of an IEnumerable, as in FirstOrDefault()
Or calling ToList(), which essentially builds a new list using for each.
 
This may be a better question for programmers.stackexchange.comxxbbcc 23 secs ago
 
6:26 PM
yield return also turns into a compiler-implemented state machine
which is ultimately very similar to a foreach loop
 
6:39 PM
OMFG I don't believe what Microsoft makes you do to change Skype acccounts. They actually want you to bind the account to a new Windows 8 account.
 
user41796
@RobertHarvey They are not gracefully when it comes to handling accounts....
 
they are not graceful when it comes to handling anything
 
Oh, FFS.
The screen name and the email address are apparently not connected together.
 
user41796
@RobertHarvey Nope, 'cause that would be too easy
 
user114359
I have not used Skype since Microsoft bought it. No regret.
 
user41796
6:48 PM
Not sure I've ever needed to use skype
 
How the flying fsck do you change your screen name, or even see what it is?
 
user41796
probably have to sign into microsoft live
 
user41796
IIRC, all accounts for all systems are backed by an MS Live account
 
user41796
I've got two (or three or however many now...)
 
I'm signed in, but the Skype program won't accept an email address (which is what my Microsoft account accepts).
 
user41796
6:50 PM
glenh7@mycorp.com converts to one MS Live account. glenh7@mymail.com converts to another MS Live account
 
What's the URL for Microsoft Live?
Ah, there it is.
No Skype name there.
This is like solving a Rubik's cube.
 
user41796
Throw the account away and start with a new one? Or does that take you back to having to have a Win8 account?
 
Ah, got it. Sign in with a different account, Microsoft account, email/password.
Not that difficult once you do it once. Won't ever have to do it again, of course.
 
what is especially great, is when you use a microsoft service, and leave the page for a long time
it times out and makes you provide your password again
then, only after you put it in properly, then it says "your session has timed out"
and makes you reauthenticate
 
My favorite part is when you ask for a password reset, and it already knows every password you ever used before and won't let you use any of them.
That's just an invitation for an endless loop of just asking for a password reset every time you want to log in.
Anyone here have Skype? I'd like to test this thing, but don't want to have to go through the purgatory of creating a test account.
 
6:59 PM
I have Skype
(can't remember what arbitrary rule made me tack numbers onto this one)
 
00:00 - 19:0019:00 - 00:00

« first day (1718 days earlier)      last day (3266 days later) »