Home
Mahendran
Cancel

GraphQL - simple backend server - SpringBoot application

In this post, I’ll cover how to create a simple GraphQL server with Springboot and Netflix DGS. DGS is chosen because you start with GraphQL schema and then build server side logic around it. P...

Get productive with GraphQL — Type Adapters

One of the demanding features in any serializer-deserializer is the ability to convert data to user defined format. GraphQL is smart enough to generate classes & parsers for your primitive / ne...

Weather forecast card design using Jetpack Compose

Horizontal weather cards are the second portion in my forecast screen. It contains a message, relative timestamp and an image depicting the weather. Since I don’t have images in handy, I picked one...

Why should I go for compose?

Way less boilerplate and better tooling. That’s why. What’s wrong with the old widgets? The old Android widget is painstakingly (smart!?) enough to has its own state and it is not necessarily i...

Jetpack compose — DropdownMenu — Weather UI

Introduction Sharing my experience with jetpack while practicing with the weather - forecast screen(from uptechteam). While surfing dribble this particular shot caught my eye. Minimal - subtle col...

Sock merchant problem - Hackerrank

Problem definition is available here This is a classification problem where the element can repeat multiple times in the given array. Like any other problem, this can be solved in multiple ways i...

Drawing book problem - Hackerrank

Problem statement is available here This problem needs minimum number of turns required to reach a particular page. Input All the books start with page1 on the left and may or may not fill the le...

Kotlin value class

Kotlin’s data class is a fan favorite when it comes to storing any model. Bundled with bunch of necessary methods, devs get a lot while writing way less. From Kotlin 1.5 — we have value class-s. L...

Hackerrank - bon-appetit problem solution in Kotlin

1. sumBy 2. sumOf 3. foldIndexed 4. reduceIndexed 5. filterIndexed + sum() 6. fold 7. reduce Solution: For detailed problem statement, head over to the bill division problem here...

Electronic store problem - Hackerrank - Kotlin solution - elimination approach

Introduction Problem definition is available here Our goal is to compute the costly pair of keyboard & drive we can get from the the store, given the budget (b). The input is keyboards and d...