A list of puns related to "Kotlin"
Hi! My name is Vandolf. I am very excited to share with you, and with the entire Android community, what I have been putting my heart and soul into consistently for the past 3 years. My love and gratitude for Android development has kept me motivated to work on this project non-stop. This is my way of giving back to the Android community because this career path has enabled me to break the cycle of poverty in my family lineage. I am not doing this for fame or money. I simply want to give back β€οΈ
So...
The Contacts Provider is huge, complex, and full of rules and behaviors that we have no control over and may differ with every flavor and version of Android. With this in mind, I have built and documented a large set of APIs packaged into a single cohesive library.
GitHub project: https://github.com/vestrel00/contacts-android
Showcasing usage of the Contacts, Reborn library. Not all features are shown.
>I initially made a different video for this post out of excitement but I figured this one is more appropriate π.
Obviously I'm not 100% sure because I'm a beginner. But I'm excited to create apps via Kotlin for mobile.
Other than Google's courses for Kotlin that I have found, are there any online sources to learn the language, especially to the level of proficiency of getting an entry level/Jr Android dev type of job?
I tried NetBeans, and discovered that its Kotlin plugin has been abandoned for years. Then I tried Eclipse, and it did not work at all. I used the latest Eclipse and installed the Kotlin plugin using the in-built software installation feature, but creating a new Kotlin project threw an exception, and manually creating a .kt file also threw an exception. So, unless you are those kind of geniuses who can write code using Notepad, you are pretty much vendor-locked in IntelliJ?
Hey all, just curious for some research at work:
Do you guys know enterprise-grade companies that are using Kotlin server-side (meaning other than Android dev )? If so, to what extent? Would you be willing to share the name (here or in PM)? How is Kotlin being used? I would love to do some research and digging on companies currently adopting Kotlin over a more time-tested tech like Java or .NET! See if I can get my company on board!
I am working on a web app with backend in Java. The project information are:
It was decided that current code should migrate to Kotlin over time, I am trying to get an opinion on this, but from what I learned so far I think it's not worth the effort to go through migration of this scale. The project has a lot of code and design issues itself, developers (4 total) don't have a lot of experience with Kotlin, some none at all.
My questions are:
A empresa Γ© Air tasker. Pode saber quase tudo aqui https://www.airtasker.automic.com.au/news/annualreportfy21
ExperiΓͺncia com tecnologias gerais do Web/cloud 5-10 anos. (Por exemplo JSON APIs, HTTP/HTTPS, routing + request lifecycles, CDNs, serviΓ§os do notificaçáes como APNs/FCM/GCM/Twilio/Pusher, SQL ou NoSQL DBs, responsive UIs, etc)
ExperiΓͺncia com Ruby/Kotlin pode ser menos ou sΓ³ interesse.
A coisa mais importante, do qualquer experiΓͺncia com as tecnologias referidas, ser uma pessoa que trabalha bem com complexidade e ambiguidade.
Salario: ~3-5kβ¬/mΓ©s bruto.
Projeto: Mercado do serviΓ§os locais como Zaask mas internacional (AU/US/UK/SG/NZ). A minha equipa estΓ‘ focado no experiΓͺncia do utilizadors que precisa serviΓ§os
Hi server-siders! π§π½βπ»
We are looking at some new ways to make the Kotlin experience more convenient for server-side developers, but we need your input!
Answer just a few questions for a chance to win a prize π
π π π
https://surveys.jetbrains.com/s3/rd-kotlin-developers-survey
https://preview.redd.it/npfqmkwwegb81.png?width=800&format=png&auto=webp&s=42457f1c0276a1f6d0fc5992a8d1dec1ed691ef2
For context, I'm currently studying Android stuff and reading about savedInstanceState and Bundle, Android's documentation says I should limit the size of data I send to a Bundle to less than 50kb.
Now I know I probably won't exceed that and if I did by a small margin it's probably no biggie, but I still got curious about knowing my parcelized objects' sizes in memory. Curious how this is done in Kotlin.
I want to learn how to make desktop apps. I tried wpf with c# but i hated it. Ive heard of compose and javafx but i dont know any java. Any advice?
Hi guys
I've created a framework: https://github.com/babyfish-ct/kimmer
It brings immer(http://github.com/immerjs/immer) to kotlin/jvm.
>Immer is the winner of the "Breakthrough of the year" React open source award and "Most impactful contribution" JavaScript open source award in 2019.
>
>It's simple and powerful, so I bring its design pattern for kotlin/jvm.
Create the next immutable state tree by simply modifying the current tree
https://preview.redd.it/53bvksdje3c81.png?width=1120&format=png&auto=webp&s=c0a969de47b257e288d560681fc49dc1b1921aff
the input "book" is old immutable object, the output "book2" is new immutable object, Both of them are immutable.
However, "this" of the lambda is mutable and it's draft object.
That why it can Create the next immutable state tree by simply modifying the current tree.
Like the "fork" of linux, unchanged parts are always shared and reused.
https://github.com/Schinzel/js-transpiler
The library translates Kotlin data classes to ES6 JavaScript classes and Kotlin enums to JavaScript objects. It solves the problem of having the same classes server and client side.
For example, you have a data class in Kotlin that represents a person, with first and last name, age and so forth and you want to send this data to a client which is a browser. In JavaScript you could just work with JSON objects. But if you prefer having autocomplete, readily knowing which data is held and other benefits of a more strongly typed environment, then one solution is to write corresponding JavaScript classes. These JavaScript classes are very similar to their Kotlin counterparts, tedious to write, error prone programming because of its repetitive nature and bug prone as you often forget to update the JavaScript classes when the Kotlin classes changes.
At my company we really like the JavaScript "data" classes but really hated writing and maintaining them. So I wrote a library that automates this work. We have been using it for a couple of years and it is stable. It is one of the basic building blocks in the product of my company and is used many times a day to translate over a hundred classes. I find it very practical and also use it in hobby projects.
It has saved me (and my company) a lot of time, prevented a lot of errors and removed tedious programming. I post it here in case someone else might find it useful.
Hey, I'm iOS developer and I have recently joined a project with KMM, the main gripe with it is that it takes at least 10 minutes in Xcode to rebuild project when switching git branches on 2020 i5 based Macbook. I know that new M1 Macbooks are like 2 to 3 times faster than Intel based ones for native apps build in swift, but I cannot find any benchmark confirming that is also a case for KMM (it should be possible to run it without Rosetta now, right?). Have any of you compared these compile times?
What is a go-to GUI toolkit for use with Kotlin? TornadoFX is almost abandoned, JavaFX seems to have a distribution problems on Linux (finding a correct openjdk can be challenging for an end user)...
If I want to build a cross-platform (Windows/Linux) GUI application, which library should I use?
I've been using Express with Typescript and Gin Go for my server side applications, but I'm somewhat dissatisfied with both.
Typescript is awesome, and I've written a data class library to make the development smooth as butter, but it's not as lightweight as I hoped it would be and I keep having to fight the other devs on the team to stop using it like JavaScript (someVar as any
every time the type doesn't match)
Go is okay-ish but I miss generics and null safety. From what I've heard, Kotlin is everything I'd want in a language -- the issue lies with the backend libraries. I've worked with Spring (in Java) and, quite honestly, disliked it -- as it was too abstract for me -- with all the decorators and such.
Ideally I would find something like Express for Kotlin, and Ktor seems to be promising, but I feel like the community seems to be quite small at the time, and a lot of the framework is still experimental.
Could somebody advise?
I just started learning kotlin and i really like it so far but i have a question. How would you briefly describe kotlin to someone who knows js, python and a bit of c#?
In the process of working on my open source project that deals with SQL databases, I have inadvertently created a DSL for constructing a WHERE clause. It would not have been possible without Kotlin magic!
I think I have the public facing API the way I want it. However, I feel like there are some internal improvements that I can make. I want to get feedback on how I've done it and perhaps learn a different way of doing it. So, here it goes! I'll try my best to keep this post a pure as possible so we can focus on the topic at hand. With that in mind, I'll write this like an interview question =)
Given the following SQL database table of fruits,
id | name | color | count |
---|---|---|---|
1 | apple | red | 187 |
2 | banana | yellow | 12 |
3 | orange | orange | 6 |
4 | pineapple | yellow | 3 |
where "id" (number), "name" (text), "color" (text), and "count" (number) are the columns, build a type-safe DSL for constructing WHERE clauses that can generate strings such as...
"((name LIKE '%a%') OR (color IN ('yellow', 'red'))) AND ((count > 10) OR (count < 5))"
The string must be evaluated lazily, only when the toString
function is called.
Using what I built, the above WHERE string can be generated using the following code,
val where: Where<FruitField> = where {
((Name contains "a") or (Color `in` setOf("yellow","red"))) and (Count { greaterThan(10) or lessThan(5) })
}
Here is the simplified code that makes that work,
// Fields/column definitions --------------
sealed interface Field {
val columnName: String
}
class FruitField(override val columnName: String) : Field
object FruitFields {
val Id = FruitField("id")
val Name = FruitField("name")
val Color = FruitField("color")
val Count = FruitField("count")
}
// Where binary tree structure -----------------
// The type [T] is not exactly "used" in this class itself. Rather, it is used for adding type
// restrictions when constructing instances at compile time.
class Where<out T : Field> private constructor(
private val lhs: LeftHandSide,
private val operator: Operator,
private val rhs: RightHandSide,
) {
// This provides us the base case when using recursion to traverse the binary tree.
// This is a leaf node.
internal constructor(lhs: FieldHolder, operator: Operator.M
... keep reading on reddit β‘I would like to see how widespread kotlin/js is. Is it worth introducing into a mainstream project or not?
I am also interested in why people choose/like to use kotlin/js over react or angular+typescript (so comments are welcome).
Also do you use it together with React or something else?
Thanks
By default, Kotlin/native does not come with file based IO similar to java.io or java.nio, but allows C functions from the platform.posix.* package. Is there some open source library available for provide similar API like java.nio which internally uses, but hides the use of platform.posix from teh library user? Is Jetbrains planning to do something like that?
Hey, I am looking for projects that I can contribute to which if possible have positive impact on our society.
I guess I should be looking for open source projects?
Any hint or direction where/how I should be looking?
Thank you.
Hey I'm new to CS and was wondering if someone can help out!
I don't wanna learn something so I get an easier grade, rather I wanna learn something that I can use in the future and stand out.
I know Java has been around for years but Kotlin is not Google's preferred android language
So, should I choose Kotlin or Java?
https://github.com/LukasForst/katlib
Allow me to introduce you to Katlib - collection of extension functions me and my colleges wrote for last five years of server side Kotlin development. It contains around 75 extensions or functions that we were missing in the Kotlin standard library during the time.
Fully opensourced, with test coverage between 60-70% and a no dependency.
Ever wished for something better than YAML when authoring your workflows? Especially once your workflows get more complex, the power of a proper programming language may come in handy. That's why I'm giving this idea a try:
https://github.com/krzema12/github-actions-kotlin-dsl
The idea is simple: using Kotlin API, describe your workflows and have the library generate the YAML for you. To keep the two files (Kotlin source and output YAML) in sync, there's runtime consistency check in place.
Early adopters feedback greatly appreciated! Still far from ideal in terms of e. g. output YAML formatting, typing or action wrappers coverage, but IMO already can bring some benefits.
For reference: https://kotlinlang.org/docs/equality.html#structural-equality
There's no difference between == and === when comparing against null, anyway. So, it seems like === should be deprecated the same way that comparing "primitives" (Int, String, etc) and value/inline classes is.
I wonder if this is just vestigial or if there's some actual reason that the Kotlin designers don't want to deprecate the === equality syntax.
I wanted to try it out to see what can I achieve with it but things seems super confusing to me, for now I'm just trying to make sense of all of this.
So first, there is Kotlin Native, which if I understand correctly allow to compile Kotlin code for native, not running inside the JVM, which seems insanely good, I've done a lot of C and C++ in the past but if I can just write Kotlin code and run it natively be sure I won't ever write C or C++ ever again.
Using IntelliJ, you can also create a Kotlin Multiplatform Library, which allow you to write a library in Kotlin, targeting the JVM (no Android?), js and native using Kotlin Native. Not sure how this work but why not, sound good to me.
But those are for libraries, to make an app you may want to have an UI for it, good news Compose Multiplatform reached 1.0 stable a few days ago. Wait this does not have anything to do with Kotlin Multiplatform?
Using IntelliJ, you can create a Compose Multiplatform Application running on JVM (Windows, Linux, MacOS) and Android, but no iOS, since it run on a java virtual machine. Sad, if it was running on iOS too I would just create all my apps using this framework, but for now the use cases are very limited.
You can also create a Compose Web Application, but no Multiplatform + Web application? Why not? I don't know.
Feel free to share your thoughts or correct me if I said something wrong. As I said I'm just trying to make sense of all of this in my head.
We're working on a possibility of compiling Kotlin into Python, just like it's now possible for JVM, JS and native. Its now community-driven. Any help to push it forward greatly appreciated.
Recent progress update: https://discuss.kotlinlang.org/t/idea-python-backend/19852/13
Project's README: https://github.com/krzema12/kotlin-python/blob/python-backend/python/README.md
My main goals is to make the code shorter and easier to maintain, understand and read for a broader spectrum of people, which I think is the one of the goals of Monero in the first place.
I feel that C++ is not the most friendly language, and its benefits don't largely outweight its difficulties as of today in 2021.
Also, I believe I heard the other day that there is no other implementation of the Monero Core besides the official one.
What do you think?
EDIT:
Statistics regarding the official Core's codebase:
4523 text files.
4304 unique files.
582 files ignored.
github.com/AlDanial/cloc v 1.74 T=185.29 s (21.4 files/s, 4941.9 lines/s)
---------------------------------------------------------------------------------------
Language files blank comment code
---------------------------------------------------------------------------------------
C++ 479 29891 29371 181484
Qt Linguist 19 79 0 118934
C/C++ Header 688 19737 40774 118560
JSON 1907 16 0 100353
C 264 7268 10145 73926
Markdown 109 11884 0 37721
Assembly 54 17574 45434 17725
Python 94 3762 4857 15298
CMake 99 1100 2654 5829
Bourne Shell 61 429 828 4975
make 74 714 357 3097
MSBuild script 13 0 0 2189
Protocol Buffers 19 289 1259 1867
YAML 19 137 116 1277
m4 4 68 49 534
XML 8 11 7 390
Kotlin 12 97
... keep reading on reddit β‘I have a question regarding how to deal with callbacks in Kotlin. A bit of context - I am using LWJGL and typically (say in a Java context), you would setup callbacks for keyboard / mouse events by providing a static method to one of the glfw functions.
glfwSetKeyCallback(windowPtr, KeyListener::keyCallback);
This does not appear to be possible in Kotlin. So what is an equivalent? I would like to encapsulate the code in a separate class - because the callbacks can be reasonably complex.
Thanks!
Just started learning Kotlin a moment ago, and I really need some help!
In the main(first) window, I want it to show a number, and this number should increase one per second automatically, and when I jump to another window, this number should still keep increasing. I stuck this question about two days, though just wanted to practice textview at first
thanks anyway
Hi everyone, I am a 28 year old IT student who is graduating soon. I've been personally learning how to code in python, java, and kotlin for a few years or so, but none of these skills really work outside of the IDE. I am LEGALLY blind but not totally blind, so reading is hard but not impossible for reference.
So, for example, I LOVE dnd but cant see my dice when i roll them and the apps out there kind of suck for my purposes. I wanted to develop a VERY basic android studio Android app that uses "rand" to generate given numbers and assign them to different images based on their results, probably with an elif loop or something. Cool, my code works, it accepts input from the user using a listener for input. Now how do I turn *this* into a basic application? I watched a million tutorials on android studio, but they all seem to be outdated or just poorly written/recorded.
Please help guide me here guys. Thank you
Looking for accounts who post only about Kotlin, like language features, snippets, tips, gotchas, libraries etc.
I am working on a web app with backend in Java. The project information are:
It was decided that current code should migrate to Kotlin over time, I am trying to get an opinion on this, but from what I learned so far I think it's not worth the effort to go through migration of this scale. The project has a lot of code and design issues itself, developers (4 total) don't have a lot of experience with Kotlin, some none at all.
My questions are:
I am working on a web app with backend in Java. The project information are:
It was decided that current code should migrate to Kotlin over time, I am trying to get an opinion on this, but from what I learned so far I think it's not worth the effort to go through migration of this scale. The project has a lot of code and design issues itself, developers (4 total) don't have a lot of experience with Kotlin, some none at all.
My questions are:
Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.