Wednesday, 17 June 2020 04:06

Being at Crossroads, Take a Perspective View

Written by Rauf ALIEV
Rate this item
(0 votes)
“© 2020.https://hybrismart.com . All rights reserved.”

I often interview Java developers. What I observe regularly is their reluctance to learn SAP Commerce. Some say they believe they won’t be able to use the knowledge and experience anywhere else in their careers. Some of them see this move as ‘boxing’ themselves in. 

It is generally believed that focusing on the niche product may cause taking a lot of time in the future to get re-trained for a different product or technology if the current market conditions change and SAP Commerce will fade in relevance and popularity. Proprietary platforms come and go, and developers feel afraid to find themselves with useless knowledge and meaningless experience. 

Even though I generally share the view and arguments above, I also believe that SAP Commerce is a special case. What I want to leave you, then, is with the explanation of why I think so. 

One commonly held misconception is that SAP Commerce is a niche solution which for devs means proprietary hell. Yes, it is proprietary, but neither hybris, not SAP (after acquiring hybris) added any new concepts.

Under the hood, SAP Commerce is a huge collection of ready or template solutions for a wide range of e-commerce needs. Almost all of these solutions are open for anyone to explore and tinker with. Many components, such as Solr, Drools, and Spring are actually open-source. If you know Java Spring and Solr, you can divide your ramp-up time by two. 

Claude Adrien Helvétius, a French philosopher, once said that awareness of some principles easily compensates the lack of knowledge of certain facts. However, you can’t learn the principles apart from learning from their concrete implementation. 

The underlying concepts are more or less the same in all e-commerce platforms, and probably in all e-commerce websites. However, many custom solutions address only a particular case relevant to their business. On the contrary, the platform solutions have a foundation and template implementations for a wider set of cases, and you can pick the best for your business. Such a design helps to get a broader vision on possible options and solutions.  

Let’s take a cornerstone concept of any e-commerce website, a shopping cart. Basically it is just a list of items associated with a customer session, right? However, things get tricky when it comes to supporting both anonymous and authenticated shopping carts and checkout. For that, there are different strategies of how to combine cart items so a customer won’t lose the selected items when logging in from multiple devices or across multiple sessions. A solution for a grocery store with its large shopping carts might be different than one for a dealership website. Things are becoming even more trickier when it comes to configurable products and add-on product services with promotions on top of them. What SAP Commerce provides to you is the awareness that there are corner cases and there are standard solutions for such cases. Of course, it also provides you with a reference implementation of the shopping cart service where such cases are taken into account. 

This knowledge is equally important for any e-commerce specialist, whether they be a developer, solution architect, business analyst, or product owner. It helps the team to speak the same language. 

Beyond the e-commerce layer, this also applies to overlying and underlying tiers. Multi-level caching, database abstraction, and data access mechanism. This stuff is used in almost all large solutions, and understanding the best practices “by example” is always a big advantage.  

It will take years to learn how the platform is built and how the typical tasks are addressed. With frequent updates, it is hard to keep everything tracked and understand every corner of the platform in detail. However, you will find your ways of packing this information in your brain efficiently. No need to remember everything in detail. Mapping implementation to known concepts helps organize facts and ideas into a system of understanding. If you feel you can’t extract an abstract concept from the concrete implementation, ask those who know.  

Even though the code is proprietary, these abstract concepts are open and generic. Understanding of them contributes to your career and finally a paycheck to a much greater extent than understanding concrete implementation. 

It is believed that 10,000 hours of practice can turn you into an expert. For the developers, 80% of these 10K hours are hours spent in debugging. Every time you find yourself debugging the code, every time you set breakpoints in the platform classes, you increment that counter. Writing code is not so efficient. For example, the documentation says you need to add a fragment to the XML file and magic will happen. There are hundreds on Earth who limit themselves with the skill of writing code exactly as the documentation says. The complexity starts when it is not working as it should. This is where many junior developers give up. Troubleshooting contributes to your skillset and experience to a much greater degree. If you have options, don’t miss a chance to get yourself challenged with bug fixing and troubleshooting.  

Yes, some think that the main challenge is blackboxiness. That’s not entirely true. Indeed, SAP is still not willing to provide access to the source code for developers. Access to the installation package is still restricted for partners only. However, accessing the code behind the compiled classes has never been an issue. Our IDE’s decompilers do the work.. However, SAP still maintains that making the source code fully available is not possible for security reasons. It is common for vendors to fear that one would make use of the source code to find weaknesses. Guys, we have been looking at your code for many years! So, the source code is already available for public inspection. There are no non-decompilable components. SAP Commerce has never been a black box. 

In fact, I have been observing how SAP moves away from the closed community to open source. Spartacus, a javascript storefront, is available for anyone. Github is full of extensions for SAP Commerce. They often go together with the platform code. Installing and running SAP Commerce on the local machine is simple and straightforward (If you ever tried to install Magento on the local machine, you will understand why I emphasize this point). The documentation is now public. The trend for openness is now the norm to be successful. 

Now that we’re through here, let’s imagine what could happen if SAP decides to sunset SAP Commerce one day. It is abundantly clear that such an event must be preceded by a period of loss of the vendor’s attention to the product rather than a period of intensive investments. However, history is strewn with various examples of the rapid decline in market share. We have witnessed a fall of once-powerful Nokia, Motorola, BlackBerry, HTC, and Blackberry. Windows Mobile has lost nearly a third of its smartphone market share since 2008. Have you heard of any of the Windows CE developers begging for money or support from the government? The answer is simple: any technology is tightly connected with neighboring ones. One step aside and you are in the market where almost everything is the same. Even if things go south and all existing companies will decide to step away from SAP Commerce, skilled architects and developers will be worth their experience in gold for years after it happens. 

Of course, I personally have good reasons for optimism. SAP is actively investing in SAP Commerce and CX portfolio. There are no signs of it slowing down. Of course, the e-commerce platform market is getting to become more competitive, and it is getting harder and harder to keep their leadership badge. Just because it is no longer a black and white world. There are niche solutions for specific cases. Online auctions and service subscriptions are to be built differently than online groceries and online ticket offices. It is not possible to create a big universal platform that would be the best fit for everything. Scarcity helped with the choice in the past, but now we are facing “embarrassment of riches”. That is why it is very important to learn how concepts work by examples of concrete implementations. 

My experience with Hybris started in Teamidea, an SAP partner looking for new areas and products to complement their strong SAP solution practice.  I was offered to head the e-commerce department and build the hybris practice from scratch. At that time, nobody knew what Hybris was. In Russia, if it comes to a foundation for a website, there were only two options: 1) in-house custom development from scratch and 2) leveraging Bitrix as a platform. In Teamidea, we took a risk to add a third option and bring a big platform solution to Russia. At the interview, Vasily, CEO of Teamidea, offered me to take it on. I had the same doubts as many of you, and before accepting the offer, I asked to join the team and look closer to what Hybris is. The main question was to what degree this solution is and will remain a black box for us. My fears disappeared after the first day. It was just a Java app, with decompilable code, with understandable database structure and extensibility capabilities. The key argument for me to take the decision and accept the offer was ‘It is not a black box but a well-documented and well-built piece designed and developed in Germany’. 

Appendix. The diagram below shows the technologies and concepts constituting what should you know to be part of the development team. The concepts, products, and proprietary stuff are color-coded. 

What else discourages developers from investing time in a new area? Share your thoughts.   

Read 516 times

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.