Fork me on GitHub
#cljsrn
<
2016-06-05
>
debug03:06:25

Already did the patching with re-natal enable-source-maps, but still only JS code is displayed

rmuslimov19:06:13

May I asked a dumb question: I just started with re-natal, and generate template using Rum. src folder has android and ios subfolders, with completely same core.cljs inside - why?

artemyarulin19:06:55

so you may develop two versions of your app - android and ios independently and (optionally) create and use some shared code. UI layer is likely would be different

rmuslimov19:06:19

yep, but why just put somewhere and import in ios.core and android.core

rmuslimov19:06:24

I guess it will make more sense for beginners -> you may use same code for both platforms, and add some platform-specific code if needed

artemyarulin19:06:57

You are not the first one with this question 🙂 it’s up to @drapanjanas, I remember we were discussing it some time ago, but don’t remember what was a result

artemyarulin19:06:41

I guess original assumption was that developer shares quiet a small part of code between platforms, but it turns out that usually about 70% is shared

rmuslimov19:06:25

got it, thanks for explanation 👍

artemyarulin19:06:43

well I’m not actually that confident with re-natal, so I may be wrong

savelichalex19:06:26

@rmuslimov: I think this is because first time you could do only for one platform) beginners doesn’t do it for both at once)

artemyarulin19:06:59

oh actually it makes a lot of sense

rmuslimov19:06:34

btw, copy-pasting code was never the best strategy

artemyarulin19:06:36

well I guess once you know the basics - it would’n be a big deal to change program structure and share a lot

artemyarulin20:06:10

oh - another reason that RN itself generate project in the same way - index.ios.js and index.android.js

artemyarulin20:06:35

Not a reason I mean, but re-natal just do the similar

drapanjanas22:06:15

@rmuslimov: another reason was ease of experimentation. You can just try out platform-specific components right threre in one place and you can change whole ui code for the platform. Of course, when you get familiar with all the things and want to build real app you do it whe way best for you.

rmuslimov22:06:52

ok, I understand, thanks for your answers!

rmuslimov22:06:40

@drapanjanas: and thanks for this awesome project you created it took just half of hour to get everything working!