Programmers Weekly Newsletter
Programmers Weekly Newsletter

Top new questions this week:

Is it bad practice to return different types from one function in a dynamically typed language?

I come from a statically typed language background (Java). In Java, you have to return a single type from every method. For example, you can't have a method that conditionally returns a String or …

javascript dynamic-typing static-typing  
asked by tieTYT 11 votes
answered by delnan 6 votes

Why are the Java 8 *java.time* classes missing a *getMillis()* method?

Java 8 has a whole new library for dates and times in the package java.time which is very welcome thing to anyone who has had to use JodaTime before or hassle with making it's own date processing …

java java8  
asked by s3ib 9 votes
answered by assylias 4 votes

Exception handling in a program that needs to run 24/7

I have read that we should only catch exceptions that can be handled, which makes catching the base exception class (C# in this case) a bad idea (on top of other reasons). I am currently part of a …

exception-handling  
asked by user1323245 8 votes
answered by amon 4 votes

Best practice or design patterns for retrieval of data for reporting and dashboards in a domain-rich application

First, I want to say this seems to be a neglected question/area, so if this question needs improvement, help me make this a great question that can benefit others! I'm looking for advice and help from …

mvc architecture domain-driven-design reporting data-warehouse  
asked by Richard DesLonde 8 votes
answered by RibaldEddie 4 votes

What changes can I make to my IDE to minimize the effect of my dyslexia?

I program and I am dyslexic. My vision is excellent. I do poorly processing symbols and am a visual thinker. When I code, I'm slower than normal people because I am unpredictably unaware of the …

productivity ide accessibility  
asked by user87105 8 votes
answered by jff 5 votes

How do I explain that we're wasting developer time adding unnecessary features?

So I've lead the charge with my fellow engineers to, at the very least, start "thinking" Lean. We hit on a few major areas of waste, and 2/3 lead to the exact same point..."Extra Features". We dogfood …

professionalism dogfooding  
asked by user115710 8 votes
answered by Robert Harvey 18 votes

Is there a better way of writing unit tests than a series of 'AssertEquals'?

Here's a basic example of what my unit test needs to be, using qunit: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> …

javascript unit-testing  
asked by dwjohnston 7 votes
answered by Benjamin Hodgson 5 votes

Greatest hits from previous weeks:

What's the difference between overloading a method and overriding it in Java?

What's the difference between overloading a method and overriding it in Java? Is there a difference in method signature, access specifier, return type, etc.?

java object-oriented  
asked by user63948 5 votes
answered by superM 26 votes

Tricky logic puzzles - Are they really useful in assessing programming skills?

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

interview puzzles  
asked by missingfaktor 68 votes
answered by Tim Post 81 votes

Can you answer these?

How do I intergrate a browser based javascript unit testing framework into my workflow?

I'm wondering how I seamlessly include a javascript unit testing framework into my workflow. The context is, we have an existing data processing algorithm + webapp to display it, with no automated …

javascript unit-testing workflows  
asked by dwjohnston 2 votes

How to handle/scale in case of sudden increase in database queries due to high (unexpected) traffic at peak times?

I am not an expert in DB so please help in this. Imagine a scenario where your website's database can only handle 1,000 queries every second, and your traffic has grown enough to product 1,500 queries …

mysql scalability rdbms  
asked by deepak 1 vote

Core Servets and Java Server Pages Second Edition by Marty Hall, outdated?

I found out about this book from several threads in SO. I've been reading this book for two weeks now to learn servlets and JSP and I'm totally loving it. However, I just came back to the introduction …

java java-ee  
asked by user1815810 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