Profile

Cover photo
253 followers|201,128 views
AboutPostsPhotosVideos

Stream

Programistyka

Shared publicly  - 
 
Many parameters and lost information
The less code, the better? The fewer objects, the better? Is it true? As usual, it depends.

There are cases when by adding something more we are adding unnecessary complexity.
Yet, there are also situations where additional code gave us significant information.

#cleancode #codequality #design #readability #parameterobject
1
1
Add a comment...

Programistyka

Shared publicly  - 
 
Conjunctions we... hate

Sometimes it is much harder to find a good name than write an implementation, but it does not mean that we should not try.
It is in our own interest to make the names as descriptive and accurate as possible. It will save our time in the future.

#cleancode #codequality #readability #SingleResponsibilityPrinciple #design
1
1
Add a comment...

Programistyka

Shared publicly  - 
 
*Should you follow the rules? *
Static Analysis help you follow established rules. Isn’t it great? Before your code gets under the review, we are already sure that many things have already been checked and we don’t have to bother ourselves with verifying the code from this side once again.

However, this solution comes with a problem. When a developer receives feedback, they know what is wrong, but not always know why a particular part of the code was recognized as invalid.
And lack of understanding of rules can lead to huge damage.

#staticanalysis #softwaredevelopment #codequality
1
1
Add a comment...

Programistyka

Shared publicly  - 
 
Need some explanation?

What are the main reasons behind doing a code review? In my opinion they include sharing knowledge (learning and teaching) and increasing readability and understandability of the written code.
Today I want to show you the negative impact on the quality of a review that explaining the changes introduced in the code may have.

#codereview #cleancode #codequality #readability #softwaredevelopment 
1
1
Add a comment...

Programistyka

Shared publicly  - 
 
First for test, second for implementation!

Test-Driven Development is a great technique. It makes our code easier to maintain and develop. Yet, I know many developers that do TDD only when it comes to interviewing a candidate. In reality, they write tests just after writing code. 
The purpose of those tests is not to be a design driver, but to satisfy coverage. 
How can we change it?

#tdd #testdrivendevelopment #testing #refactoring #readability #codequality #softwaredevelopment
1
3
Add a comment...

Programistyka

Shared publicly  - 
 
The first exception changes the rules of the game

There is a one challenging thing in following the rules. If you agreed to follow them, you should not allow for any exception. Why? Because the first exception is the first step for more exceptions. The more exceptions are made, the less valuable the rule becomes.

#softwaredevelopment #rules #exceptions
1
1
Add a comment...
Have them in circles
253 people
Mateusz Kaczmarek's profile photo
Łukasz Grygiel's profile photo
Wojciech Górniak's profile photo
Andrzej Sadowski's profile photo
sebastian mazur's profile photo
Daniel Podlejski's profile photo
Basia Tokar's profile photo
devlab.pl's profile photo
Krzysztof Lesiczka's profile photo

Programistyka

Shared publicly  - 
 
Implementation, behavior and the amount of the code...

Functionality built on top of knowledge about an object’s implementation is extremely tightly coupled with this object. We know about it not only what we need to know, but also the things that should be irrelevant in the place where we are using the object. The object gives us only an access to the data based on which we may implement functionality that we need. Entire functionality which refers to this state is implement around the details of the way how this object is built.

#cleancode #codequality #design #readability #name #method #softwaredevelopment
1
1
Add a comment...

Programistyka

Shared publicly  - 
 
The name should express the intention

What is wrong with implementation-related names?
The first thing regards duplication of information and the second thing relates to the lack of information.

#cleancode #codequality #design #DRY #readability #singleresponsibilityprinciple
2
1
Add a comment...

Programistyka

Shared publicly  - 
 
What’s really matter? When you break a rules!

What’s really great in tools like PMD, checkstyle, FindBugs, etc? It’s not the fact that we don’t have to spend our time on checking coding standards. The best thing is that using those tools makes more visible each situation when someone wants to abuse or break a rule we agreed on. And this is exactly what we are interested in!

#codereview #codequality #staticanalysis #cleancode
1
1
Add a comment...

Programistyka

Shared publicly  - 
 
Code Review and Single Responsibility Principle

Let’s organize our commits around a single change. 
Let’s make things simple and easier for us and all of those who will read the code.

#codereview #readability #SingleResponsibilityPrinciple #codequality #softwaredevelopment
1
1
Add a comment...

Programistyka

Shared publicly  - 
 
The places where you want to be
Today I would just like to invite you to a few conferences/event where I will have a pleasure to talk.

#event #4Developers #KarieraIT #GeeCON #jetconf
1
Add a comment...

Programistyka

Shared publicly  - 
 
@Autowired all the things!
@Autowired annotation make our lives easier in that it allows us to write less code. However, using it may often make your design more complicated. Especially when we are talking about using it on class’s properties. It makes it easier to violate Single Responsibility Principle. It makes it easier not to notice that.

#autowired #constructor #readability #cleancode #java #design 
1
1
Add a comment...
People
Have them in circles
253 people
Mateusz Kaczmarek's profile photo
Łukasz Grygiel's profile photo
Wojciech Górniak's profile photo
Andrzej Sadowski's profile photo
sebastian mazur's profile photo
Daniel Podlejski's profile photo
Basia Tokar's profile photo
devlab.pl's profile photo
Krzysztof Lesiczka's profile photo
Contact Information
Contact info
Email
Story
Tagline
Programowanie i projektowanie obiektowe w pigułce:)
Introduction
Duża dawka wiedzy na temat programowania i projektowania obiektowego.