Programmers Weekly Newsletter
Programmers Weekly Newsletter

Top new questions this week:

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 26 votes
answered by Kilian Foth 124 votes

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 23 votes
answered by Telastyn 53 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 13 votes
answered by back2dos 28 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 18 votes

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

We use SonarQube to analyse 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 6 votes
answered by MichaelT 5 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

What is Banana split and fusion in functional programming?

These terms got mentioned in my university course. Quick googling pointed me to some university papers, but I am looking for a simple explanation.

functional-programming haskell  
asked by Gaurav Abbi 6 votes
answered by jozefg 2 votes

Greatest hits from previous weeks:

Stored Procedures a bad practice at one of worlds largest IT software consulting firms?

I'm working at a project in one of the world's top 3 IT consulting firms, and was told by a DBA that company best practice's state stored procedures are not a "best practice". This is so contrary to ...

sql-server stored-procedures  
asked by user22453 74 votes
answered by Eric J. 197 votes

Where did the notion of "one return only" come from?

I often talk to Java programmers who say "Don't put multiple return statements in the same method." When I ask them to tell me the reasons why, all I get is "The coding standard says so." or "It's ...

java coding-standards control-structures  
asked by FredOverflow 534 votes
answered by sbi 622 votes

Can you answer these?

How do I set up a micro-services architecture that can take advantage of a common, centralized security service?

I've obviously heard a lot about the Micro-Services Architecture and think it makes a lot of sense (especially with the success stories of Netflix). I'd like to implement a small Grails application ...

web-services grails  
asked by Brandon Wagner 1 vote

Design for a shared checkout

I am currently working on a ecommerce system that is slightly different in structure to a typical ecommerce system in that you have multiple stores, accessing the same database from different URLs. ...

design e-commerce multitenancy  
asked by Roberto Modica 1 vote

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
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