Recent

Author Topic: An UX improvement  (Read 2361 times)

JacoFeijoo

  • Newbie
  • Posts: 1
An UX improvement
« on: July 16, 2024, 09:36:35 am »
Hi everybody. Here is a newbie.

I was using Lazarus a while and I saw an UX problem. I will explain my steps:

  • a) I do my first test. It is Ok. I save it.
  • b) I do my second test changing some things of first. Nice, I save it in a different file (File v.2)
  • c) Then I do third change and I save it in File v.3
  • d) Some crashes after (bad coding!), I try to come back to version 2 and my project is broken, why?

The explanation is that when I click 'save as', Lazarus doesn't save all archives in file where you are working into (it does if you click 'save all', but you cannot choose a path). Finally, I had .pas, .lpi, .lpr and .lfm in different files and I had to do a lot of things (going to project, inspector, remove archives, add archives, etc.) to solve it.

Simple solution:
To add a 'export all to' or 'choose where to save all'. In that way, I am calm because I know that my file (i.e.) 'version 70' has all archives I consider right and I can erase files 1 to 69.

Thanks in advance.

dseligo

  • Hero Member
  • *****
  • Posts: 1419
Re: An UX improvement
« Reply #1 on: July 16, 2024, 09:58:12 am »
To add a 'export all to' or 'choose where to save all'. In that way, I am calm because I know that my file (i.e.) 'version 70' has all archives I consider right and I can erase files 1 to 69.

Lazarus have 'Publish project' (menu Project/Publish Project) - you could use that for saving your entire project. You can set up directory where this zipped projects are saved. One drawback is that you have to change name after every save because default name is always 'Project1.zip'. Check option 'Open in file manager' so your file manager is opened after saving.

Better option would be to use some version control system (https://en.wikipedia.org/wiki/Version_control). AFAIK, Lazarus doesn't have something like that integrated, you must use external tools.

n7800

  • Full Member
  • ***
  • Posts: 175
Re: An UX improvement
« Reply #2 on: July 16, 2024, 10:53:17 am »
Perhaps a naive question, but I'll ask. Why not just make a copy of the project folder or archive it in a .zip? When I didn't know how to use git, that's what I did.

cpicanco

  • Hero Member
  • *****
  • Posts: 655
  • Behavioral Scientist and Programmer
    • Portfolio
Re: An UX improvement
« Reply #3 on: July 16, 2024, 08:00:37 pm »
Have you tried "Project">"Publish Project" (https://wiki.freepascal.org/IDE_Window:_Publish_Project_Package)?

As mentioned by n7800, I would encorage you to learn how to use git.
Be mindful and excellent with each other.
https://github.com/cpicanco/

 

TinyPortal © 2005-2018