2,305 reputation
620
bio website scriptin.github.io
location Russia, Krasnodar
age 27
visits member for 2 years, 4 months
seen 3 hours ago

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

Technologies:

  • Java: Servlets, JPA/Hibernate, Spring, Restlet, JAX-RS, Hazelcast, etc.
  • Maven, Gradle
  • MySQL, PostgreSQL
  • PHP (not so much lately)
  • JavaScript
  • HTML and CSS
  • Vagrant, Docker

Methodologies:

  • TDD and BDD
  • Agile, just a little

3h
comment Dependency injection vs dependency lookup in a layered architecture
I don't quite understand. It is indeed language-specific (if Java had no nulls, constructor injection would be better), but why does it matter?
3h
comment Dependency injection vs dependency lookup in a layered architecture
Also, I have to note that object can be put into invalid state even with constructor injection, since nulls can be passed into constructor, so you have to check (at runtime). You can deal with invalid state by providing a method afterDependeciesSet in GenericPlugin interface which checks that all dependencies are set properly - again, at runtime. In the end of a day, those two approaches are not so different as it might seem.
3h
comment Dependency injection vs dependency lookup in a layered architecture
I agree that setters have disadvantages. You can go with constructor injection as well (at least I'm sure I can do that with some DI-containers I know, e.g. AutowireCapableBeanFactory), interfaces would be of no use then.
4h
answered Dependency injection vs dependency lookup in a layered architecture
5h
awarded  Enthusiast
18h
reviewed Approve Could I use Selenium to automate UI testing? How would I do this?
1d
comment How do you get complete testing/QA in a git/hg flow development process?
@enderland you're right. In such cases it is required to be tested this way, and this also applies to things like user experience or graphical design, which are supposed to be tested/evaluated manually. But I think if the question was about that kind of stuff, it would be a whole different question.
1d
comment How do you get complete testing/QA in a git/hg flow development process?
@enderland I don't believe it can be more effective for the reasons I mentioned: slow, not reproducible, error-prone. I don't buy this as a more effective way. It is easier for sure, since no teaching/learning and CI setup required. Cheaper - I guess it can be, but I think it just leads to paying with something else (time or quality). Anyway, question is not about how to make it cheaper.
1d
answered How do you get complete testing/QA in a git/hg flow development process?
1d
comment How do you get complete testing/QA in a git/hg flow development process?
Why do you have to ask testers to run tests again? Can't you run tests by yourself? Can't tests be run automatically on CI server?
Apr
15
comment The Three Laws of TDD and private methods
Changing a method access modifier just to run tests is a situation where a tail wiggles a dog. I think testing inner parts of a unit is just making it harder to refactor later. Testing public interface, on the contrary, is great because it works as a "contract" for a unit.
Apr
15
comment A good workflow to start with Continuous Delivery?
"What do you think about this ...?" and "Which ... do you use?" are not good types of questions to ask here. Can you improve your question to make it more specific?
Apr
15
answered Can I ditch the persistence.xml file on JBoss?
Apr
15
comment DI container with multiple instances of same object
I think you're talking about lazy initialization. DI containers I know of do that by default. See PHP-DI (lazy injection), Symfony DI (lazy services)
Apr
14
reviewed Approve What is a closure and how is it implemented in Ruby?
Apr
14
answered Calling RESTful service from browser and handling 4xx class responses
Apr
14
comment HATEOAS vs Frontend app GUI
People do that using some kind of schema. See this for example: JSON Schema Based Editor. Also, check json-schema implementations (UI generation section).
Apr
14
comment HATEOAS vs Frontend app GUI
Do you want to build pages/forms automatically based on the format of resources in a REST API?
Apr
13
answered oauth 2 authenticate with other authorization server
Apr
12
comment License that encourages improvements to the original version rather than own forks?
I'm not sure if there is a way, but what's the point of doing that? Motivation should not be formalized because it just doesn't work this way. People usually write CONTRIBUTING.md type of files for this reason (example).