3,337 reputation
11630
bio website google.com/profiles/Daenyth
location Boston, MA
age 26
visits member for 4 years, 8 months
seen 10 mins ago

Professional computer nerd


May
14
comment What factors should influence how I determine when to abandon a small project with a friend?
I think that with some work this question could be made general and more answerable. I like the question and I feel like it's valuable, but it's hard to find the core question that isn't opinion-based.
May
8
answered How can I unit test a class which requires a web service call?
May
8
comment Idiomatic Scala way to come a list of Eithers into a Left or Right depending on the lists content
You're looking for the sequence operation. F[G[A]] => G[F[A]]. This question is off topic for P.se but on-topic on SO, where it already has an answer: stackoverflow.com/a/29865688/350351
May
7
reviewed Approve What to do with abandoned issues in GitHub?
Mar
20
awarded  Curious
Mar
17
comment What algorithm can be used to determine order given incomplete information?
Are you asking people to describe such an algorithm, write one, or are you trying to make a discussion? This doesn't seem like a real "question"
Mar
13
awarded  Good Question
Mar
10
revised Is Functional Programming a viable alternative to dependency injection patterns?
formatting
Mar
6
comment Name for a Function which Returns its Arguments?
To the close-voters: This is not an opinion based question, there's a definitive answer.
Feb
23
comment How can I convince my manager to contribute back to the open source community?
This seems like it might be on-topic on the workplace.se, but I'm not certain. You might check there and possibly repost/ask to migrate. Personally I'd recommend asking the manager what the specific objection was given that it was done on personal time with without referencing the company. Short of being in a bad financial situation I'm pretty sure I'd find a new job if the current one banned personal-time open source work.
Sep
26
comment Is there any language-agnostic specification for “String Natural Sorting Order”
Natural sort depends on the human language and the context of what you're sorting. Consider sorting kanji, or arabic text, or the former combined with latin characters. A "natural" sort of month names would probably be "Jan, Feb, ..." rather than "April, December, ...". The context matters too much for there to be an objective spec
Sep
14
awarded  Yearling
Sep
4
comment Why are the <b> and <i> tags deprecated?
The overhead matters a little for mobile browsers on slower networks
Sep
3
comment Why is (f . l) not allowed and equal to (apply f l)?
You should edit the question to make it more clear rather than reply to the comment
Aug
29
answered Does ASCII have a header or footer or anything similar?
Aug
29
comment Separate methods or single method with if statement?
There's one VERY strong reason to use a single method (it might not apply in this case, but I had this happen in a java/GWT app). If the class holding the button handler is constructed anonymously, you will create a new instance for each thing generating events, which if they are done in high numbers or in a loop (table row entries perhaps), consume lots of memory and runtime. Using one method means one object instance. Harder to maintain but the performance is orders of magnitude better (in the case I hit)
Aug
27
comment Is it a good practice to declare instance variables as None in a class in Python?
I should have elaborated that it can cause an error if used incorrectly.
Aug
27
answered Is it a good practice to declare instance variables as None in a class in Python?
Aug
27
comment Making internal search engine return results that adhere to local permissions on an internal web application
I'm not familiar with your technologies but 7 queries is a lot. Can you change a where x = to where x in and do them all in one query?
Aug
22
comment Am I violating LSP if the condition can be checked?
Instead of having a canResize method that could be skipped or implemented incorrectly, have an interface Resizable that provides setSizeOfShape and when needed, classes can accept a Resizable instead of a Shape, or perhaps they can accept a ResizableShape (class ResizableShape implements Shape, Resizable). This takes the burden of doing the right thing away from the programmer and instead lets the compiler enforce correct behavior.