Sunday, January 29, 2017

Coding time means often waiting/reading time ;-)

Several times a week I should spend one hour of my own time (private time) on coding my own things.
Google Calendar ensures that I will not forget about it ;-)

And strange thing, sometimes I'm doing rather big changes in code and don't write a line...
For example moving my own Android apps to new Jack compiler which will let me to use Java 8 features means that except small changes in file latter I only ask IntelliJ to analyze project and latter do a lot of initial refactoring using mouse... for example changing anonymous classes to lambdas, and next lambdas to method references.

Other time I may spend most of this "coding" time reading docs which will let me do this what was intended...

This is cause why I like JavaScript so much.
When I'm creating something in JavaScript I usually don't use any tools, so in case of working on JavaScript projects almost whole hour goes to coding ;-)
And debugging ;-)

In general I found out that first tools help and make us more productive, but latter we spend more time waiting for tools, or working with tools than on working with code ;-)
Still I'm not sure if it is OK, or not.

Similar postsbeta
Which language is fastest? ;-)
How to detect clickbaits?
When you should stop read a book?
My road to automation ;-)
Why it isn't working???

Monday, January 23, 2017

Delete your Facebook account!

OK, first go to

Can you see that somebody who have access to your likes on FB is able to say so much about you?

It isn't small thing.
Thanks to this in UK Brexit won, in US Trump won.

Knowing what kind of personality you have, which demographics you are, somebody may decide that it will be better if you will not vote, so they will show you some bad things about candidate you wanted to vote for. Or they may decide that if they hit in your "sweet spot" you will vote for theirs candidate.

This is manipulation on personal level.
They may touch your most hidden fears and use them against you.

So, delete your Facebook account.

Or at least, stop using Like and other reactions. At least your personality model may be little bit out of sync. And they will not hit you so much....

Similar postsbeta
OOo2GD help site
How to create valid file name?
Complains ;-)
Google Buzz - let's mark some comments as not spam ;-) or how to unhide "hidden" comments ;-)
I want my Android back!!!!

Saturday, January 21, 2017

Portable code smells list ;-)

Here list of things which are for me code smells, and short description of things I'm looking for during code review when I'm finding such things:

  • protected - why this should be visible for subclasses but not rest of the world? Sometimes it make sense, but usually means that we are leaking some elements of implementation, maybe default will be better? You will have access in given package, but this will stay here,
  • fileds other than private - why such field exists? Somebody may modify this field and whole code may start to do strange things...,
  • extends - wasn't it used here only for keeping 1 copy of code? Is subclass more specialized case of superclass?
  • abstract - why this class exists? Isn't class hierarchy too high?
  • big class hierarchy - are all subclasses needed? Are those more specialized than superclasses?
  • setting capacity in collections - why its here? If this is HashMap do we take under consideration threshold? Premature optimization? Can be negative?
  • casting - where we are loosing type information?
  • long names - one letter is too little, 12 or more letters are probably far too much ;-)
  • I at the front of interface name - this is Java!
Usually when I'm seeing those code smells this means that code isn't healthy, and will make a lot of problems latter.
Of course if author is able to explain why given thing was used I'm OK, this is not religion ;-)

Similar postsbeta
How to get negative number from size() in LinkedList in Java? ;-)
My road to automation ;-)
Coding time means often waiting/reading time ;-)
Borders, immigrants and so on
Android vs iOS

Monday, January 16, 2017

Amazon Prime Video suxx

At least for me ;-)

1) I can watch it only in web browser or on Android device... it doesn't work with Chromecast, XBOX One, my TV or Blu-Ray. It really suxx when you are sitting in the front of 49" screen and are watching movie on 10.1"... What is really funny, Amazon says on web page that it works with XBOX One and my TV....,
2) Season 2 of Man in the High Castle is unavailable on PrimeVideo page, but you are able to watch it when you will find it on,
3) It irritates you with content you cannot see... Yesterday I found Mr. Robot on Amazon and it was described as available because of being prime video customer, I clicked and it showed me that "Sorry, you cannot see this content in your location".... Netflix and Google Play at least don't show you titles you are not able to watch,
4) Name... anybody knows what is name of this service? Prime Video? Amazon Video? Amazon Instant?

But still... it stays with me next to Netflix, Spotify and Google Music subscriptions ;-)

Similar postsbeta
Alexa... What to do with her?
Mobile generation..
Watcher ;-)
OOo2GD 1.5.1 Birthday Edition ;-)
I want my Android back!!!!

Sunday, January 15, 2017

My road to automation ;-)

I'm looking on my GitHub repositories and I think that it is possible to see some common denominators in my projects ;-)

And it is even not this that I'm writing ugly* code ;-)

Let's see:
Note2WebPage - something what is intended to remind me when I'm visiting given page/domain about something (for example that I should use on Amazon GBP instead of PLN as currency),
clickbaitDetector - here I want to have something what will protect me from going after articles with click bait titles,
PocketTags - automatically adds tags to items in my Pocket base on some rules,
TimeToRead - adds to Pocket items tags with time range needed to read item,
Chrome2ChromeV2 - lets me to send page from one Chrome instance to another (usually on another computer ;-)),
LocaleSSID - was/is plugin for Locale which was intended to start some actions on my phone when I was near given SSID,
OOo2GD - was intended to make my life easier by making uploading/downloading documents from Google Docs to as seamless as possible.

It seems that all of those are about moving "my job" to computer.
About making computer doing things which may be burden to me.

I may don't remember things, don't need to classify things by hand and by head, don't need to look into articles to see how long those are (in tram it is useful, I know that my ride will take about 15 minutes and starting reading something for 30+ minutes will not make sense).

Ideally I would like to automate everything what is boring or difficult**.

I'm using this drive to automation even at work, thanks to this I will make about 5-10% of tests which are running now on server able to be run in developer env without server :-)

* - I know that my code isn't too nice, and for sure it isn't clean. But it resolves problems, and almost always is really easy to modify when needed.
** - what in wider overlook isn't perfect, boredom is source of creativity, and doing difficult things makes your aging better.

Similar postsbeta
How to detect clickbaits?
Chrome2Chrome - lets move browser tabs between computers ;-)
Worflow - my biggest disapotiment of iOS
It's alive... still ;-)
Android vs iOS

Saturday, January 14, 2017


The most underestimated piece of furniture at home is whiteboard ;-)

Always wanted to have one, but it seems that this isn't a thing which you may buy in your corner shop...
But we live in Era of Internet, so this is not a problem ;-)

Usually in short term memory human can keep up to 7 elements, and often those are connected...
So you may draw those and thinking becomes easier ;-)

But I never learned how to use piece of paper and pencil, and usually don't have any near me.
So lots of ideas is being worked on in my head, and problem with this is that I don't have such big head ;-)

And here enters whiteboard, where you may write, draw, clear and keep important things.

So it is needed, but usually nobody buys it to home.... And in such home thinking is more difficult ;-)

posted from Bloggeroid

Similar postsbeta
Power of doodling ;-)
Blindfold programming
Coding without IDE
Throw out 1 thing each day
Alexa... What to do with her?

Saturday, January 7, 2017

4 steps of evolution of programmer ;-)

When you start to work as developer you simply takes tasks from ticket system, code it in the best way you can. Your biggest question is "when" tasks should be done.

Latter, you starts to see that some tickets are not described too well, and you start to ask questions "how" something should work.

Next, you starts to see that some features may not make sense. Your simple "how"'s change to full investigations where you try to find "why" something should be done.

Do we need it?
At some moment you start to question existence of some of features. And you starts to asks "do we need it?".

During "when" phase you think mainly about code you wrote, most important is to write it in clean way.

In "how" you starts to think about this how users will use it, important for you is creating something logical.

"Why" means that you tries to understand why users are doing some things in given way.
Most important becomes how you can help users.

Finally in "do we need it" you look on whole product and see it as a tool which helps users, and tries to eliminate everything what will work as obstacle for user.

Similar postsbeta
OOo2GD 1.5.0 - we can download spreadsheets :-)
What sux in G1?
Programming languages uncanny valley ;-)
Coding time means often waiting/reading time ;-)
My road to automation ;-)

Monday, January 2, 2017

Really first snow ;-)

Each year near begin of winter media and people wonder when will be first snow this year....
It strange because first snow in year was usually probably 10 or more months ago ;-)
So for 2017 my answer for this question will be 2nd January ;-)

OK, I know that I'm trolling.

To be honest it's first time from long time when my approach to snow is "whatever...".
This mainly because of this that now I don't have a car, so snow is not my problem ;-)
Earlier I had mixed feelings. From one side snow can look beautiful, from another driving is difficult with fresh snow.

I like to think that "throwing out" car was part of my throwing one thing daily mission... But for real it was caused by this that after colission on highway my car was not fully repaired, and I wasn't able to trust it...
And because of this that now I'm living near city center (this is Europe, old city having more than 750 years, so city center and near of it are cool and fancy ;-)) I really don't need a car.
And because of this snow is not so scary for me now ;-)

posted from Bloggeroid

Similar postsbeta
2+ years without a car
Yeah... It's snowing... again....
Throw out 1 thing each day
Worflow - my biggest disapotiment of iOS
Alexa... What to do with her?