Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:45 27 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Using GitHib for projects?

Author Message
karlelch

Senior Member

Joined: 30/10/2014
Location: Germany
Posts: 172
Posted: 05:39pm 27 Aug 2023
Copy link to clipboard 
Print this post

Hi,

seeing great projects like, for example, this one with the ArduCam spread across several threads and really hard find (again), I am often wondering why not more people use platforms like GitHub?
I am just curious.

Best
Thomas
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4043
Posted: 05:49pm 27 Aug 2023
Copy link to clipboard 
Print this post

  karlelch said  I am often wondering why not more people use platforms like GitHub?
I am just curious.


I'm a big fan of git personally, but (with some reason) it doesn't so much have a learning curve as a learning vertical ice sheet. And using GitHub or GitLab without knowing something about how git works is a good way to make a mess.

Best wishes,

Tom
Edited 2023-08-28 03:52 by thwill
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 05:54pm 27 Aug 2023
Copy link to clipboard 
Print this post

  karlelch said  why not more people use platforms like GitHub


Check out the Photos thread to get an idea of the typical age of the folks here.

This particular old dog has had trouble jumping through the github hoops (but those who have become familiar with it through daily work find it very helpful).
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 06:23pm 27 Aug 2023
Copy link to clipboard 
Print this post

I never got anything to load/work off git hub except linux terminal script-- monkey see from a guide. it's free though
 
Gizmo

Admin Group

Joined: 05/06/2004
Location: Australia
Posts: 5078
Posted: 11:31pm 27 Aug 2023
Copy link to clipboard 
Print this post

I loath Github.

A simple function or piece of simple code becomes a behemoth of unnecessary folders and files. I recently needed a function to swap out words in a DOCX file, every search pointed to a github library to do just that. This library contained over 1000 files in a mess of folders.

Unfortunately, thanks to the likes of Github, this is the way a lot of new programmers work today, everything is a library on Github. Bloatware.

I ended up using chatGPT to help me replace this library with about 10 lines of code.

Glenn
The best time to plant a tree was twenty years ago, the second best time is right now.
JAQ
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 12:07am 28 Aug 2023
Copy link to clipboard 
Print this post

  thwill said  ...it doesn't so much have a learning curve as a learning vertical ice sheet.


LOL!!!      
Well, quite.
Smoke makes things work. When the smoke gets out, it stops!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9126
Posted: 07:19am 28 Aug 2023
Copy link to clipboard 
Print this post

I know Tom despairs of my approach but you can use github as a simple file dump.
I just create a project using the browser (repositories/new) and then upload files with the upload file button. When you want to update just use the upload file again and it overwrites what is there. I never bother with releases or use any github application. If you want a file off github just use the code/download zip button.
I do all my versioning locally and never reserve files on github or anything like that. I never ever use or look-at the moronic github differences mechanism but when you upload files like I do it automatically creates it.
Used this way github is trivial and achieves the objective of making the files available to the world as well as being some sort of offsite backup for free
Edited 2023-08-28 17:22 by matherp
 
karlelch

Senior Member

Joined: 30/10/2014
Location: Germany
Posts: 172
Posted: 07:46am 28 Aug 2023
Copy link to clipboard 
Print this post

  matherp said  I know Tom despairs of my approach but you can use github as a simple file dump.
[...]
Used this way github is trivial and achieves the objective of making the files available to the world as well as being some sort of offsite backup for free


Yes, this is what I mean. For simple project, that's exactly what I use.
And it is easy to add documentation and keep it up to date.

For more complex projects, in particular, if other people contribute, I use the GitGub tool for Windows, which hides a lot of the complexity.
 
damos
Regular Member

Joined: 15/04/2016
Location: Australia
Posts: 63
Posted: 12:44am 29 Aug 2023
Copy link to clipboard 
Print this post

Github really takes the pain out of version control and works brilliantly on its own, although it can be painful in a team environment, although SVN and VSS are also really annoying for it.

You can Github a single text file as a project, so it doesn't need to be complex at all.

What Github does is version control, which is brilliant when you accidently break something and can then see every version of the file you ever created. It also allows you to create branches so you play around with something but not commit it to the main branch, so you can experiment without breaking things. Later on you can decide that you like feature X of the branch but don't want anything else, and it allows you to merge just that feature into the main project.
 
damos
Regular Member

Joined: 15/04/2016
Location: Australia
Posts: 63
Posted: 12:52am 29 Aug 2023
Copy link to clipboard 
Print this post

If you use an IDE like Visual Studio Code (and if you are not, why not? It is free, works on Windows, Linux and Mac and is way better than Notepad++ or other editors). You can install the plugins for Github and you can then see a list of all the files and folders in your project and what has changed.

When you click on a modified file it does a side-by-side comparison between to 2 files showing the changes. It also allows you manage Github pushes and pulls from inside the environment. Once configured, you tend to forget about Github and the files just appear in your environment.

When you go to the big end of town and hook Github to Azure, it becomes completely amazing. Just merely pushing your changes to your branch can configured to deploy on the cloud instantly.
 
retepsnikrep

Senior Member

Joined: 31/12/2007
Location: United Kingdom
Posts: 131
Posted: 04:01pm 29 Aug 2023
Copy link to clipboard 
Print this post

I wanted to top myself after being forced to try and use GitHub by a forum user on another site who has a project running on it.
He kept going on about forks and other stuff and then my head exploded.
I gave up completely and agree with the others who say the learning curve is far too steep for normal humans.
Gen1 Honda Insights.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3802
Posted: 05:55pm 29 Aug 2023
Copy link to clipboard 
Print this post

  Gizmo said  I loath Github.

A simple function or piece of simple code becomes a behemoth of unnecessary folders and files.

That's not really github but someone using it a particular way (such as an IDE which generated a load of code & the user just uploaded the whole lot).

There's never going to be a fix for a lazy user uploading way too much. Happened before github...

John
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 05:58pm 29 Aug 2023
Copy link to clipboard 
Print this post

Oh, I love it's super-easy and incredibly intuitive web interface!

Not.


I've never even attempted to figure out how it works. Not really worth it for the very few projects I play with.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3802
Posted: 01:53pm 30 Aug 2023
Copy link to clipboard 
Print this post

  Mixtel90 said  I've never even attempted to figure out how it works. Not really worth it for the very few projects I play with.

That's fair - it's designed to cope with potentially large/changing projects. It's not really meant for just uploading one or a few files.  (It'll do it, but it's overkill and takes "a bit" of messing around just to do that.)

There are (or were) simpler sites where you'd just dump files and/or do very simple revision-handling.

I suppose when someone wants just a function to do some specific thing then github is probably not the place to look first.

The clue is "git" in "github" - it's intended for those who choose to use git.

John
Edited 2023-08-31 00:16 by JohnS
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 03:09pm 30 Aug 2023
Copy link to clipboard 
Print this post

my freebasic on rpi had this in the build but not a clue
cd fbc
git pull
make
sudo make install
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3802
Posted: 03:23pm 30 Aug 2023
Copy link to clipboard 
Print this post

  stanleyella said  my freebasic on rpi had this in the build but not a clue
cd fbc
git pull
make
sudo make install

I think that's missing some context / other code (shell file(s) probably).

John
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 08:59pm 30 Aug 2023
Copy link to clipboard 
Print this post

  JohnS said  
  stanleyella said  my freebasic on rpi had this in the build but not a clue
cd fbc
git pull
make
sudo make install

I think that's missing some context / other code (shell file(s) probably).

John

It was a guide to freebasic on rpi and there was a lot and that was the end bit that mentioned git. I hate linux, the nice ide hides needs rocket science imho
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 479
Posted: 05:12am 31 Aug 2023
Copy link to clipboard 
Print this post

I've been working with git repos for more than 10 years. All my relevant code is in GitHub.

@stanleyella git is multiplatform, is not a Linux thing.

git pull
is just to fetch the data from the remote repo and rebase it in you local branch. However it will only work if your source has been cloned from the remote repo or been properly initialized with git init
Edited 2023-08-31 15:13 by LeoNicolas
 
karlelch

Senior Member

Joined: 30/10/2014
Location: Germany
Posts: 172
Posted: 07:20am 31 Aug 2023
Copy link to clipboard 
Print this post

  LeoNicolas said  I've been working with git repos for more than 10 years. All my relevant code is in GitHub.


Yes, mine, too. Also for small projects, such as this. Having all relevant parts with basic documentation in one easily accessible place (safe from disasters that can stike the own PC), is very satisfying - at least for me. For this, the web interface is often sufficient.

In any case, I think this was my most successful post so far  
Interesting discussion.

Best
Thomas
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 07:35am 31 Aug 2023
Copy link to clipboard 
Print this post

Sixth post down on this page might interest those who would like FreeBASIC on a Raspberry Pi. I've not tested it, just found the link.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024