« first day (1350 days earlier)      last day (3654 days later) » 

user55340
12:28 AM
@RobertHarvey on the tag burning thing for SO's external tag. Does data.stackexchange.com/stackoverflow/query/194328?Name=external help?
 
user55340
1:16 AM
@AshleyNunn btw, did you check out those Evil Inc comments?
 
user15026
@MichaelT I completely forgot. Relink please?
 
user55340
yesterday, by MichaelT
@AshleyNunn oh, for comic comments... peruse http://evil-inc.com/comic/strange-bedfellows/ (kind of safe for work, but its a webcomic... and involves a covered but undressed super heroine and a villain that resembles an octopus)
 
user15026
Excellent. peruses
 
1:56 AM
 
user55340
2:22 AM
programmers.stackexchange.com/questions/239106/… (and hopefully a speedy delete too)
 
user41796
2:46 AM
@MichaelT I got it one VTC closer. I'll double check in the AM to see if it's ready for delete.
 
user41796
@RobertHarvey small smidge, yes. We're starting to incorporate it into our UI v.#.
 
3:47 AM
About to pull the trigger on migrating a question to Programmers, but thought I would confirm/check here (instead of directly pinging a programmers mod).
0
Q: How to hide AOP implementation dependency without breaking encapsulation?

TimI have the concept of a SlowLoading thing: public interface SlowLoading { boolean hasLoaded(); } I also have a component MyComponent: public interface myComponent{ void doSomething(); } My implementation covers both: public class MyComponentImpl implements SlowLoading, MyComponent { ...

If it does not come to programmers, I am just going to close it.
Meh.
 
 
4 hours later…
8:06 AM
Hi Guys !
Hey @rolfl , @RobertHarvey
 
 
2 hours later…
10:31 AM
Hi, I am developing an ideal coding flow on pseudo code, it was not valid for an question, so I post it here. Let's see how it looks like in chat.
WHEN Mikko IS programming THEN DO {
ON_ISSUE() {
First of all investigate throughly WHAT is the issue and WHAT causes it. Ask if you're not 100% sure.
THEN identify HOW you can fix it. The fix is obvious and one line, normally.
Code it. Test, success, DONE!
}

ON_TASK() {
Identify what is needed to be done. Probably take some "basement" from an existing solution.
Select functionality, one portion. Add possible stubs to others.
Make that work. DONE that part. Then select the next one.
}
}
Any opinions, suggestions?
 
10:44 AM
while(compiling)
 
That's the picture of my previous "flow".
Now I wanted some new.
 
11:42 AM
My main interest was before to get over the next compile, not identify the issue in first place. At least energy was consumed to wrong thing eg. frustration of lazy computer not finding out the lazy programmer..
 
What is up with all the "gimme the codez" and homework questions the past couple of days?
 
new trimester homework?
 
In the US, most schools have graduated and are in summer. I'm not sure about other places, but I wouldn't expect this kind of influx at this point in the year due to school.
 
Maybe other country but US? Maybe some other countries have different schedule and longer "last minute"..
 
in EU most unis will start the exam period about now
 
11:58 AM
I'm not imagining the low quality questions, am I? The ones that show no sign of effort or research.
 
Seen them too. I suspect one was from exam while there was the direct copy paste of question and only question to SO was "could you help me out. Why they always ask this and I cannot answer".. Come on!
What you can but close that kind of things?
 
Not much. If they don't learn, mod message them. But that's only if the down votes, closures, and deletions don't block them from asking questions first, since that's just a waste of time.
 
Well, most of these 1 rep guys. No can do.
 
user41796
1:05 PM
@rolfl Good one for migration; thanks!
 
user41796
@ThomasOwens No, not your imagination. There have been several afternoons where I stop watching the feed because I'm out of close votes. Or the influx is simply too depressing to watch.
 
user41796
@mico You're combining state with methods, and that's what's hanging you up. And your methods are too big, so you'll have a harder time keeping the detangled from each other. Prefixing your methods with "ON_" is a big giveaway that you're really dealing with state. Methods should deal with actions.
 
2:32 PM
This summer, I'll be in Seattle during Boston Beer and Bacon Festival and Boston during Seattle's Beer Week (which I have been informed also contains large amounts of bacon). I kind of have poor timing, don't I?
 
 
1 hour later…
3:39 PM
@ratchetfreak How long is your compile cycle? Because I have a project with about 80,000 lines of code in it right now, and the 15 second compile time on that seems like a long time to me.
 
@RobertHarvey My last job the compile took ~45 minutes for any and every change - including javascript changes because of how they managed their javascript. Talk about a stupidly organized system...
 
That's just crazy.
When I worked in VBA, there was no compile cycle.
This is why people like REPLs.
 
@RobertHarvey it was ridiculous, as if their policies already weren't wasteful of dev time enough, everytime I did finally get some code to change or write, it would just fits and stops of "ok I have something" click build and wander around for almost an hour or browse the web
@RobertHarvey it's true. I can get a long way in Node.JS or SmallTalk in working on the software live and running to see how it'll work with no compile-time breaks
 
It seems like such an extreme difference in programming styles. I can see why all the C++ guys are such crystallography weenies... Their code has to be right the first time, before they push the compile button.
 
@RobertHarvey yeah, that toolchain is so much more than scary
 
3:43 PM
@RobertHarvey have you ever tried to compile the entire pcl suite? that took an hour on my machine
 
No, I haven't had the pleasure. :)
 
or the boost binaries that also takes a while
 
You look at some of the more spartan languages like Scheme, and go "wait, where's my toolset? Where's the IDE? Where's my intellisense?" There isn't any of that.
 
@RobertHarvey Sometimes you really don't need much toolset. Haskell has a compiler, a package manager, and a command line build tool, and a REPL, and that's really enough. edit file-> :reload in REPL and see what happens. Or with Emacs.... many languages are like that.
 
I also once had to test an integer overflow with writing to a file seek pointer overflow, that took me an hour or 2 just to let it all write out...
 
3:50 PM
.NET devs are just treated like the whole visual studio experience is completely required
 
meh commandline is enough for all the compiling needs :)
or if you are tired of the use a batch file
 
I mean, you could do C# development without the IDE. You could also take your trash to the landfill one item at a time, but that doesn't mean it's necessarily a good idea.
My current project has 300 classes in it. I don't know how I'd navigate that without an IDE.
 
grep
or right windows doesn't have that
 
Yeah, but "Go To Reference" is so convenient.
 
3:53 PM
On the flip side, my God is that thing bloated. A single core machine running at 3Ghz is no longer enough horsepower for Visual Studio.
 
and besides it having 25 threads most of the work is still done on a single one
it'll peg a that thread quite happily and not even bother with basic parallelism
 
@RobertHarvey my point isn't people shouldn't use visual studio, but rather that it's not necessary - moreover one can be quite productive and a very effective developer without that huge behemoth. Which much of the .NET industry would claim heresy because they blind themselves to how other language users operate
 
there are other IDEs you could use
 
@JimmyHoffa I would need a much better gray-matter memory than I have now to work that way.
 
Though obviously if you're working in .NET - you'd be an idiot not to work in it - you will obviously be more effective in .NET using it than not
@RobertHarvey yes and no, perhaps you would design things to require less memory
 
3:57 PM
unless you find that mythical perfect IDE for .NET
 
Last night, I did a bunch of refactoring by simply chasing type errors through the classes. That would be hard to do in a text editor.
 
not really
 
It can be said that intellisense causes devs to make code that's harder to maintain because they have this huge crutch that reminds them of things all the time. Meanwhile if you didn't have intellisense, you might put code together in a way so that when you come back 6 months later, you don't need to use your memory because the things being referenced are all in the file or otherwise organized
 
edit ->recompile->see error
 
Yeah, I guess. But "Go to Error" is really convenient. :)
 
3:59 PM
I guarantee you knowing intellisense is there leads .NET devs to design their code and systems in a way differently than if they didn't have intellisense
something people don't think about - all of these tools change the way you design things subconciously
 
Maybe. I could do with a better knowledge of the Framework Library landscape. Anyone have a year I can borrow? :P
 
@RobertHarvey Please, take 2012, I could have done without it
 
it was a nice end of the world...
 
Most churches get away with that because they don't give specifics. "We know the end of the world is coming, we just don't know when."
It's when you get specific that you're doomed. Even then, they can always weasel out by saying "well, I guess I got my calculations wrong."
 
4:04 PM
> the line was fuzzy I must have misheard year for eon
 
psr
4:27 PM
@JimmyHoffa Dear god! I assume nothing ever actually got done?
 
I wish I could say that the 45 minute compile cycle was uncommon. Alas, I've heard it all too often. As I understand it, a big part of the whole continuous integration movement is to have several really fast computers continuously grinding on the code base so that compile cycles can be minimized.
 
@JimmyHoffa Good point of programming style vs ide usage. When coding with notepad you automatically try to keep code simple. At least you avoid extra complexity, not even speaking about every fetch function automatics and so on.
You can automate match fetching of new interfaces and stuff, which is not always nice
 
@ratchetfreak The Point Cloud Library?
 
4:57 PM
@RobertHarvey yep the prebuilt available are only 1.6 while I need 1.7
 
user55340
5:15 PM
@RobertHarvey modularization is key there. That said, it doesn't matter if a full build takes a long time if the devs can do quick turn arounds with working with smaller parts of the code (unit tests, smaller libs, IDEs that recompile just the code that is changed for its internal vm...)
 
@Prog: If you can't slog through three 25 minute Pomodoro sprints, then you might want to consider a different profession. — Jim G. 10 secs ago
 
5:56 PM
-4
A: Working on a project, lacking motivation to actually get to coding

ytkv@Robert Harvey Now excuse me while I close my browser and go get some work done. I don't think watching youtube videos about kittens on your tablet qualifies as getting work done ;) @Prog Try to build the mental model: I'm gonna do the laundry in 20 minutes, let me program a little until t...

How did he know??
 
6:13 PM
@psr literally nothing. Least productive six months of my life.
@MichaelT yeah when I worked more on build stuff this is what I always drove towards for that reason. I couldn't drive architecture to make them fix their jacked up builds, but I could at least get builds moving quicker by convincing them to break shit up
 
psr
It's strange when people let things go so far beyond the point of becoming completely unworkable.
 
@psr yeah, poor MUMPS devs
 
6:28 PM
lol
 
psr
7:16 PM
:15549101 MUMPS devs don't have to wait for a 45 minute compile to fire up the REPL and do a quick
S Q="^oddDEF",QL=Q  F  S Q=$Q(@Q)  Q:$E(Q,1,$L(QS))'=QS  I @Q["ToDo:"  W !,@Q,":",Q
 
@psr true, MUMPS devs go far beyond the point of becoming completely unworkable in far less time than 45 minutes ;P
 
7:40 PM
can you imagine being so familiar with that that you could recognize what that does in a glance
 
8:03 PM
@gnat are you in here?
Curious why my post got protected
16
Q: Helping someone who is not and never will be a professional programmer write code that is more legible and usable to use and interpret

durron597I am Elvis, trying very hard to learn to be Einstein. I work for Mort. What the hell is this crazy idiot talking about!?!? (You only need to read the first few paragraphs) If you don't feel like reading that link, basically, I am a professional programmer, and my boss is (this is scarily accura...

If I had the rep I'd close this as "unclear what you're asking"... agree?
0
Q: Theoretically bug-free programs

user2443423I have already read lot of articles, which stated that code can't be bug-free. They are talking about these theorems: Halting problem Gödel's incompletness theorem Rice's theorem Actually Rice's theorem looks like implication of Halting problem and Halting is in close relationship with Gödel's...

w/e i flagged it.
 
user55340
@durron597 There is a spam answer and a new user reposting what was said with the starlings of "Probably going to be a flame bait post".
 
I saw the new user but he has 99 rep
If there is a deleted spam answer that I can't see, that would be why :)
 
user55340
@durron597 The -1 goes from 101 to 99.
 
user55340
@durron597 Spam.
 
@MichaelT oh, I guess I have a different definition of spam
 
user20683
8:16 PM
@durron597 Spam = noise here
 
you learn to tune it out
and flag when it gets bad
 
user55340
@WorldEngineer on becoming a sysadmin... typically you start off as an operator (just watching the blinking lights and logs) and doing the routine tasks. Because every sysadmin does those routine tasks too... and you need to be able to do them in your sleep.
 
user55340
Then you start working on trouble shooting the problems that come up...
 
user20683
@MichaelT what does an operator position opening look like?
 
@WorldEngineer Aha, I think of spam as "hay please go to this site www.onlineslotmachines.com/?referral=myusername"
 
user55340
8:20 PM
A role in IT, computer operators oversee the running of computer systems, ensuring that the machines are running and physically secured and free of any bugs. The former role of a computer operator was to work with mainframe computers which required a great deal of management day-to-day, however nowadays they often work with a variety of different systems and applications. The computer operator normally works in a server room or a data centre, but can also work remotely so that they can operate systems across multiple sites. Most of their duties are taught on the job, as their job descripti...
 
user55340
Its an entry into the sysadmin path.
 
user55340
At a small company, the sysadmin does all those too. At a larger company, the operation things tend to go to entry level and sysadmins deal with more of the configuration and optimization of the system.
 
user55340
Typically from the operator position, one either does on the job training or (yea) certifications for various equipment from the vendors.
 
user55340
The nice bit is that operator is a relatively unskilled position. I was one back in college... just put the tapes on the deck when asked and answered the phone.
 
user20683
8:31 PM
@MichaelT So someplace like Devry would probably work better than a more "proper" university?
 
user20683
if one wanted to go the training route?
 
user55340
@WorldEngineer probably. Sysadmin is much more vocational than computer science.
 
8:54 PM
hi
 
user20683
hi
 
I need advice for writing a spherical coordinate class in C++. I have spherical coordinates in different reference frames, and need to convert between them. The conversions themselves are not a problem, but I'd like things to be simpliied as much as possible, i.e. when converting from frame A to B and back to A, nothing should actually happen. Is this the right place and is that even worth asking a real question?
 
user20683
@Christoph look at a factory pattern
 
user20683
you've effectively got a conversion factory
 
@durron597 what @MichaelT said. Whether question needs close or not doesn't matter in cases like that, site needs protection from garbage answers anyway
 
9:12 PM
Everyone one SE sure are worried about those garbage answers. Any thoughts about the garbage questions?
 
@gnat I didn't realize protection affected users with site sharing privilege rep
 
@RobertHarvey sure, anytime:
3
Q: What difficulties could be there in establishing automatic checks for SO cross-posts on a site like our (50-100 questions a day)?

gnatThe automatic check I would like to learn about looks like as follows: For every question posted, Check if asker has linked SO account If yes, check 3 of their most recent questions at SO For every of above 3 questions, calculate Levenshtein distance of its text to that of to Programmers quest...

22
Q: Why are there so many closed, on hold, and down voted questions here?

Sam GoldbergCompared to Stack Overflow, the number of questions which are down-voted, put on hold, or closed is astounding. I think it's a sign that the criteria (and possibly usefulness) of this site is poorly defined. I originally came to this site thinking it's good place to engage in design discussion...

 
Ehm, the first one involves cross-posting. Who gives a shit?
 
@RobertHarvey I give. SO kind questions at front page invite more of this kind, forcing me to waste precious CVs on them
2
A: Provide 10k users more close votes

GlenH7Because the single anecdote proves the rule, right? I'm adding this answer to show how failing to close bad questions quickly impacts new visitors to the site and gives them a bad impression. This gem of a question "How to think an android project?" triggered this answer. And it occurred on an ...

 
user55340
@RobertHarvey It helps us avoid migrating answers that are cross posted and cause additional cleanup on SO. Each one that is saved is ultimately 10 close votes across two sites (the migrate here and the dup there).
 
user55340
9:28 PM
Yea, its only 10 close votes... but its also the merge and the user experience that is kicking in there too.
 
as a result of CV starvation, crap like this slips through and stinks over front page:
 
On Programmers the biggest problem is off-topic questions. On Stack Overflow, the problems are very different: "Halp, my codes don't work."
 
user55340
@RobertHarvey The problem^2 is when P.SE gets an off topic question of "hall, my codes don't work" that is a duplicate of an already posted question on SO.
 
@gnat Safe to assume someone tried to pull him into chat and failed?
 
user55340
@durron597 It can be a struggle to get someone into chat.
 
9:30 PM
Err, I guess not, because you need 20 rep for that.
 
user55340
@durron597 20 rep on any site... and that user has 115 rep here.
 
@WorldEngineer I've read a bit about the factory pattern, but that didn't really enlighten me with regard to my problem.
 
user20683
@Christoph the others in this room have more experience with such things than I
 
OK then, thanks anyway!
 
user55340
What do you want to do with a factory?
 
user20683
9:35 PM
@MichaelT I suggested a factory to help with this:
 
user20683
36 mins ago, by Christoph
I need advice for writing a spherical coordinate class in C++. I have spherical coordinates in different reference frames, and need to convert between them. The conversions themselves are not a problem, but I'd like things to be simpliied as much as possible, i.e. when converting from frame A to B and back to A, nothing should actually happen. Is this the right place and is that even worth asking a real question?
 
user20683
I think I'm misunderstanding the problem
 
@Christoph Can you flesh out in more detail what exactly you need to do?
 
user55340
The way I would design it... and I'm going 2d for a bit to make it easier on me...
 
user55340
class Point {
  // internal rep fields go here
  Cartesian(int x, int y) { code }
  Polar(int deg, int length) { code }
}
 
9:37 PM
ARGH
Is it possible to ask a question "should we do things X way" and have it be understood as "no really, should we or shouldn't we do things X way" as opposed to "We do things X way; I think we should do things Y way"
like, I'm actually asking, instead of implicitly having a preference just because i asked the question
 
user55340
@durron597 Its possible, you would need to spell it out. I would also emphasize the questions you have that are bringing up the issue. Spell it out...
 
I thought I had
1
Q: Is voting up supposed to be so subjective?

durron597What does it mean to vote up? The documentation, IMO, is not clear. This results in questions like: Why should I upvote a question? What is upvoting questions supposed to be for? Why don't people upvote questions they answer? If you notice, those questions are full of things like "Well, what...

 
user55340
We get so many of the "I'm trying to persuade my coworkers that they're all wrong" type questions that people automatically think thats what the question is.
 
user55340
Ahh... MSE... a fun place.
 
@MichaelT Yeah ;)
burninate
0
Q: Passing an array as the code to eval in setTimeout?

ıɯɐƃoʇ ǝızuǝʞToday my friends sent my some code that did something unexpected: setTimeout(["console.log(1", "2)"], 1000) It turns out this just prints 1 2 in 1 second. I can see it evaluating the array to "console.log(1,2)" using a simple array.join(','), but why does this work?

Unless, of course, you're all already out of close votes
 
9:45 PM
@durron597 I have object data with equatorial coordinates (let's call that frame A). I also have a rotating frame B where I use horizontal coordinates (that's earth, actually), and functions that either take arguments or return coordinates in one of the frames.

Whatever coordinate I have, I can tell (at compile time) in which coordinate system it is. So when I call converting functions in frame A that temporarily work in frame B and then return something in A, the compiler should be able to spot that and return the original coordinate without calling e.g. asin(sin(x)) in between, which wou
 
9:57 PM
5
A: Exponential form of complex number

durron597You have a number of mistakes. First of all, I assume by exponential you mean polar coordinates, i.e. r*e^(i*theta). Except rectangular complex numbers and polar complex numbers are ISOMORPHIC, that is, you can convert one to the other and back again. This suggests that you shouldn't have expone...

you could do something similar
 
I thought about starting with a template

template<typename Frame>
struct SphericalCoordinate;

which is specialized for different frames. I could then ass conversion functions:

template<typename frameA, typename frameB>

but those couldn't "cancel each other out". Also, this would get messy when more reference frames are added
 
user55340
Ok... how about this idea...
 
Whenever you create a Coordinate object, you can have two constructors, one for each system, and the constructor calculates the other one and then you have a get method for whichever type is more relevant right now
 
user55340
Have an object that supports both coordinate types. Each coordinate type has a 'calculated' flag that is set to true when the value in there is good.
 
if you don't want to calculate both systems every time (for performance), you can calculate them lazily
 
user55340
9:59 PM
If you are doing something that never uses one coordinate type with the object, you never calculate the value.
 
i probably wouldn't have a flag, though, i would probably have a small data object that represents one type vs the other type, or if object creation becomes a bottleneck, just have a special value like Double.MinValue
 
Conversion between frames is not constant, i.e. when I convert again later, the result will be different (earth rotates, and that makes a difference here)
so the valid flag is actually never really valid. I also only have 64kB RAM, so doubling the amount of memory occupied by an object is not a good idea.
 
user55340
@durron597 I was thinking like the perl internals for scalar. A scalar has an int, string, and float value, and when you set one the others aren't set until they're used in the appropriate context. When a value is changed, the others are set to 'dirty'/'unset'.
 
can you have, in the object declaration for type B, an object ReferenceFrame
if newFrame.equals(currentFrame) return originalA; else calculateNewA(newFrame);
 
Of course, a simple tag would be such an information, as in (C++): Coordinate<Frame> myCoord; However, that wouldn't solve the problem of nested conversions which should be collapsed to zero or one conversion.
Conversions like

c = toA(toB(coordInFrameA))

should be treated as

c = coordInFrameA

by the compiler
 
10:46 PM
how's this for someone's first post:
1
Q: Is voting up supposed to be so subjective?

durron597What does it mean to vote up? The documentation, IMO, is not clear. This results in questions like: Why should I upvote a question? What is upvoting questions supposed to be for? Why don't people upvote questions they answer? If you notice, those questions are full of things like "Well, what...

 
user55340
On MSE? Its a fair bit above the median for a first post.
 
yeah i was remarking about how good it was
i wish my first post had been that good ;)
 
user55340
@WorldEngineer ... and now that question needs a speedy delete.
 
user15026
@MichaelT That edit. facedesk
 
user55340
10:57 PM
@AshleyNunn Did you read that webcomic comment?
 
user55340
Btw, anyone want to buy a new keyboard for me? thinkgeek.com/product/181d
 
@RobertHarvey great answer
 
user15026
11:28 PM
@michaelt I did!
 
user55340
11:45 PM
@AshleyNunn And you saw my comment? And that the author was the one to follow up on it?
 
user15026
@MichaelT I did! :D
 
user55340
And you know of the comic site that I referred to?
 
user15026
@MichaelT That I do!
 
user55340
And thus... that would be an amusing one to do.
 
user15026
It would. Very much so. (I started reading through the comic)
 
user55340
11:49 PM
Guigar is a one that takes professionalism of webcomics to a new level on helping others become professional web comic artists themselves.
 
user55340
You might also want to poke at Courting Disaster... which is a single panel comic that is... well... based on questions for advice columns of a relationship nature.
 
user15026
@MichaelT That sounds excellent.
 

« first day (1350 days earlier)      last day (3654 days later) »