We released a new version of ShapeShift (0.7.0) – A lightweight, modular, performant and extensible library for Object Mapping

Hey all!

In this version:

We have added it to the already available features:

  • Automatic mapping.
  • Conditional mapping.
  • Deep mapping.
  • Mapping decorators for advanced logic.
  • Null values mapping strategy.
  • Annotation support.
  • Multi class mappings – Map from source class to multiple different target classes/fields.
  • Mapping to/from subclasses.
  • Custom transformers.
  • Native support for spring (beans).
  • Android support

Any requests and/or recommendations are more than welcome! It’s a pleasure to be a part of the open source community and we want to keep push forward and offer great tools to help others.

ShapeShift repository:
https://github.com/krud-dev/shapeshift

ShapeShift documentation:
https://shapeshift.krud.dev/

submitted by /u/baddict002
[link] [comments]

Continue ReadingWe released a new version of ShapeShift (0.7.0) – A lightweight, modular, performant and extensible library for Object Mapping

Design Patterns Kotlin

very straightforward question.

How different is implementing Design Patters in Kotlin compared to Java ?

I know that Object class is an implementation of the Singleton pattern, but I haven’t been lucky enough to implement myself/stumble upon other patterns in Kotlin. Should I assume that other patterns are implemented in Kotlin in Java-esque way ?

If you have any sauce (books, youtube videos, …) that tackles this specific thema, please do share in the comments.

Thank you for your answers.

submitted by /u/PinkFloyder1
[link] [comments]

Continue ReadingDesign Patterns Kotlin

Take Part in Advent of Code 2022 in Kotlin and Win Prizes!

Make a list and check it twice because Advent of Code season is almost here!

We can’t wait for December 1, when the first of the 25 holiday-themed puzzles unlocks on adventofcode.com

For the second year in a row, JetBrains will be sponsoring Advent of Code in 2022. Many of our colleagues will solve these fun algorithmic problems every day. We invite you to join us in participating in Advent of Code in Kotlin this year!

It’s a great way to practice your problem-solving, keep your Kotlin skills sharp, compete, and learn from the fantastic community surrounding the event. And it’s a wonderful way to get your hands on some exclusive Kotlin prizes! 🎁

Solve Advent of Code in Kotlin

Livestreams

This year, we have livestreams planned every day at 5:00 pm UTC, during which we’ll discuss the puzzle of the day, giving you 12 hours to solve the puzzle beforehand. Together, we’ll walk through the problem statement, discuss possible approaches to solving the task, and chat with some fun guests from the Kotlin team, Google, and the community. Subscribe to our YouTube channel to stay tuned!

Subscribe to the Kotlin YouTube channel

Community participation

To discuss your solutions, share tips and tricks with other puzzle enthusiasts, and get a chance to be featured on our daily YouTube livestreams, make sure to join the conversation in the Advent of Code channel on Kotlinlang Slack. Each day, a new thread will be posted where you can share your own solutions to the puzzles and interact with the community!

How to solve Advent of Code in Kotlin

For a warm up, we’ve gathered some helpful Advent of Code resources:

Leaderboard

We invite you to join a special Kotlin leaderboard! To sign up for the leaderboard, go to the Leaderboard section for your profile and use the code 236080-b0695394.

GitHub template

We’ve prepared a GitHub repository template for you to use with Kotlin. It will provide you with some structure and help you get set up quickly so you can get on with writing your AoC solutions.

Create a new project based on this template by logging in to your GitHub account, following the link below, and then clicking the green button that reads “Use this template”. And remember – do not fork it!

Use template

Kotlin GitHub template for Advent of Code

Prizes

We haven’t forgotten about the incentives for those who choose to solve the puzzles in Kotlin! We have our own leaderboard, and we’ll randomly select several winners among those who submit their solutions to GitHub. And of course, the top-scoring participants will get prizes, too. 

To be eligible for the prizes, make sure you meet the following criteria:

  • Attempt to solve at least three days of AoC 2022 in Kotlin.
  • Share your solutions publicly on GitHub.
  • Add the aoc-2022-in-kotlin topic to your repository (see below).
  • Have your contact details (email address and Twitter handle) available in your GitHub profile.

To add the aoc-2022-in-kotlin topic to your repository, edit the repository details by clicking the gear icon in the top right-hand corner on the repository page. Then, in the topics field, add the value:

AoC in Kotlin adding topic to repository

While we of course appreciate everyone with a competitive spirit, we don’t want to rush you. You don’t have to be the fastest or complete every challenge to win a prize. We want to make sure you experience the beauty of solving holiday puzzles in idiomatic Kotlin.

Solve Advent of Code 2022 in Kotlin, learn new things, and have fun!

Continue ReadingTake Part in Advent of Code 2022 in Kotlin and Win Prizes!

Kotlin DevRoom @ FOSDEM 2023

Hey all,
I’m one of the organizer of the Kotlin DevRoom @ FOSDEM 2023. I’m sharing that we’re looking for speakers to talk about Kotlin and Open Source in Brussels on Saturday 4th of February 2023.

What is FOSDEM

From: https://fosdem.org/2023/about/
FOSDEM is a free and non-commercial event organized by the community, for the community.

The goal is to provide free and open source software developers and communities a place to meet to:

  • get in touch with other developers and projects
  • be informed about the latest developments in the free software and open source world
  • attend interesting talks and presentations on various topics by project leaders and committers
  • promote the development and benefits of free software and open source solutions

Participation and attendance is totally free, though the organizers gratefully accept donations and sponsorship

What is the Kotlin DevRoom

The Kotlin DevRoom is a co-located conference-within-a-conference that gives us the opportunity to come together and chat, hack, and share stories about Kotlin usage in the FLOSS ecosystems.

The DevRoom will take place on Saturday 4th of February 2023, at ULB (Campus Solbosch) in Brussels, Belgium.

Join us to enjoy a full day of talks, demos, and interesting discussions about Kotlin!

The Call for Paper

You can find the full call for paper, with details on how to submit, here:
https://github.com/Kotlin-FOSDEM/cfp

Hope to see you there in person!

submitted by /u/cortinico
[link] [comments]

Continue ReadingKotlin DevRoom @ FOSDEM 2023

Kotlin/WASM compiler as library

So i’ve spent some time messing around and getting some basic hello world running using the cli compiler following this tutorial:
https://blog.jdriven.com/2021/04/running-kotlin-in-the-browser-with-wasm/

But i’m trying to work out how I can compile it as a library and then interface with that library in JS. but there doesn’t seem to be many examples.

Here’s an example of something im looking for:

Write an add/sum function in kotlin; compile that to wasm and then call the add function from some .js file. (where the add function takes two number arguments)

Thanx in add-vance

submitted by /u/MattyAlan
[link] [comments]

Continue ReadingKotlin/WASM compiler as library

Why it is not able to access classes from CommonMain in databinding layout in Kotlin Mutliplatform Mobile project ?

In my Kotlin Mutliplatform Mobile project, in Android App side, I am using Databinding

When I try to use a field (String) to bind them with a EditText from a class which is in commonMain module, I am getting “No binding adaptor found” error message

But if I access a field (String) from a class which is in App module itself, it’s working fine

Also, for a databinding variable, when I try to initialise them from Kotlin side, like binding.editService = EditService(), I am getting error like conflicting classpaths.. for editService. But this is not occuring when using App module classes as variable for binding

Why this is happening ? Why it is not possible to access commonMain classes in databinding layout ?

(not a help me post. just asking reason for these limitations?)

submitted by /u/RageshAntony
[link] [comments]

Continue ReadingWhy it is not able to access classes from CommonMain in databinding layout in Kotlin Mutliplatform Mobile project ?

End of content

No more pages to load