Wrzasq.pl

FrontPageFilter - SPA with server side pages in Java

Wednesday, 05 October 2016, 20:38

Time flies, browsers become more and more modern, they are more and more up-to-date. As the common web standards and new frontend technologies are being adopted you can shift more stuff to the client-side. Particularily it means nowadays you can leave most of the frontend part on your JavaScript application shoulders. Thanks to that SPA approach is getting more and more popular. Especially that most search engines and webmaster tools are now able to understand and execute JavaScript code to build full site representation for analysis. With all of these in mind it's an attractive idea to develop your backend application as a pure JSON API (it doesn't have to be pure REST) and handle everything related to presentation layer on a frontend (browser) side. But you still need an application to serve it all from your server(s). Which means your backend application still needs to be a web application.

Tags: , , , , , ,

» Komentarze

PopStack - copy-pasting from StackOverflow has never been as easy

Saturday, 19 March 2016, 00:05

I work in Berlin but live in Szczecin - commute to work by train and have something like 2 hours per day to spend on doing something on my laptop. I also cannot sleep until late hours (just like today) so I have few more hours. That gives me few hours per day after my regular work to spend on something on my laptop. Sometimes I do my private projects, sometimes I do spare-time freelance projects, but from time to time I like playing with new stuff. This is how PopStack was born.

Tags: , , , , , ,

» Komentarze

Symfony2 your way

Sunday, 29 June 2014, 23:01

Last Friday, on Tech Fusion (a tech meetup in Szczecin, Poland), I had a talk about using Symfony2 to build own applications. The main purpose of it was to present various ways in which this flexible framework can be adapted to the needs of your application (without doing dirty, nasty and ugly hacks). It's not a complete compendium - a form of a meetup restricted it to be a maximum of 30 minutes talk, to present essential solutions and aspects of this subject. If you missed it, don't worry! It's already available online on SlideShare.

Tags: , , , , , , , ,

» Komentarze

Symfony2 - global templating variables in PHP renderer with ChillDevViewHelpersBundle

Wednesday, 15 January 2014, 18:45

Short time ago, while working on one of my projects i faced a problem with PHP templating engine in Symfony2 (again the same) - passing pre-defined variables to view renderer. For some reason it's not possible to define global variables for PHP templating engine. It is possible for Twig (with TwigBundle), but there is no equivalent of that for PHP. After googling for a moment and browsing some of Stack Overflow questions I ensured myself that it's not possible and that I'm not the only one who is looking for such a feature.

Tags: , , ,

» Komentarze

Symfony2 - creating adapter-dependent sub-forms

Wednesday, 11 September 2013, 19:04

I think this is quite commonly needed feature - form structure that vary depending on some other field(s). The project, on which I'm currently working, is integrated with a lot of external APIs which usually require additional per-user options for each of them. It's a SEO tool and - to pick an example - provides various indexing services integration. Some of them require API key, some require login and password, some specify different URLs. So for each of them form structure can differ. Of course you could use some conditions to pick correct structure, but it's not enough - form needs to change together with selected option. There are some partial tutorials on the web how to alternate form based on events, but it's just one part of the solution - here is more complex one.

Tags: , , , ,

» Komentarze

Symfony2 - simple, yet useful tips

Monday, 17 June 2013, 16:24

It's been a while since my last article and activity, as I was mainly concentrated on my private life and commercials projects, but even though my top commitment was updating projects dependencies on GitHub I also experimented with some different approaches for organising Symfony2 projects. I want to share some of my thoughts, so you may also benefit from using it or tell me why these ideas are stupid. I don't want to write here some obvious stuff like "write unit tests", "use Composer" etc. - you can read that in every single tutorial for Symfony2. Some of my tricks are plain simple but not obvious, some, on the other hand look strange, but saved my ass, so you can give them a try. Please excuse my a bit chaotic form (and content), but I'm writing this in my free time while commuting by train :P.

Tags: , , , ,

» Komentarze