346 reputation
214
bio website linkedin.com/in/eranmedan
location United States
age 37
visits member for 4 years, 1 month
seen Nov 12 at 2:42

Tech Lead at NICE Actimize

  • Java, Scala, JavaScript, and all that is web
  • Data mining and fraud detection

Apr
25
comment In functional programming, are local mutable variables with no side effects still considered “bad practice”?
@FredOverflow - thanks for the edit, oops :)
Apr
25
comment In functional programming, are local mutable variables with no side effects still considered “bad practice”?
Yep, I almost never need a for loop when using Scala's collections. map, filter, foldLeft and forEach do the trick most of the time, but when they don't, being able to feel I'm "OK" to reverting to brute force imperative code is nice. (as long as there are no side effects of course)
Mar
28
comment Architectural questions regarding, MV** frameworks, NoSQL data models, and gradual refactoring
@ShotgunNinja - thank you!
Mar
28
comment Architectural questions regarding, MV** frameworks, NoSQL data models, and gradual refactoring
To voter to close - why too localized? modern SaaS apps are build on the client side, the leading frameworks are BB, Ember and Angular, gaining huge momentum, and almost every SaaS app out there will have some animations, complex data models (NoSQL is gaining momentum for SaaS apps over SQL) and Modal dialog as a view. This question is what I hear from any web developer out there that has a "legacy" jQuery nested callbacks app with tons of DOM manipulation, this question I think is relevant to any web developer out there in the next 2-3 years if not more. May I request an explanation please?
Mar
28
comment Architectural questions regarding, MV** frameworks, NoSQL data models, and gradual refactoring
@RobertHarvey - I know, and I wish I could, I have a rare window of 1 week dedicated to refactor (it's a side project, non profit, and I have a wife and kids) so time is of the essence. All of the things I mentioned are advanced features, I've seen almost any Backbone tutorial (free or paid) as well as AngularJS and even the new Ember.js 1.0 release candidate, to get to a level I'm acing the framework enough to know if it would be a bad choice for my needs or not, I just need more time...
Feb
8
comment User session timeout handling in SaaS apps - discussing several approaches
Sometimes the dirty hacks are the best solutions :) thanks. You understood the question perfectly right
Feb
8
comment Naming convention for a method that both sets and gets
Thanks, I like the one verb rule of thumb, the issue is that too often keeping rules of thumb gets harder than it may seem, the rules are meant to serve us, 90% of time they do, those 10% of time they don't is what troubles me, when figuring out the "right" way of doing it is not in line with "getting it done and shipping it". Not always clear what is better... I had developers that were much less productive because they had to do everything "right", on the other hand, others were productive but hard to maintain their code, the golden path in the middle is hard to find...
Feb
8
comment Naming convention for a method that both sets and gets
Nice, pretty much what I had in mind, but there goes all the thread safety and synchronization aspect of it, also need to handle clearing the cached result etc...
Feb
8
comment Naming convention for a method that both sets and gets
@Mat good point, but not always. e.g. Baz can be a service and Bar can be a Model loaded from the database, you can argue if this is good design or not (e.g. in Rails/Grails/Roo all CRUD is on the model, whereas in older Java/Spring typical architecture, you have a separate Dao / Service layer, it's a matter of taste). But I don't see how this relates to the question :)
Dec
19
comment Is there any reason not to go directly from client-side Javascript to a database?
Not exactly pure "client side to database", but have you looked at Parse and Firebase? (and also Meteor to some level), all of them have somewhat relevant concepts, and all handle security in creative ways. e.g. see this: blog.firebase.com/post/38234264120/…
Sep
5
comment Why isn't Java used for modern web application development?
you can build CRUD apps in Java using Roo in minutes, same thing with Grails (not exactly Java, but still JVM) Play 1.0 had generators / scaffolding, I wonder where it went though...
Sep
5
comment Why isn't Java used for modern web application development?
Java and any other static language, have two huge benefits, almost worry free refactoring, and API discovery without documentation.
Aug
30
comment Backbone/JQuery, ExtJs 4… is there something else worth looking?
What about Dojo toolkit? seems like it had a comeback, same issues as Ext?
May
2
comment How to read from a database, and write to a file asynchronously / non blocking way in Java
No but I will now!, does it have a specific package name I should focus on?
May
2
comment Real world usage of DelayQueue
I understand what it does, but not what common problem it was designed to resolve, I'm looking for the use case(s)
May
2
comment How to read from a database, and write to a file asynchronously / non blocking way in Java
Thanks, I agree with both of you, but due to time constraints I had to do both in parallel, will take some time to get production stats, and in the meantime, trying to guess-optimize seems like better than waiting for the results. so anything I do that will not likely make things worse, is good in my view, isn't that so?
May
2
comment How to read from a database, and write to a file asynchronously / non blocking way in Java
Thanks, will post some benchmarks here tomorrow, right now the suggestions I got and will try are: increased featch size from the DB, and increased BufferdOutputStream for the file writing, doing the delayed file writing should help a little, but I start to get convinced it won't make a huge difference
May
2
comment How to read from a database, and write to a file asynchronously / non blocking way in Java
see original SO question stackoverflow.com/questions/10408055/…