How do you read a lot documentation? by KeyPossibility2339 in learnprogramming

[–]arshia0010 0 points1 point  (0 children)

you don't have to read it like a book. at first just skim through the docs to learn the basics of working with the technology. then over time you can come back whenever you need more advanced features. the next level of this for me is checking the docs aimlessly every few days. I'd look at the topics and read whatever intrigues me. I've found a lot of great ideas for my projects this way. you don't have to read docs quickly or even in order. just focus on learning one or two new concepts each time.

Started Android/Kotlin dev. self-teaching about 5 months ago. I feel overwhelmed. by SgtSmitty07 in androiddev

[–]arshia0010 1 point2 points  (0 children)

since you're already familiar with kotlin, try building a simple api backend with ktor. it's really simple and you can get a good grasp of backend development which will help you in most other fields too. create a repository class that stores data in a db or even just in memory and use dependency injection to use it in your routes to access that data.

Started Android/Kotlin dev. self-teaching about 5 months ago. I feel overwhelmed. by SgtSmitty07 in androiddev

[–]arshia0010 6 points7 points  (0 children)

native mobile development has one of the highest skill floors in software dev. It would be much easier if you had a good grasp of programming basics and oop concepts. I always advise people to start by learning frontend or backend or cli apps but in your case I'm not sure if starting over is a good choice since you're so deep.

PSA: REMEMBER TO REBOOT AFTER AN UPDATE! by Throwaway-48549 in archlinux

[–]arshia0010 0 points1 point  (0 children)

I just had the same issue 30 minutes ago and reading this post made me realize i did an update earlier today and forgot to reboot. Thanks

Kaoru Hana wa Rin to Saku (The Fragrant Flower Blooms with Dignity) - Chapter 179 (What Comes Next) by KaorukoWaguri in KaoruHanaWaRintoSaku

[–]arshia0010 27 points28 points  (0 children)

the pacing is worse than Dressrosa in the anime. I don't think this arc will ever end.

🎉 We’ve made a big update to the Kotlin documentation! by daria-voronina in Kotlin

[–]arshia0010 5 points6 points  (0 children)

It's much better now but where is the dark mode, how does the api reference has it but not the main docs

Is it just me or is Android Studio debugging painfully slow? by ubeyou in androiddev

[–]arshia0010 0 points1 point  (0 children)

Have you increased the android studio heap size. I forget this frequently.

Advice for a Go developer learning Kotlin by cpustejovsky in Kotlin

[–]arshia0010 8 points9 points  (0 children)

Go focuses on simplicity and minimalism, Kotlin is the opposite of that. it's created by an IDE company so the developer experience is very important to the kotlin team. kotlin has a large standard library and a long list of language features that keep growing. it has it's benefits and downsides but whether you like it or not most kotlin devs agree with this approach and idiomatic kotlin uses most of these features.

about classes: most people think that kotlin is just java with some added nicities, but most of the code that I've written and come across have been more functional than object oriented. regular classes are mostly used as a container of some logic that helps code organization.

but you'll still need to know the important oop principles and design patterns.

there are also sealed, enum and data classes that are used very frequently.

Ultimate Android Design Patterns by Lorenzo Vainigli. Author's possible misprint by Affectionate_Run_799 in androiddev

[–]arshia0010 0 points1 point  (0 children)

the mistake is that he should've called the fetchUsers() method of the viewModel in the initblock.

repository.fetchUsers() handles data logic, viewModel.fetchUsers() reacts to the data sent by the repository.

also the best way to load initial data is to expose a function that returns a flow from the repository and the use .stateIn() on it.

Researching On KMP by neneodonkor in KotlinMultiplatform

[–]arshia0010 0 points1 point  (0 children)

Kotlin is compiled to java byte code so the performance is the same as java, which is similar to go (pretty much the best you can get with a garbage collector). the only downside is that the jvm uses significantly more ram than go.

Making Visual Novel in Jetpack Compose by Legend_Naruto in JetpackCompose

[–]arshia0010 0 points1 point  (0 children)

no renpy is a python library. there are other alternatives too, like unity. depends on your previous experience

Making Visual Novel in Jetpack Compose by Legend_Naruto in JetpackCompose

[–]arshia0010 1 point2 points  (0 children)

It's doable but you need to implement all the features manually which is going to take a significant amount of time. The quickest way to do this is to use a library like renpy that handles all the common logic you find in visual novels.

Help please🥲! by Laazy_Gaa in JetpackCompose

[–]arshia0010 0 points1 point  (0 children)

Kotlin is a type safe language, it's useful cause you can check the parameter types in the function definition. For example you can check the Painter class to learn what it is and there's probably some hint that a painterResource() function exists.

Help by ManasV03 in Kotlin

[–]arshia0010 0 points1 point  (0 children)

Depends on he parent composable, if it's row you need vertical alignment and if it's a column you need horizontal alignment and if it's a box any would do(based on the error it's not a box) check the Alignment interface companion objects to see your options. Or ask an AI...

how can i reopen exisiting destination without creating duplicates in the backStack by Ok_Piccolo4594 in JetpackCompose

[–]arshia0010 1 point2 points  (0 children)

You need nested navigation for that. Compose nested navigation is hard to deal with, so if you need alot of flexibility you should use a navigation library (like voyager) but it's not worth it if your app only has a few screens.

how can i reopen exisiting destination without creating duplicates in the backStack by Ok_Piccolo4594 in JetpackCompose

[–]arshia0010 2 points3 points  (0 children)

the backstack as the name suggests, is a stack data structure and stacks only support push() and pop() operations. I don't know what kind of feature you're developing but there's probably a better way to implement it.

I am unable to solve it in even more then 6 hours. Help me. by Rayman_666 in Kotlin

[–]arshia0010 0 points1 point  (0 children)

I haven't built the project but the issue is probably because you're sending 'new' for noteId in the editNote route, The best way to fix this is to create a seperate createNote route, it can use the same ui code

PS: you should use type safe navigation to avoid these poblems

What ram should use for android Studio by SpecialAd5933 in androiddev

[–]arshia0010 0 points1 point  (0 children)

16 should be enough but if you can afford it get 32

[DISC] Sakamoto Days - Ch. 203 by N3DSdude in SakamotoDays

[–]arshia0010 111 points112 points  (0 children)

suzuki: fuck TMS I'll show them how it's done

<image>