September 05 2016, 22:19

A major new update on my blog about Hybris. I created a prototype for integrating SAP Hybris and Google AngularJS 2.

AngularJS is a framework for building single-page web applications, supported by Google and Microsoft. Two-way data binding (any changes in the user interface immediately reflect on the application objects and vice versa), a ready-made interface library, modularity, and many other features are both advantages and disadvantages. Many Hybris clients consider Angular for specific niche tasks where this approach works better than the classical one. For the client, for whom I’m architecting all this, an example is the customer’s “personal account.”

A downside is that Google has not been able to release the second version, so for now, everything is up in the air. The article is generally suitable for the first version of Angular, except that only my source code will be useless. Otherwise, everything is the same.

The link includes a video, various diagrams, and useful terms; you can also download the source code for the second version of Angular.

https://hybrismart.com/2016/09/03/angularjs-v-2-and-hybris/

September 03 2016, 23:47

An interesting business I encountered in Ocean City a week ago. Hidden deep inside there’s a parlor with carriages and various old-fashioned paraphernalia. You can dress up in any style or color you like: the wardrobe is right there. They then process the photo with filters, print it on textured paper, and put it in a frame for your wall. It draws a huge crowd. There are even two outlets of this chain on the boardwalk. I don’t know how people can love such things, but Ocean City, with its crowd and entertainment, very much reminds me of an upscale Yalta. Here, there are carousels with horses, slot machines, everything blinking and spinning, multiple kinds of music playing at once, massive crowds of people with kids, dogs, and umbrellas, no decent restaurants, but an abundance of fast food and quick shows. And yet people queue up at these spots and pay diligently.

September 02 2016, 14:41

On my work machine, some pre-installed software changes the login screen image daily. The images aren’t labeled, but they are so pleasing to the eye that I often have to photograph them directly from the monitor in order to use Goggles to find the depicted place or the original photo. For instance, yesterday I learned about the existence of a beautiful spot in Spain, Puente Nuevo, and today I am greeted by this beautiful sloth.

September 02 2016, 14:30

The local squirrels are insane. What is the cat doing that a bike is speeding towards? An experienced cat will step off the road and be on guard, ready to jump even further away if needed. All other animals, except the local squirrels, will simply bolt into the bushes out of a sense of self-preservation.

But the squirrels will first try to jump in fright under the wheels, and then, in the very last moment, turn three times and end up on a tree.

It’s happened several times already. When you’re speeding, it’s not funny at all.

https://youtu.be/_t_35HXQ2Qo

September 02 2016, 11:53

Update on my blog about hybris. Created a small tool that shows the structure of templates from the Hybris accelerator. Probably, only Hybris front-end developers will understand it.

In Hybris, there are hundreds of files that refer to each other, some files are included inside others. For instance, productPrimaryImage is incorporated in a couple of dozen other templates, and if you edit it, you should understand the implications. The second purpose of this structure is educational. It shows how a page is assembled. This is not at all obvious from the code, since the inserts are scattered across different files. For example, to assemble a product page, 24 different files are used.

https://hybrismart.com/2016/09/02/hybris-cms-template-structure-reference/