Good programming practices


StructuredInfo – objects instead of plain String

December 29th, 2011

Common method toString is a simple way to display inner values of an object. But when you get a String want to present it in other format it can be difficult or unsafe to parse it. So better way is to pass a structured object witch can be next serialized to desired format. So I created a project in Scala 2.9.1 for gathering and serializing information in an application. More…

Hybrid class with JavaScript and PHP

January 9th, 2011

JavaScript and PHP are very often used together in one project. In order to facilitate programming with these two languages I created a library that allows you to implement part of the class in JavaScript, and the rest in PHP. In this way, you can call a JavaScript method written in PHP. The developer can focus on creating code, and synchronization is done by the library.


Objects in JavaScript are client-side, allowing you to interact with the user. Logical layer remains on the server side.

  • Create and modify objects in the GUI, which are next written in PHP, for example in a database.
  • Validation of data entered by the user.
  • Hiding parts of the implementation from the user.
  • Use features not available in JavaScript. More…