Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
code management
#1
i was wondering how you normaly have to work with the code files.

i gonna make a big code whit different files, where i have to work on a lot of times.
when i want to add (or change) something to my code, how i gonna do that ?
1 - plug in the pico to my laptop and make the changes on the pico ? and make a copy on the laptop.
2 - make the changes on the laptop en "down load" the files to the pico ?
i am wondering how this normaly goes ?

tnx. in advance.
Reply
#2
You'll have more success asking this question on a Raspberry Pi Pico forum.

https://forums.raspberrypi.com//viewforum.php?f=143

I've never used a Pico, nor any Raspberry Pi product, but I do some embedded controller work. I use VS Code on my laptop and do cross development of code residing on the embedded controller. Take that as a very uninformed opinion.
Reply
#3
A few general thoughts:

1. Use version control (e.g. Git) to keep track of your changes.

2. Write automated tests so that you can make sure your code continues to work as you change it (see, e.g.
https://realpython.com/python-testing/).
Gribouillis and buran like this post
Reply
#4
As mentioned by @ndc85430
1. Use version control system. Git is a popular one, incl. there are several popular options for cloud integration
Here you can start familiarize with git
https://git-scm.com/book/en/v2

Popular cloud platforms:
Github.com
Gitlab.com
Bitbucket

There is also nice integration with popular IDEs like VSCode and PyCharm

As for the tests- pytest is popular framework. There are others too, incl. ones in standard library. You can google it for more details
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Keep getting Session management error when running imshow in pycharm pace 0 2,130 Mar-25-2021, 10:06 AM
Last Post: pace
  Can Python Do This? Asset Management mbaker_wv 4 2,259 Oct-28-2020, 01:37 PM
Last Post: mbaker_wv
  User management library? MuntyScruntfundle 0 1,486 Jan-14-2020, 02:01 PM
Last Post: MuntyScruntfundle
  Too big CSV file management CaptainCsaba 3 2,227 Sep-10-2019, 05:52 AM
Last Post: CaptainCsaba
  flux management chris_thibault 3 2,873 Sep-10-2018, 10:23 AM
Last Post: chris_thibault

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020