Skip to main content

Programmers Weekly Newsletter - Thursday, November 27, 2014

Programmers Weekly Newsletter

Top new questions this week:

Function guaranteed to never return the same value twice

This is a question I was asked at a job interview, and I can't figure out the answer they were looking for, so I'm hoping someone here might have some ideas. The goal is to write a function that is ...

algorithms concurrency  
asked by jay 22 votes
answered by Telastyn 50 votes

Should I accept empty collections in my methods that iterate over them?

I have a method where all logic is performed inside a foreach loop that iterates over the method's parameter: public IEnumerable<TransformedNode> TransformNodes(IEnumerable<Node> nodes) { ...

c# exceptions collections parameters  
asked by Nick Udell 21 votes
answered by Kilian Foth 97 votes

Why is it so bad to read data from a database "owned" by a different microservice

I have recently read this excellent article on the microservice architecture: http://www.infoq.com/articles/microservices-intro It states that when you load a web page on Amazon, then 100+ ...

architecture web-services soa microservices modularization  
asked by David 12 votes
answered by back2dos 26 votes

Sharing development test cases (unit and development integration) with the QA (test) team?

The testing team (the so-called QA team in some organizations) insists that the development team should share their (the development team's) test cases with them. Their arguments are that the ...

unit-testing teamwork integration-tests qa  
asked by Sudhi Sukumaran 7 votes
answered by Doc Brown 17 votes

Who writes the technical 'user stories' in scrum

I know that a product owner should write a user story in scrum. A user story is describing a feature for the end user. But who describes what needs to be technically developed and how it needs to be ...

scrum  
asked by Lisa 6 votes
answered by IdeaHat 9 votes

How to prevent others from using non-thread safe variables in a multithreading environment?

I have an application written in C++ that was originally single threaded, but, due to the increasing complexity of this project, I'll need to expand it to at least two or three threads. There are ...

c++ multithreading  
asked by Annonomus Penguin 6 votes
answered by IdeaHat 1 vote

Why shouldn't a method throw multiple types of checked exceptions?

We use SonarQube to analyze our Java code and it has this rule (set to critical): Public methods should throw at most one checked exception Using checked exceptions forces method callers to ...

java exceptions static-analysis  
asked by sdoca 5 votes
answered by Panzercrisis 1 vote

Greatest hits from previous weeks:

Should I follow the normal path or fail early?

From the Code Complete book comes the following quote: "Put the normal case after the if rather than after the else" Which means that exceptions/deviations from the standard path should be put ...

design  
asked by jao 69 votes
answered by Kilian Foth 187 votes

How should I remember what I was doing and why on a project three months back?

I was working on a project three months back, and then suddenly another urgent project appeared and I was asked to shift my attention. Starting tomorrow, I'll be heading back to the old project. I ...

project-management documentation project document-management  
asked by TheIndependentAquarius 64 votes
answered by CompuChip 34 votes

Can you answer these?

Android Development: Styling the application

How do you approach theme and styling of an Android application? I have all the functionality and I'm now styling and dealing with colors, etc. This is my first big time Android app, and it seems like ...

android-development  
asked by David 1 vote

Which languages have the best support for stackful coroutines?

Various languages support (some flavor of) coroutines. One way to discriminate coroutines is whether they are stackful or not (terminology based on Ana Lucia de Moura; Roberto Ierusalimschy (2004). ...

javascript python concurrency iterator  
asked by Paul Klint 3 votes

auto update strategy for a software distributed as a tar ball written in python 2.7 targeting mac osx

This is what I have planned as an auto update strategy for a software that is as a tar ball. The application is running as a system daemon which means it have root privilege. App runs on startup ...

python mac osx software-distribution  
asked by k4vin 1 vote
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3

Comments

Popular posts from this blog

Drupal Answers Weekly Newsletter - Wednesday, December 31, 2014

Top new questions this week: Can I delete old hook_update_N functions? Suppose you have a custom module, and you have hook_update_N() implementations in your .install file. If you have old update functions, and all updates have run in all sites that the module is ... node-update hook-update-n   asked by AyeshK ...

[New post] 8th Class Result 2014 PEC Hafizabad Board

Muhammad Waqas posted: "PEC Hafizabad Board 8th Class Result 2014 expected date is 28th March, 2014 by PEC. Punjab Examination Commission (PEC) will announce 8th class result for Hafizabad Board soon and all the students of Hafizabad Board who are extremely waiting for the resul" New post on Jobs in Pakistan 8th Class Result 2014 PEC Hafizabad Board by Muhammad Waqas ...

[New post] 1st Year (11th Class) Result 2014 BISE Rawalpindi Board

Xaib Aslam posted: "BISERWP board Inter part 1 result expected on 10th October 2014 according our source. students of Rawalpindi board desperately waiting for 11th class result. 1st they upload the 12th class result and after some time they ready for showing the 1st year fin" New post on Jobs in Pakistan 1st Year (11th Class) Result 2014 BISE Rawalpindi Board by Xaib Aslam ...