1,585 reputation
317
bio website scriptin.github.io
location Russia, Krasnodar
age 26
visits member for 1 year, 11 months
seen 8 hours ago

I develop and test software for a living, mostly Java web applications, and also do some coding as a hobby.

Technologies I use:

  • Java: Servlets, JPA/Hibernate, Spring, Restlet, Hazelcast, etc.
  • Maven, Gradle
  • MySQL, PostgreSQL
  • PHP (not so much lately)
  • JavaScript
  • TDD/BDD: Cucumber, Behat, XUnit
  • HTML and CSS

2d
answered Is it normal for a programmer to not have 100% clarity over their own code at times?
2d
revised Should a list or array of objects be represented as a lifeline in sequence diagram?
added 338 characters in body
2d
comment Should a list or array of objects be represented as a lifeline in sequence diagram?
That is OK at conceptual level too. Your list is a valid participant of a process, and it doesn't really matter if it's a list or something else anyways - it a sequence diagram, not class diagram.
2d
answered Should a list or array of objects be represented as a lifeline in sequence diagram?
Nov
21
comment How to introduce Google Analytics code in a modular way?
If possible, event should occur on concrete action, or be composed of several simple events: e.g. "button clicked" followed by "window opened". That fits a definition of goal. Also you can check those outside conditions the same way as in existing code. If, however, you need something more complex, you'd have to modify you code anyway to produce some kind of custom events with additional state. In that case, you'd have to modify your code anyway, and I don't think there is a way to avoid that. Complex problems have complex solutions.
Nov
20
comment Java exception handling design
@Doval I think "general" means "common", "ubiquitous", since he spoke about NPEs.
Nov
20
answered Java exception handling design
Nov
20
comment How to introduce Google Analytics code in a modular way?
@Doval that's ill advised unless you need mocking. Since most of the time this additional functionality won't be needed anyways, that's just additional cost of calling a mocked method.
Nov
20
answered How to introduce Google Analytics code in a modular way?
Nov
19
comment Every function is a closure?
@AleksiTorhamo yes, but it is used right away (return func2()) in the same scope where it is directly visible, so it isn't captured
Nov
18
awarded  Enlightened
Nov
17
awarded  Nice Answer
Nov
17
awarded  Mortarboard
Nov
17
comment Every function is a closure?
Also, don't worry about lambda calculus terminology - it is not required to use closures properly.
Nov
17
comment Every function is a closure?
No, because test is global - it is visible from anywhere, unless "shadowed" by some local variable with the same name. Also, and it's more important, it remains it's existence after func execution is over. On the other hand, when startAt execution is over, x would be gone forever if it wouldn't be captured by incrementBy. Capturing "saves" x from garbage collection.
Nov
17
revised Every function is a closure?
deleted 8 characters in body
Nov
17
answered Every function is a closure?
Nov
17
comment Which algorithm best fits the following problem
With your case it would be fine to treat each banner "place" as a separate experiment. I think it's fine to use multiple options simultaneously as long as you track rating separately for each "place"/experiment - it's just multiple experiments running in parallel, no matter if they share options.
Nov
17
answered Which algorithm best fits the following problem
Nov
16
answered How can I avoid the “global $dbh” anti-pattern?