« first day (1751 days earlier)      last day (3247 days later) » 

12:49 AM
I'm voting to close this question as off-topic because it is not about programming. This should probably be on Programmers.SE. But check their help center first. — JasonMArcher 9 secs ago
 
@MichaelT am going thru effective java-joshu bloch to learn coding standards, but CERT Oracle Secure Coding Standard for Java covers about packages as well unlike previous one. Do you suggest me to buy this?
 
user55340
1:36 AM
@overexchange I really can't say. Book learning can only take you so far. You need to start trying to solve problems with what you know rather than pontificating over design. Sit down and write a twitter clone. Or a calculator (either a rpn calculator, or one that understands order of operations and parentheses). Or a classical encryption routine. Or a library management system. Or a text based game. Or a spreadsheet. Or a city traffic simulation program. Something.
 
user55340
You are not going to really learn or understand what you are reading until you put it into practice. You are well on your way to becoming an architecture astronaut - thats not a good thing.
 
user55340
It Came From Planet Architecture - from Coding Horror
 
2:44 AM
I'm voting to close this question as off-topic because it's not about a specific programming problem or tool. I think it might be better on programmers.stackexchange.comTessellatingHeckler 40 secs ago
 
user55340
3:01 AM
0
Q: Introduction on Data structure

Sachin GodaraI just completed my c and try to solve some problem on hackerrank. I just want to ask what should i read next? Should i read data structure and algorithms, i know that algorithms are important like time complexity but i want to that i can solve problem without knowing some algorithm means i devel...

 
4:47 AM
@MichaelT yes yes, I have a plan for that.
 
 
3 hours later…
user118171
7:48 AM
Hi. Which topics should be asked here? I've read the help page. I've created an account on this site a few months ago because I wanted to improve my programming skills, not just my programming knowledge.
 
user118171
But everytime I have a problem, I feel it should be asked on Stack Overflow because it's to do with implementation (here, here and here).
 
user118171
7:59 AM
At the moment, I'm trying to write my programs in a more OO way (I'm using Java). I feel the first question above would have fit quite good with the site policies, but I've preferred to ask it on SO because it had some code. I'm very confused. Can you help me?
 
8:34 AM
@FrancescoMenzani This site is about conceptual questions on software development. Concrete questions such as “why doesn't my code work” are off topic, but most good questions here on Programmers do contain some code to illustrate what they are asking about (text-only descriptions tend to be ambiguous and confusing).
Design-level questions are very welcome here, but not the only kind of question that's accepted. A rule of thumb to figure out whether to ask a question on Programmers or on Stack Overflow: Did the problem show up while you were using your IDE (→ SO), or while you were trying to figure something out on a whiteboard (→ Programmers).
Of your three linked questions, the first two could certainly be asked on Programmers: the first is about finding an efficient design, the second about Java inheritance. The third is difficult: it has a practical component (what does Java's Listener interface do), and a conceptual part: how does the this keyword work in Java/what is “open recursion” and why is it useful.
 
 
5 hours later…
2:04 PM
182
A: Which computer science / programming Stack Exchange do I post in?

YannisStack Overflow Implementation problems, and questions on software tools commonly used by programmers. If your code or your IDE doesn't work, ask on Stack Overflow. Does not welcome subjective questions (anymore). Programmers The main focus is whiteboard questions, problems that you face while...

 
user118171
I often have trouble with package grouping. Would it be a good topic here?
 
2:25 PM
that sounds fine
as long as it's something conceptual like "do these packages belong together" rather than "why does package-manager -a -b -c foo.pkg not work"
 
2:39 PM
"kind souls" voting this up might lead asker into thinking about posting more questions like that over here...
 
@Ixrec What do you mean by "value semantics?"
...within the context of a Singleton?
 
I thought it was a fairly standard term
oh, well, yeah, the point of the question is that feels like a contradiction to me
 
value is, identity semantics isn't, though I assumed you meant reference
 
Serialization is a way to save and restore the state of an object. Value and reference semantics are not affected.
 
edits to "reference"
 
2:43 PM
Ok, but you can serialize an int.
which has value semantics.
 
@RobertHarvey that sounds like the start of an answer
 
I'm trying to figure out why you think the semantics are important. It's just a save/load mechanism.
 
semantics can imply if the thing has internal state to save.
value typed singletons can't be mutated, so serializing their internal state is weird. (though just because it looks like a value type doesn't mean its internals don't have internal state)
either way, singletons are vile, so it's moot to me
/me returns to coding up generics
 
Immutability doesn't seem to me to be a property of Singleton. You have to say "immutable singleton" to make that true.
 
I agree.
except for the whole thing where I stop listening to you when you say singleton.
 
2:51 PM
the question may be a bit silly since I've only ever seen one singleton in real life, and it's one we wish wasn't a singleton because now we'd like to have more than one of it and can't
 
I've never quite understood the fuss about singletons.
It's just a single object.
 
no, it is not
 
going out of your way to enforce the single-ness with a singleton does seem pointless 99% of the time
I haven't run into a use case yet
 
it is an object that prevents you from making more than one of it.
 
Yeah, but why would you ever need that?
 
2:55 PM
but then I'm not designing libraries that need to be bullet-proof in the face of infinite human stupidity
 
you would never need that. That's the point.
 
I assume whatever valid use case it has comes up when one is doing that
 
"just make one" is fine. Even "just use this global" is even occasionally fine.
"you can only ever have one of these" is not.
 
user55340
@Telastyn Logger.getInstance()
 
loggers are the exception to everything
 
user55340
3:02 PM
Concurrent access to a shared device. In the point of sales system I worked on there could be one, and only one pin pad/mag stripe reader.
 
user55340
Whats more, the device could be of various brands.
 
no. no damned singleton loggers.
 
@MichaelT are you suggesting an abstract singleton?
 
you never ever want to be able to log to different locations? You never ever need to fail over to a different target?
 
user55340
Furthermore, the device would get very confused when different things told it to be in different states straight up (the old design).
 
3:03 PM
And as soon as business wants a second reader, you're fucked.
 
user55340
So, yes, an abstract singleton that was then subclassed to the specific brand.
 
representing real-world physical/hardware objects is the main use case for singletons that seems legitimate to me
 
NO
no, no no no no no no.
 
and I say "seems" only because I've never written any code like that irl, so I can't claim to have an opinion on it yet
clearly other people can
 
user55340
@Telastyn If the business ever wants a second reader, they're going to be looking at an outlay of... 16 * 300 * $500 for it in addition to whatever hardware... but there's only one pin pad port on the back of the register... so add in quite a bit more.
 
3:06 PM
ugh, whatever.
/me goes back to writing code.
 
user55340
 
user55340
The red port is the pin pad device.
 
because hardware never changes.
 
user55340
Then you're looking at an outlay of 300 * 16 * $2000
 
user55340
But the thing is, there's no use case for two pinpads at a point of sales terminal.
 
3:07 PM
and sure, YAGNI, but the thing is, you're limiting your ability to make a good design, for absolutely no benefit.
if you want one, then just make one.
 
user55340
You find any point of sales terminal an any store where there are two mag strip / smart card / pin pad readers and I'll grant it to you.
 
I've seen ones that have separate swipers for credit cards vs loyalty.
 
where I live the loyalty cards all use bar codes
 
user55340
Is it just a mag strip reader (that gets a single usb connection)? or does the other one have a pinpad and smart card / NFC connection on it too?
 
not sure. Not sure how that might matter.
 
user55340
3:11 PM
A simple "just an MSR" typically is just an input device equivalent to a keyboard.
 
user55340
 
user55340
However, these things:
 
user55340
 
user55340
are quite a bit more complex.
 
every time I use those automated checkout machines I can't help but think "I am so glad I'm not working on the software for that thing"
 
user55340
3:14 PM
Parts of it aren't that bad... its just that its a huge system.
 
user55340
You can have reasonable modules that communicate reasonably between each other.
 
nothing against it, it's just not the kind of software I want to work on
 
user55340
having worked on it, I can say "I don't blame you at all"
 
perhaps the biggest reason is that it's the kind of software no user will ever like
I like doing things that make the user happy
 
user55340
But a 'nice' module for "here is an interface to a transaction that you get, generate the receipt" isn't something that is unimaginable.
 
3:16 PM
no user is ever happy with an automated checkout machine, at best they're "not mad"
 
user55340
They key thing for building such software is to clearly define the contracts between the modules and, well, build it. Where it gets hairy is when you have code that was not nicely partitioned at the start and kept growing into a 1.5M SLOC monster where everything has dependencies on everything else.
 
user55340
That receipt part that I worked on (not a module) was doing reflection to figure out what type of object it really was dealing with and handling it differently. Talk about brittle.
 
most of that probably applies to all kinds of development
I assume the contracts become far more important than usual
 
user55340
The larger it is, the more important the decoupling of the modules is.
 
@Ixrec What kind of software jazzes you to work on?
 
3:25 PM
what I'm currently working on is pretty much a perfect example
think Excel spreadsheet except all the numbers are real-time financial data
 
@Kathyrn : This question is off-topic for stackoverflow. You can't really learn everything there is to the Java programming language in one month. It takes years of practice to appreciate the features of the language and understand how to use them correctly. That being said, there are already existing questions on stackoverflow that answer your question. See this question for example or thisChetan Kinger 12 secs ago
 
we recently finished the first iteration of conditional formatting, and our biz manager kept saying how happy he was with how easy it was to set up conditions (compared to the previous version of this product)
 
user55340
Oh, there's some fun for an SO mod to play with wiki locking:
 
user55340
249
Q: Language Books/Tutorials for popular languages

Craig HIt wasn't that long ago that I was a beginning coder, trying to find good books/tutorials on languages I wanted to learn. Even still, there are times I need to pick up a language relatively quickly for a new project I am working on. The point of this post is to document some of the best tutoria...

 
Meh.
@Ixrec So business dashboard-type things then.
 
3:31 PM
that sounds right
 
user55340
@RobertHarvey You've got some enthusiastic newbies to help educate about the variety of tools available.
 
4:29 PM
@MichaelT Martijn apparently needs to be mentored!
I'm concerned at Martijn's lack of activity in December 2013 for a brief period of time - do we really want a moderator that does that? — Benjamin Gruenbaum Apr 11 at 22:07
 
-1
A: When would a serializable singleton ever be useful?

nullAs far as I remember the point of a Singleton is to have only one instance of the class in existence. Serialisation is a transformation of data into another form(at), so that it can be easily written to a file, database or be transmitted, if I recall that correctly. So let's say you have a a cl...

WAT?
 
4:49 PM
@MetaFight guess voter didn't like that you missed to address key part of the issue stated in the question: "Being serializable necessarily implies value semantics. Being a singleton necessarily implies reference semantics. Value and identity semantics are mutually exclusive" (other answer over there also seems to miss that, wonder why it wasn't voted down)
...granted, question title is somewhat vague, it would help if it reflected that key part, otherwise, many answerers will slip into general explanations of why serialisation can be useful
 
5:07 PM
@gnat edited
 
5:27 PM
...one can argue that it is actually "unfair" to ignore what's in the text and answer only the question title — gnat 1 min ago
 
I'm getting mixed messages
 
6:27 PM
@Ixrec that's what you get for asking difficult, on-topic questions. Off-topic garbage is so much easier to answer. "- What should a programmer do with the Manifesto for Agile Software Development? - Use the paper it is printed at..."
 
 
1 hour later…
7:38 PM
Man, did we manage to miss ? (cc: @gnat @Ixrec @Snowman @MichaelT @ThomasOwens )
 
apparently
 
@durron597 great catch! by the way, while I have your attention, yesterday I cleaned some fluff out of that data structures question - could you please re-check that your description of its problems at meta remains intact? I checked the impact of my edit on answers but forgot that your meta post also depends on its content and may be affected
 
@gnat Those answers still need to be deleted.
 
oooh I can totally VTC a lot of those hiring questinos
0
Q: What are the things you can do to maximize your chances of hitting good programmers in the campus?

GravitonI'm thinking about approaching my lecturers in my university for student recommendation for me to hire. So far the emails I sent are not very encouraging. The lecturers either coming back to me, saying that they couldn't get good students, or just ignore my mail. I tried to be as polite as I coul...

 
7:48 PM
@gnat Your edit is a massive improvement, but it's still off topic. I'm still leaning towards lock once the bad answers get deleted
Ah crap did I unpin the wrong thing
 
cliff question there, with terribad everything
 
Hi @Oded
 
Howdy all
 
heya
 
@WorldEngineer I don't use macs, but others on the team do. Parallels usually. Not heard complaints.
//cc @JimmyHoffa
 
7:51 PM
enderland is typing this from his 5 year old macbook pro
course, I don't work for SE :P
 
@durron597 I am all for deletion of worthless answers. That made my check whole lot easier, I simply ignored these that should go away anyway. As for question topicality, maybe you're right, I only wanted you to check if description of the issues at meta fits the updated content
 
my team is all on Windows, though some people (especially our UX/VX people) seem to like Macbooks
 
@enderland Nice to have a fresh tag where most of the decisions are easy again
 
Yeah... developers here get a hardware refresh every 2 years, so that would be the oldest MBP someone would be using.
 
@gnat I'll take a look in a few minutes
 
7:52 PM
@durron597 yeah, they really are, only one was not an obvious one
 
I kinda stopped doing STCI for a week or two so I've still got loads of easy stuf in to VTC
 
regarding work-environment, at this stage I would consider "forking it out" into a separate answer over there or maybe even into separate meta question. Thomas wrote "Some questions appear good. The tag wiki may need additional work to clean up." and I tend to agree, but this appears too big a topic to handle where it is now (small part of that crowded "progress report" answer)
 
@durron597 speaking of trying to work for SE, I sent a followup response, not quite as blunt as your suggestion but never heard anything
 
@gnat I tend to agree, I'm not sure which of those options are best
@Oded got any advice for @enderland attempt to work for SE?
 
they still feel like questions that don't quite belong here even though they probably technically do
so I have no idea what to do with them
 
7:55 PM
Which job are you going for, @enderland?
 
@Oded I applied for this one
 
@Ixrec again, if you don't feel like investing the brain energy in difficult edits / close votes, just move on to another question or tag
 
most of these hiring questions are circa 2011 and aren't very good at all anyways
 
@durron597 I haven't been, don't worry
that's not why I stopped STCI'ing for a week, lol
 
when I do the review audit here I skip quite a few questions, there are plenty of obviously off topic ones and some I just don't want to bother to try to read :)
 
7:57 PM
Woohoo, I am now top 10 in CV reviewers all time of programmers
 
there's a lot of really long ones here that I can't be arsed to read through to tell if they need close votes or not
 
@Ixrec yup, that happens to me too. LOL :D
 
especially since you often have to be familiar in a specific technology to tell when a question is "just google it" or too broad or unclear
 
@durron597 I passed this idea to Thomas in comments over there. I think as an author of that idea he's best qualified to decide
 
this seems like a shoe-in for a historical lock:
78
Q: Tricky logic puzzles - Are they really useful in assessing programming skills?

missingfaktorIn the last interview I attended, I was asked to solve a puzzle where I was expected to measure exactly blah liters of water given two buckets with capacities - blah and blah liters respectively. I was unable to solve the puzzle in given time (~5 minutes). The interviewer was a bit disappointed ...

 
8:00 PM
@gnat The fact that he's the diamond spearheading the cleanup effort doesn't hurt either ;)
 
I have yet to see a question I would have wanted to move to Workplace
this might be a good historical lock too - lots of views. top answer is from Oded lol
well I kicked a BUNCH of questions in to the review queue, got through nearly all of them and just about ran out of votes too
 
@enderland Ugh. That question is too broad even if it were on topic.
 
pffft that chestnut
 
Oct 30 '14 at 21:28, by gnat
those who can't make a good career question, dump their attempts at Programmers. I hate Agile, how to avoid it in my career. Those who can't make a good programmers question, dump at Workplace. I want to build my career, how to proceed if I hate Agile
 
at the risk of completely missing the point, does anyone actually hate agile, or does it always turn out to be fake agile?
 
8:08 PM
I think people hate the industry that has come to grow around the word.
 
that would make sense
someone at my workplace once used the term "agile industrial complex", which I really like
 
If you go with - short iterations where each iteration focuses on maximum benefit to the end user, you can't go wrong.
 
exactly
 
57
Q: Is Agile the new micromanagement?

Smith JamesThis question has been cooking in my head for a while so I wanted to ask those who are following agile/scrum practices in their development environments. My company has finally ventured into incorporating agile practices and has started out with a team of 4 developers in an agile group on a tria...

 
to me that's not even so much an efficiency/productivity issue, it just seems like accepting the reality that business requirements for software fluctuate constantly
 
8:12 PM
Well, I can tell you that what we are looking for is someone that will be good as a user advocate (so, understands developers and online communities - could be SE, but doesn't have to be). Someone that will be able to convince the Q&A developers - that means, needs to be good with facts, numbers and handling strong headed developer "feedback"...
Additionally, needs to be able to do analysis of requirements, advocate for change, know about A/B testing... and they need to demonstate that they have delivered projects in the past as product managers. dunno if that's helpful, @enderland
 
5
A: Does Agile force developers to spend more time actually working?

gnat Do you feel that under Agile you work more than under "conventional" methodologies? If you mean do I feel more productive under Agile, I'd say it depends.   I usually think of it in terms of Ferrari (as conventional) vs Landrover (as Scrum). When driving on a highway Ferrari beats the hell ...

 
@Oded hmmmm. I guess they wanted someone with even more of an HCI background then me, then :(
 
HCI?
 
Human–computer interaction (HCI) researches the design and use of computer technology, focusing particularly on the interfaces between people (users) and computers. Researchers in the field of HCI both observe the ways in which humans interact with computers and design technologies that lets humans interact with computers in novel ways. As a field of research, Human-Computer Interaction is situated at the intersection of computer science, behavioral sciences, design, media studies, and several other fields of study. The term was popularized by Stuart K. Card and Allen Newell of Carnegie Mellon...
 
that would make sense
 
8:17 PM
Not sure about that. Don't think that's as high on the list - we have some great designers who are really good on that front.
 
@Ixrec I have a masters (well, whenever my advisor finally reads my damn thesis and lets me finish it) in HCI, which has a lot of user-interaction based techniques
I'm a less typical "HCI person" in that I don't really care to do the designy stuff, more the user needs/etc stuff
 
Which is really what we are interested in (user needs/etc stuff). GTD is also high on the list.
 
GTD? like Getting Things Done?
 
I'm not sure I understand the distinction; do you mean gathering the requirements/figuring out what the user wants versus figuring out how to meet that need/want?
 
ffs, you'd think someone who is a productivity nerd, interested in user needs, and a moderator on The Workplace would have written an application more clearly communicating interests/background LOL
@Ixrec there is a concept of "interaction design" -- not necessarily making pretty/beautiful interfaces but more understanding what needs are and what interfaces will meet them
the "I" part of HCI, basically
 
8:23 PM
that does sound like the aspect that's most relevant/interesting to what I do
at least in this stage of the product's life, we care way more about being functional and intuitive than being pixel-perfect
 
feels weird seeing books for his blog posts
 
ha
 
"I require a push in the right direction" -- for a question like this, the right direction would probably be into close queue
 
I feel like those lead-ins are usually code for "I need a quick discussion with an expert"
which I would love to provide if 1rep users could join chat, blargh
 
8:29 PM
okay, that was a solid coding day. 1/3 or so done with generics.
 
355
Q: What is "chat with an expert"?

AntonyA box just comes out of nowhere which says "chat with an expert". It happened once on Stack Overflow and once on Meta. Is this an ad? Isn't Meta supposed to have no ads? Here's the HTML for that weird box: <div id="adviza-box" style="width: 380px; "> <div id="adviza-status"> <...

 
well, generic types and ctors.
dunno how I'm doing generic functions quite yet.
 
every feature request is a duplicate
every single one
 
16
Q: Increase the Hot Network Questions randomness (proposal for testing)

gnatRelated: Ease up on the Hot Network Question Randomness. This is a recent change which resulted in a 30% increase in engagement. All of this engagement came from repeated clicks... we do have improved algorithm changes coming... Some questions appear to stick in the hot list for quite a l...

^^^ not a dupe
 
that's a feature tweak =)
 
8:35 PM
@Oded what blows my mind about @enderland interview process is that he didn't even get a phone interview -> rejection
 
@Oded I just bootcamped windows onto it, but having trouble with the wi-fi... might try that "parallels" thing, the keyboard is really the biggest issue, the hosting OS replaces too many of the button combos to do wierd things in VMWare Fusion
 
@Ixrec well previous "tweak" of this feature (when they introduced shuffling) totally changed things. I am still green of envy to the unknown guy who invented it. Friggin' elegant
 
wait, it didn't shuffle before?
...that sounds horrible
 
33
A: What changed in the Hot Questions sidebar algorithm?

Shog9The usual algorithm calculates a score, ranks the questions and then just pulls off the top few results. We're testing an alternative method that calculates a score, ranks the questions and then pulls a somewhat larger number off the top, shuffles them, and stuff the top of the deck into the si...

^^^ didn't shuffle until Feb '14... and yes, it was horrible
 
If it doesn't work, will the employee(s) responsible also be put in said sack? — Eric Feb 1 '14 at 0:48
They'll be given a llama and told to pair-program with it. — Shog9 ♦ Feb 1 '14 at 0:51
 
8:44 PM
@durron597 Yeah, that's the weird part to me too I guess - I thought my cover letter did a good job describing myself (guess not :P)
@Oded Huh, I didn't realize Joel was from Israel
 
9:03 PM
@enderland I believe his family emigrated there when he was 16. Originally from NY, IIRC.
@durron597 we do go through an initial HR screening then a CV review - possibly something there? I don't really know :/
 
Avram Joel Spolsky (born 1965) is a software engineer and writer. He is the author of Joel on Software, a blog on software development, and the creator of the product management software Trello. He was a Program Manager on the Microsoft Excel team between 1991 and 1994. He later founded Fog Creek Software in 2000 and launched the Joel on Software blog. In 2008, he launched the Stack Overflow programmer Q&A site in collaboration with Jeff Atwood. Using the Stack Exchange software product which powers Stack Overflow, the Stack Exchange Network now hosts over 100 Q&A sites. == Biography == Spolsky...
 
Ah, Albuquerque, New Mexico, originally.
 
Interesting. I guess I assumed he was raised there given that he was in the IDF for a while
@Oded Ah. I guess that's unfortunate, I never really got any responses other than autogenerated stuff and so that's probably where the "no" game from...
 
@enderland :( - I do dev CV reviews, so I know what we look for there, but not for PMs.
 
It's just surprising to me to only get an autogenerated email, given my background/experience with SE and career interests
(and @durron597 too, apparently :P)
I expect that SE gets 100+ job apps though for every posting, at least, so it's understandable
 
9:10 PM
@enderland Miluim is mandatory for anyone, no matter raised or moved
 
@enderland Laws in Israel... if you are an Israeli (even a recent emigre) under ~20 y/o, you will serve 3 years in the IDF. Older ones (up to a limit - don't think anyone over 40 would) do it for 18 months, IIRC.
 
Yeah - I just didn't realize that the mandatory service was also applicable for someone that old who moved there (makes sense though - otherwise you can rather freeload off the country)
 
@enderland oh, at least.
@enderland that's a surprise, yes. Depends on what exactly they are looking for in the CV and cover letter. I'd expect someone with lots of SE rep or mod experience to mention that in the cover letter.
 
@Oded I definitely did :)
 
Ugh. People are involved... so mistakes do get made :(
But... I am not a part of the process, so can't speak for others.
 
9:19 PM
Yeah, c'est la vie I guess
I was surprised how fast the turn around time was, I think I got a "thanks for applying sorry we don't have anything to offer you" email less than a week later, I think
 
Thing is, you are talking about your masters here in chat, suggesting still being in academia - and the role would require someone who has been PMing for a while and driving change (so that's the kind of thing that would need to be on the CV/cover letter).
 
I've been FT for a few years now, the masters is a saga upon saga going on now
 
heh - I can imagine that. FT?
 
fulltime
 
Ah
Just saying that not demonstrating leadership and showing product management work may be enough to get such an answer (which may or may not be the case here - dunno).
 
9:27 PM
Hmmm, that could be too...
 
yesterday, by durron597
user image
 
9:46 PM
ha
 
@Oded durron found a whole bunch of stuff like that, quite entertaining read
 
@gnat hah I like "it was foretold."
 
@JimmyHoffa yeah, that was good one
 
 
2 hours later…
11:44 PM
0
Q: How can I make an object/class inaccessible to Reflection

Link TheProgrammerI am building an API for minecraft called the Quantum API. We all know that reflection can be used to do some nasty stuff to classes, and even cause undefined behavior if used without care. Is there a way to make classes and objects immune to reflection? Perhaps with a security manager? Or vice ...

Doesn't seem to be getting much attention...
except from telastyn
 

« first day (1751 days earlier)      last day (3247 days later) »