At what point is version control needed?

A small group of programmers have hacked together a system to save work. Stack Exchange This Q&A is part of a weekly series of posts highlighting common questions encountered by technophiles and answered by users at Stack Exchange, a free, community-powered network of 100+ Q&A sites. Stephen Collings asks: I work in embedded systems. Right now, my organization ...

Should you always pass just the bare minimum data into a function?

A look at two ways to the get a similar result—but one way is superior. Stack Exchange This Q&A is part of a weekly series of posts highlighting common questions encountered by technophiles and answered by users at Stack Exchange, a free, community-powered network of 100+ Q&A sites. Anders Holmström asks: Let’s say I have a function IsAdmin that checks ...

How can I keep API keys out of source control?

If you want to use a free source control service, there are still a few options. Stack Exchange This Q&A is part of a weekly series of posts highlighting common questions encountered by technophiles and answered by users at Stack Exchange, a free, community-powered network of 100+ Q&A sites. Will asks: I’m working on a website that will ...

Ask Stack: Are fewer lines of code better?

Stack Exchange discusses measuring developer efficiency. This Q&A is part of a biweekly series of posts highlighting common questions encountered by technophiles and answered by users at Stack Exchange, a free, community-powered network of 80+ Q&A sites. Mike Bryant asks: Which of these programming styles is better? var result = methodOne(methodTwo(a, methodThree(b)), c, d); or var result3 = ...

Are there reasons for returning exception objects instead of throwing them?

There are a few situations where not throwing an exception is appropriate. Stack Exchange This Q&A is part of a weekly series of posts highlighting common questions encountered by technophiles and answered by users at Stack Exchange, a free, community-powered network of 100+ Q&A sites. stakx asked: This question is intended to apply to any OO programming language ...

On using pen and paper to formulate algorithms

A student works better coding in ink. Is that sustainable? Stack Exchange This Q&A is part of a weekly series of posts highlighting common questions encountered by technophiles and answered by users at Stack Exchange, a free, community-powered network of 100+ Q&A sites. ComicStix asked: I’m a freshman Computer Science student and we just started doing some actual ...

How do you put a price on your source code?

Selling software isn’t like selling cars or real estate. Don’t sell yourself short. Stack Exchange This Q&A is part of a weekly series of posts highlighting common questions encountered by technophiles and answered by users at Stack Exchange, a free, community-powered network of 100+ Q&A sites. deviDave asked: I was asked to sell the source code (along with ...

Is it poor programming practice to pass parameters as objects?

Are you making code more maintainable? Or just covering up poorly defined methods? Stack Exchange This Q&A is part of a weekly series of posts highlighting common questions encountered by technophiles and answered by users at Stack Exchange, a free, community-powered network of 100+ Q&A sites. Risser asked: So, we’ve got a guy who likes to write methods ...

How easy is it to hack JavaScript in a browser?

Breaking down the possibilities of breaking in. Stack Exchange This Q&A is part of a weekly series of posts highlighting common questions encountered by technophiles and answered by users at Stack Exchange, a free, community-powered network of 100+ Q&A sites. Jesus Rodriguez asks: My question has to do with JavaScript security. Imagine an auth system where you’re using ...

What are best practices for reusing tiny snippets of code across projects?

“Don’t repeat yourself,” they say. But sometimes you have to. Stack Exchange This Q&A is part of a weekly series of posts highlighting common questions encountered by technophiles and answered by users at Stack Exchange, a free, community-powered network of 100+ Q&A sites. Stack Exchange user and C# developer George Powell tries hard to follow the DRY principle. But as ...