175 reputation
6
bio website N/A
location Arizona
age 24
visits member for 2 years, 3 months
seen Jun 24 at 0:06

Most knowledgeable in:

  • Python
  • JavaScript
  • C/C++
  • JASS

May
25
awarded  Editor
May
25
revised Fear of releasing a hobby project - how to overcome?
fixed grammar
May
25
suggested suggested edit on Fear of releasing a hobby project - how to overcome?
May
25
comment When using method chaining, do I reuse the object or create one?
+1 for the 'Entity' vs 'Value' question. It's a question of whether your class is a mutable or immutable type (should this object be changed?), and completely up to you, though it will affect your design. I wouldn't typically expect method chaining to work on a mutable type, unless the method returned a new object.
May
16
comment Firefighting allocation problem
This sounds like a version of the knapsack problem, which is known to be NP-hard. It simplifies down to the problem, if you treat the sum of the fires' danger level as the capacity of the knapsack, and one combination of the firefighters to their respective trucks (e.g. 5 firefighters to each firetruck and 2 to the leftover firetruck).
May
10
comment Python 3, replace in strings
@MasonWheeler My intent was to get him to give more details (perhaps this is some weird Hebrew HTML).
May
10
comment Python 3, replace in strings
>>> (replace certain things in some position but not in other, so a global replace won't do) What determines exactly which elements should and should not be replaced? Is it possible that matching a regular expression against your string can do this?
May
4
comment Is it bad practice to name an unused variable with a single underscore?
Your second point contradicts your main point: in Go, that essentially means the same as "I have no use for this value".
Apr
9
awarded  Supporter
Apr
8
comment Motivation Problems, Middle School Programmer
If you truly do know everything then why not combine building up your resume with building an interesting project?
Apr
8
awarded  Autobiographer