Skip to main content

Programmers Weekly Newsletter - Thursday, March 31, 2016

Programmers Weekly Newsletter

Top new questions this week:

Should I add redundant code now just in case it may be needed in the future?

I'm not a professional programmer, and everything I know about programming I've taught myself / read somewhere on the internet or in a book. Rightly or wrongly, I'm currently of the belief that I ...

c# programming-practices code-quality future-proof  
asked by KidCode 78 votes
answered by Adam Zuckerman 83 votes

How does a surname of Null cause problems in many databases?

I read an article on BBC. One of the examples they said was that people with surname 'Null' are having problems with entering their details in some websites. No explanation is given about the error ...

database null  
asked by Nitish 48 votes
answered by amon 77 votes

Can a git commit have more than 2 parents?

In this documentation it is mentioned A commit object may have any number of parents. But from my understanding, the only case where a commit will have more than 1 parent is when a merge has ...

git  
asked by Can't Tell 12 votes
answered by David Hammen 10 votes

Should I add the source of libraries instead of linking to them?

I'm relatively new to C++, so I'm not sure how I should best handle small dependencies (e.g., a scripting language, or a JSON/YAML/XML Parser). Should I create separate projects and link them as ...

c++ linking  
asked by Michael Stum 10 votes
answered by Mazyod 1 vote

Is it correct to say that a variable is an instance of a data type?

(that can change its value over the course of the program) Or is 'instance of something' strictly related to classes and objects? If so, how would you define the concept of 'variable' when it comes ...

c++ semantics  
asked by Zakkor 8 votes
answered by coredump 8 votes

RESTful API. Should I be returning the object that was created / updated?

I'm designing a RESTful web service using WebApi and was wondering what HTTP responses and response bodies to return when updating / creating objects. For example I can use the POST method to send ...

rest http  
asked by iswinky 8 votes
answered by Eric Stein 4 votes

Are bargaining and beat down attempts on Scrum estimations legitimate parts of the process?

I noticed in scrum meetings, that developers often give realistic estimations on stories. However, even rather simple stories need a lot efforts for configuration, setting up third party components, ...

scrum estimation planning sprint  
asked by Erik Hart 8 votes
answered by Jonah 10 votes

Greatest hits from previous weeks:

Is it bad practice to use <?= tag in PHP

I've come across this PHP tag <?= ?> recently and I am reluctant to use it, but it itches so hard that I wanted to have your take on it. I know it is bad practice to use short tags <? ?> ...

php shortcuts  
asked by marco-fiset 77 votes
answered by zzzzBov 103 votes

Why shouldn't I use the repository pattern with Entity Framework?

During a job interview, I was asked to explain why the repository pattern isn't a good pattern to work with ORMs like Entity Framework. Why is this the case?

asp.net-mvc unit-of-work  
asked by StringBuilder 91 votes
answered by Shyju 54 votes

Can you answer these?

Best solution to authorize that a user is only allowed to modify/act with their own resources in a REST API

Background: Currently in the process of building out a REST API, using node w/express and it is consumed by a mobile app and eventually a (modern browser based) website. I'm trying to identify the ...

rest session authorization large-scale-project  
asked by Ashtonian 6 votes

How to use derive: in OCL when the type is not primitive

Let's consider the following class diagram I would like to express the following rule in OCL if cond = true then bderived = b else bderived.x = b.x + 10 bderived.y = b.y + 10 endif My ...

uml  
asked by Robbo 1 vote

Optimistic rendering imposes duplication of logic?

If you're working on a client side mobile application, for a smoother UX, optimistic rendering is encouraged. This is where the application makes UI updates based on user requests that get sent to the ...

client-server business-logic user-experience  
asked by razzledazzle 4 votes
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 ...