joshin4colours
  • Member for 10 years, 4 months
  • Last seen more than a month ago
Why is 0 false?
39 votes

As others have said, the math came first. This is why 0 is false and 1 is true. Which math are we talking about? Boolean algebras which date from the mid 1800s, long before digital computers came ...

View answer
How to minimize typos when you code?
Accepted answer
21 votes

Make sure you use auto-completion/Intellisense wisely if you're using an IDE or (I suppose) some text editors. If you use them well, you only have to get the spelling correct once :)

View answer
Relative value of manual vs automated testing
Accepted answer
14 votes

I'd be careful at all when thinking about "manual" testing vs "automated" testing in a return-on-investment (ROI) context. It's a form of fallacious thinking when discussing the value of automation (...

View answer
At what point is version control needed?
11 votes

As other people have said, "now" is always a good time to start using version control. There's so many benefits to using a good version control system it's almost a no brainer. You mention you use ...

View answer
Is it worth making a commit solely to resolve non-critical typos?
7 votes

Yes, you should absolutely do this, particularly early on in a project. Why? Two points: You likely won't know if a typo is "critical" or not until it is too late. Some fixes probably don't get ...

View answer
Learn programming backwards, or "so I failed the FizzBuzz test. Now what?"
5 votes

Keep coding, keep learning. Eventually, with enough dedication, you'll look at FizzBuzz and wonder why you even had to think about it. Lots of companies do a FizzBuzz-style question as a very early ...

View answer
I'm the .1x programmer at my company. How can I best contribute?
4 votes

Short Answer: Find out what the team needs, and perhaps what you like best, and work toward providing that. Longer answer: In the early stages of a start-up, most of the time, all work is "up for ...

View answer
Why do organizations limit source code access to engineers?
4 votes

Off the top of my head: 1) Security Issues: If everyone had even just read access to source code, then a hacker would have a wider range of possibilities for accessing the source code. Further, it ...

View answer
Why learn more programming languages?
3 votes

Think like a chef. If you learn a new cooking technique, if you learn about a nice spice to add to your dish, or if you learn a new preparation for a given ingredient set, you expand your abilities. ...

View answer
Why can't the IT industry deliver large, faultless projects quickly as in other industries?
3 votes

Software engineering and management is fundamentally different than a lot of other engineering areas. The deliverables aren't physical, and the production process is the design and development process....

View answer
How is encapsulation used for safety?
3 votes

In my experience, encapsulation makes doing the "wrong" thing much more difficult. You can group together functionality which semantically go together and isolate them from functionality ...

View answer
What are some good tasks to assign co-op students/interns?
3 votes

I'd treat a co-op/intern student like any other junior employee. Mostly they are probably there to gain experience working in a software development enviroment, and will need plenty of mentorship on ...

View answer
Testing applications with statistical features
2 votes

In addition to SnOfus's answer, remember that even though you are dealing with statistical/probabilistic quantities, there are still some completely deterministic properties you can test for. For ...

View answer
How To Explain To My Dad What I have Programmed
2 votes

If you really wanted to try to impress him, ask him: "What do you wish your computer would do?" Then write a script that will do that thing (or something similar), maybe with a slick interface. Given ...

View answer
Writing Selenium Tests - Modifying Markup Under Test
1 votes

I've worked with small and medium-large Selenium-based test suites. We've had discussions like this with all the same points of view. In my opinion, the best approach is this: add id attributes ...

View answer
Automating tests in a browser not supported by selenium
1 votes

You could try other automated browser drivers like Watir or Sahi. Selenium is kind of the benchmark for browser automation, but other tools could work better in different circumstances. That being ...

View answer
Why should a class be anything other than "abstract" or "final/sealed"?
1 votes

Test classes seem to come to mind. These are classes that are called in an automated fashion or "at will" based on what the programmer/tester is trying to accomplish. I'm not sure I've ever seen or ...

View answer
How can calculus and linear algebra be useful to a system programmer?
1 votes

As others have mentioned, any mathematics courses in university can sharpen your problem solving and deductive reasoning skills. These are important to almost anyone. But sometimes knowing some ...

View answer
Learning about security and finding exploits
1 votes

If you're really interested in security, take a look at Open Web Application Security Project. It covers a lot of what is happening in the web security world, with lots of resources. I've only ...

View answer
How do I hire testers by giving them a buggy app for testing their efficiency?
1 votes

If you want to do this, create your own buggy app. When I was hired into my current position, I was given an app to test and find bugs that was based on actual software the company worked on. Some of ...

View answer
Python flavor of regular expressions - related to which?
1 votes

Definitely check out the re module in Python. It might be (soon be?) outdated, but it's a great starting point for using regex in Python. In my opinion, if you really want to get a handle on regular ...

View answer
Proper Response to HTTP Request When Too Much Data is Requested
0 votes

Not sure about a best practice, but in our case we do have parameters in our API that are set to some kind of maximum value (think Integer.MAX_VALUE from Java). These parameters are often not ...

View answer
Git commit not finished but can't continue on that machine
0 votes

The easy approach is the one you describe: copy the .git hidden directory and project files to another machine where you can either commit and finish up, or just continue working. The .git directory ...

View answer
Casual projects on Github omit error checking, logging, etc., for the sake of clarity?
0 votes

Here's the thing with error checks like the prints you've inserted; they're not really all that necessary if you're using good source control (and if you're using GitHub, you're using Git, so you are)....

View answer
Standards of unit testing output
0 votes

If you're using a unit testing framework: Use defaults. They're usually good, succinct and convey exactly the information you need. Look at nose in Python (find command line examples!) or the Test ...

View answer
Are there any empirical studies on the effect of different languages on software quality?
0 votes

Although it's not related to code quality as such, this study looks at how novices learn using different languages. In particular, they compare how novices fare when learning Perl vs Quorum, a ...

View answer