Dec
23
awarded Yearling
Dec
23
awarded Yearling
Sep
19
comment JavaScript list of exceptions
RangeError example = new Array(5.5)
Aug
29
awarded Supporter
Nov
14
comment BinaryTree class with extra methods
In terms of generics, there should be no reason why you would be bounding it by Integer (which is final and doesn't make sense) -- it should be bounded by Number (public class BinaryTree<E extends Number>) instead. Your inner class shouldn't need generics, if it does for some reason it shouldn't be hiding it (e.g. Node<T> vs Node<E>.
Nov
14
comment Is this synchronized correctly?
Minor quib, program to the interface (e.g. List<Message> messages = new ArrayList<Message>(); also have you checked out using the Collections API? Collections.synchronizedList(messages).
Oct
24
comment Splitting equilateral triangle to 5 parts
michaelbeeson.com/research/papers/TriangleTiling1.pdf#page=56 (updated url)
Oct
6
revised Python wrapper for the Help Scout API
corrected comments, added alternative to "switch/case"
Oct
6
revised Python wrapper for the Help Scout API
corrected comments, added alternative to "switch/case"
Oct
6
answered Python wrapper for the Help Scout API
Oct
6
comment How do I check my promotional credit with Amazon?
easy to remember short link: amzn.to/mp3-balance :)
Oct
3
comment Configuring toString via a public static variable
Just had another thought, are you concatenating using + or StringBuilder? It might make a difference if the verbosity is expensive and is constantly being created. But may not be needed as it could be optimized by the compiler.
Oct
1
comment Configuring toString via a public static variable
Typically when you're debugging, you'll be using an IDE to step through your code -- debugging vis-a-vis print statements is not good practice since it could be an improper use of the API and thus hidden from your toString() method. But, you could also decorate it with an interface with something like IsDebuggable and use an intermediary (processor) to do handle it. Then you would implement IsDebuggable to all classes that you'd want to see as verbose (enforcing a contract) and then use it as such: processClass(IsDebuggable someClass) { someClass.toDebugString(); } )
Oct
1
revised Format names to title case
deleted 1 characters in body
Oct
1
revised Format names to title case
added 8 characters in body
Oct
1
answered Format names to title case
Oct
1
comment Format names to title case
References to objects should be as generic as possible (i.e. List<String> a1 is preferred over ArrayList<String> a1)
Oct
1
answered Configuring toString via a public static variable
Sep
10
revised php url query nested array with no index
corrected spelling, grammar, and syntax
Jul
8
awarded Notable Question
1 2 3 4 5