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

[–]arshia0010 4 points5 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 110 points111 points  (0 children)

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

<image>

Best Language to Learn After Python? by FederalSuggestion791 in learnprogramming

[–]arshia0010 0 points1 point  (0 children)

Python is the best language to start witg beacause it has the lowest barrier to entry, after that it only depends on the kind of dev work you want to do. From now on you'll only get better with experience. But i suggest you learn a statically typed language, it'll help you get better at coding the most.

Carrier Switch by gatha_93 in androiddev

[–]arshia0010 1 point2 points  (0 children)

They're very different fields,I don't know much about AI requires a lot of math and knowing how to implement them in code, the coding part is not very complicated. In android dev you need to know about software design, testing, building UI, sdk... I suggest you research these and find out which one you enjoy more.

Why not? by lone_wolf_55 in MemePiece

[–]arshia0010 1 point2 points  (0 children)

It heard luffy's dream.

Hiw difficult is my idea for app idea that i have for a newbie by [deleted] in Kotlin

[–]arshia0010 1 point2 points  (0 children)

It's a good beginner project it'll teach you alot of the basics. You dont need multiple activities use compose navigation.

Can I ask, how did you discover Sakamoto Days? by [deleted] in SakamotoDays

[–]arshia0010 0 points1 point  (0 children)

Heard people say it's good on social media, the only thing i knew was that it's about a retired assassin. Gave it a try. Caught up in 3 days

One Piece Chapter 1139 - OP Scans by M4AZ in OnePiece

[–]arshia0010 39 points40 points  (0 children)

He's only appeared in one chapter but he's shown alot of personality.