• 0 Posts
  • 28 Comments
Joined 1 year ago
cake
Cake day: June 28th, 2023

help-circle



  • Hi, here is my humble personal take. I just find and watch any tutorials that I need. At the end of the day, my lessons are mostly learnt by doing my own projects. You are going to like what you like anyway, if you like a certain tutor you will find out eventually. I personally like tutors who teach me what others do not, and these tutors are not big, they just upload a video or two every now and then. I search by most recent, or specific terms. Most mainstream ones like you have mentioned only teach surface stuff, not all every video, but yea, you get what I mean.
















  • Lemmy share my story of trying to use ipad to code then decided not to. My reason back then was so I could code anywhere, and stay coding while in bed or living room or dining table. I can’t really remember the names of the apps I’ve used, but I have tried Replit, Codespaces, Google Colab, CodeSandbox, even thought of setting up code editor on vps, remote desktop…

    What I really ended up doing is… buy a tablet monitor with a friggin long hdmi cable

    My problem is solved, my butt is not stuck on the chair, my neck and shoulders thank me. My wallet will thank me soon, since the upfront cost is higher. I have the computing power of a desktop and my files are already there, not to forget better privacy as I do not have to pay for subscription services with my card and don’t involve cloud services. The only downside with this approach is I can’t code outside of the house without an internet connection.

    Laptops can achieve the same, but I find it heavier since I want to lie on my back. Sorry if this is out of topic, since you ask about ipad and I said I ended up using a monitor. Also, I am currently thinking of portable mini pc or windows tablet but it’s more expensive than a small monitor. Please do update if you found your solution, I might try it.


  • Hello, I just came across this post while searching on lemmy, I hope you don’t mind my late comment on this post, so I can contribute to Lemmy. I have read your post multiple times, but if it’s not the answer you’re looking for, then I apologise in advance.

    Messed up node modules, because I used npm and yarn

    Delete node modules and do npm i or npm ci or yarn add.

    Order

    I usually do venv first, then I do Django backend, then React Native Expo frontend. However, the order itself isn’t that important, because the frontend and backend folders are separated. Doing backend then frontend is just more convenient since API is used.

    For example, you deploy Django first then you compile Expo and you will see your API fetches. If you decide to do Expo first then Django it is still fine, just when you open your Expo app, you won’t see your API stuff from Django until you deploy Django.

    A heads up that it’s a separate story if you use Docker, which I think you aren’t, since Docker is not mentioned.

    Path

    • I use .env file for React Native

    REACT_APP_API_URL = ‘http://127.0.0.1:8000

    • I use relative paths (src, import) in Django and React Native

    ‘./relative-folder/relative-photo.jpg’

    • I use dynamic path in Django

    os.path.join

    It is generally advised not to use hardcoded paths, try to avoid if possible because whilst it works when you are developing locally, using hardcoded paths may not work during deployment. For Expo using hardcoded paths should still work.