Reputation
7,176
Next privilege 10,000 Rep.
Access moderator tools
Badges
11 29
Newest
 Informed
Impact
~345k people reached

  • 0 posts edited
  • 0 helpful flags
  • 547 votes cast
May
4
comment 2 methods that are 75% the same?
I think this is a valid question. There are many patterns of code reuse; a product of code deduplication. Going over them doesn't require intimate knowledge of the code as you can enumerate and explain the relative strengths and weaknesses of each. For example inline conditionals, parameterization, inheritance, function/object delegation, mixins, function wrapping (or more broadly Adaptors), functional composition, pipes and filters, etc. Albeit this may be too broad and having the language at least would allow a reduction in the number of patterns available.
May
4
comment 2 methods that are 75% the same?
That it violates SRP is a rather large assumption. Just because code 75% similar between 2 methods says nothing about responsibility, singular or multiple. It could be the exception handling code is duplicated except for a variant behavior such as some additional cleanup.
May
4
comment Thinking pragmatically about scalability
Excellent answer. Questions about scale, for me, always track back to system parameters around use (must be resilient, fast lookup, fast write, etc) and on which dimensions you can expect growth (amount of unique transactions, size of transactions, amount of stored data, data volatility, etc).
May
3
answered How do you unit test \ use TDD methods for ETL's and reporting projects?
Apr
14
comment What do you wish language designers paid attention to?
@Qix: You could still have your do..while, it just wouldn't have it's own special form. It would be a variant of the 1 special form for looping.
Mar
21
awarded  Informed
Nov
22
revised How to handle configuration of Python modules, especially when used standalone and in frameworks like Django
added 243 characters in body
Nov
16
answered How to handle configuration of Python modules, especially when used standalone and in frameworks like Django
Nov
14
revised Python - defining exit method before importing
deleted 7 characters in body
Nov
12
awarded  Yearling
Oct
6
revised What should you bring to the table as a Software Architect?
edited body
Oct
6
revised What are the disadvantages of test-first programming?
added 75 characters in body
Oct
6
revised What are the disadvantages of test-first programming?
deleted 8 characters in body
Oct
6
answered What are the disadvantages of test-first programming?
Sep
24
awarded  Autobiographer
Sep
6
comment Do else blocks increase code complexity?
+1 redundancy definitely shows an increase in not just complexity, but confusion. I know I've always ended up having to double check code written like this exactly because of the redundancy.
Sep
2
comment Client / Server dependencies with Continuous Integration
@m_vdbeek see update
Sep
2
revised Client / Server dependencies with Continuous Integration
added 617 characters in body
Aug
31
answered Client / Server dependencies with Continuous Integration
Aug
23
comment Can unit tests verify software requirements?
An answer explaing pros and cons of ATDD. And another one with a slightly different perspective