Artem's blog

Thoughts on software

BodyBuilding

Here is a presentation I’m going to do today at work: http://prezi.com/io8rs1bsxxzm/bodybuilding/ And there are some nice books on bodybuilding: http://www.amazon.com/Best-Bodybuilding-Books-Ever/lm/28VVIY3FDQCB0

ArrayList is faster than LinkedList for add() operation

I was always wondering if it is a good idea to use LinkedList if the number of elements in the list is unknown. So I decided to test it. Program is pretty short here: https://github.com/artgo/TestLists/blob/master/src/TestLists.java I run this test on Ubuntu 12 64bit, Oracle Java 7 64bit, 12Gb RAM, i7 920 processor. It won’t run, [...]

Checking mirrors pings in Scala

I’ve recently was installing CygWin on one of my machines and ran into question I run into all the time: which mirror to select to minimize time to load all my stuff. So I decided finally to write a small Scala program to ping mirrors and find out which one is the closest. I decided [...]

,

What to do with InterruptedException in Java

Let’s discuss what you can do about annoying InterruptedException. In many situations you’d have a lot of methods like someOtherMethod() below, where you’d want to preserve it’s signature clear. Or, you call goes through 3-rd party interfaces which do not throw InterruptedException. What do you do? First of all you have to know what kind [...]

,

Tetris for Android

I recently wrote a Tetris game for Android platform. Here it is: It is just a strait classical implementation of the Tetris. I shows drop position, next figure, increase speed with levels (up to 20), calculate score giving bonus for extra lines. And it saves score into phone’s memory, so you can keep track of [...]

, ,

Facebook’s most annoying issues 2

11. Manage rights for applications is not good enough. You should be able to select what you would actually like to share with an application at the start of using it. I’m sure some Facebook games would survive without having access to my email. Ideally it should look like this: you declined access to email, [...]

,

Facebook’s most annoying issues

The most annoying Facebook issues to me are: 1. Not all actions have authorization. I mean some of them don’t have it at all. It is annoying when spammers mark me on their photos; 2. Group-level authorization is not good enough yet. I can’t restrict access to post on my wall for groups. I.e. I [...]

,

What is cloud computing? Cloud computing main idea explained

The cloud computing is the style of computing which is linearly scalable over network. There are at least 2 variations of concept: Client-side cloud computing, which is client-based software which is at the same time client and server to many other instances. Examples are:  Skype, BitTorrent, SETI@home. Server-side cloud computing, which is automatically scalable systems [...]

, ,

Why do I need inheritance in OOP? Real-world examples.

The problem in general is that it is sometimes unclear from books why do we need some particular technology. In this case we are going to discuss why do you need inheritance and where it is used in real-life applications. Let us at first remind what is inheritance (samples in Java):  Java |  copy code |? 0102public class Pet {03 [...]

, ,

2 eggs and a K-floors building puzzle

You have absolutely identical 2 eggs and empty K-story building. You can throw eggs from any floor and see if it was broken or not. If not, you can reuse it again momentarily. You need to identify the lowest floor, starting from which eggs is broken if thrown (“breaking floor”) in minimum possible steps in [...]

Previous Posts