git isn't some God given tool.
IDE or a set of tools for chess coding
Moderators: hgm, Rebel, chrisw
-
- Posts: 511
- Joined: Sat Mar 02, 2013 11:31 pm
Re: IDE or a set of tools for chess coding
-
- Posts: 1846
- Joined: Tue Apr 19, 2016 6:08 am
- Location: U.S.A
- Full name: Andrew Grant
Re: IDE or a set of tools for chess coding
Certainly not. But duplicating your source directories, and then renaming it something else, is grade-schoolers manage versions of their book reports. You'll never keep track of everything meaningfully that way. Git and svn are the most widely accepted. But you can find alternatives if you don't want to learn them.
Friendly reminder that stealing is a crime, is wrong, and makes you a thief.
"Those who can't do, clone instead" - Eduard ( A real life friend, not this forum's Eduard )
"Those who can't do, clone instead" - Eduard ( A real life friend, not this forum's Eduard )
-
- Posts: 1846
- Joined: Tue Apr 19, 2016 6:08 am
- Location: U.S.A
- Full name: Andrew Grant
Re: IDE or a set of tools for chess coding
To answer the actual thread:
In the Windows days, I mostly got by with notepad++, git-bash, and the mingw tool chain.
Nowadays, I use Windows as my primary desktop just because of the difficulty in moving everything to Linux, but my entire dev env is in various WSL instances, usually running Ubuntu or Alpine Linux. Here you get access to all your standard linux utilities for your troubles... gdb, valgrind, better profilers, etc.
I still use Notepad++ though. If I was on a full linux system, I'm not sure what IDE I like. Gedit or Geany is a safe start. But really I need two important features, which I don't know where they exist in others tools: [1] (Easy to find) multi-line editing support, just by holding alt. [2] (Hard to find) The ability to fold/unfold the N-th level of code. In np++ thats alt+N and shift+alt+N. Without that, its too hard to take on massive files without a full on IDE.
In the Windows days, I mostly got by with notepad++, git-bash, and the mingw tool chain.
Nowadays, I use Windows as my primary desktop just because of the difficulty in moving everything to Linux, but my entire dev env is in various WSL instances, usually running Ubuntu or Alpine Linux. Here you get access to all your standard linux utilities for your troubles... gdb, valgrind, better profilers, etc.
I still use Notepad++ though. If I was on a full linux system, I'm not sure what IDE I like. Gedit or Geany is a safe start. But really I need two important features, which I don't know where they exist in others tools: [1] (Easy to find) multi-line editing support, just by holding alt. [2] (Hard to find) The ability to fold/unfold the N-th level of code. In np++ thats alt+N and shift+alt+N. Without that, its too hard to take on massive files without a full on IDE.
Friendly reminder that stealing is a crime, is wrong, and makes you a thief.
"Those who can't do, clone instead" - Eduard ( A real life friend, not this forum's Eduard )
"Those who can't do, clone instead" - Eduard ( A real life friend, not this forum's Eduard )
-
- Posts: 406
- Joined: Sat May 05, 2012 2:48 pm
- Full name: Oliver Roese
Re: IDE or a set of tools for chess coding
You probably misread what i have written about git. It is not that i wanted to claim that it is insanely good, but it is the "de facto" standard for every open source developer. And i see, you are referencing some github url, so you are using it yourself! Thats all i wanted to tell on a starter question.
-
- Posts: 511
- Joined: Sat Mar 02, 2013 11:31 pm
Re: IDE or a set of tools for chess coding
Yes for open source developer. I just share some code on github that's about it. Vim with persistent undo + vimdiff is good enough "version control system" for me. I like to keep things as simple as possible. If you are using Linux you are not cloning the massive 100s of TiB git history. You will take the 50MiB zip package.BeyondCritics wrote: ↑Tue May 07, 2024 3:56 pmYou probably misread what i have written about git. It is not that i wanted to claim that it is insanely good, but it is the "de facto" standard for every open source developer. And i see, you are referencing some github url, so you are using it yourself! Thats all i wanted to tell on a starter question.
When I was developing 8.2 I made tons of changes and some strange bug appeared. Instead of mastering some gdb tool. I simply took 8.1 as base. Then w/ vimdiff I only imported the good stuff. And then 8.2 kept beating 8.1 and the bug was gone. Very simple.
-
- Posts: 406
- Joined: Sat May 05, 2012 2:48 pm
- Full name: Oliver Roese
-
- Posts: 1846
- Joined: Tue Apr 19, 2016 6:08 am
- Location: U.S.A
- Full name: Andrew Grant
Re: IDE or a set of tools for chess coding
This strictly implies you are using git wrong. Git repos are very small, unless you are committing things that don't belong there, like engine binaries, massive data files, etc.If you are using Linux you are not cloning the massive 100s of TiB git history. You will take the 50MiB zip package.
Friendly reminder that stealing is a crime, is wrong, and makes you a thief.
"Those who can't do, clone instead" - Eduard ( A real life friend, not this forum's Eduard )
"Those who can't do, clone instead" - Eduard ( A real life friend, not this forum's Eduard )
-
- Posts: 30
- Joined: Wed Dec 01, 2021 12:23 pm
- Full name: Doruk Sekercioglu
Re: IDE or a set of tools for chess coding
I prefer my 18MB git repository over multiple 50MiB zip packages.JohnWoe wrote: ↑Wed May 08, 2024 8:16 pm Yes for open source developer. I just share some code on github that's about it. Vim with persistent undo + vimdiff is good enough "version control system" for me. I like to keep things as simple as possible. If you are using Linux you are not cloning the massive 100s of TiB git history. You will take the 50MiB zip package.
-
- Posts: 12617
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: IDE or a set of tools for chess coding
Revision control is a very good idea.
Many times, I have had chess program authors send me an email asking me for their source code.
Sounds corny, but maybe twenty times it has happened.
I used to compile programs for lots of people like Jim Ablett so I had a copy of the source for many programs.
Sometimes they would make a change and not know how to recover.
Sometimes they would get mad, delete their source, and then cool down.
Sometimes there was a hardware problem on their end.
Anyway, source control is a godsend. You not only have a stable way to store your code, but you can do versioning very easily, track changes, integrate with bug tracking, work cooperatively, formalize releases, branch, merge and the list goes on and on.
I would never give up source code control systems of some kind, and git is becoming dominant today.
Quite frankly, the sooner you become proficient with git, the sooner you will thank your lucky stars that you did.
IMO-YMMV
Many times, I have had chess program authors send me an email asking me for their source code.
Sounds corny, but maybe twenty times it has happened.
I used to compile programs for lots of people like Jim Ablett so I had a copy of the source for many programs.
Sometimes they would make a change and not know how to recover.
Sometimes they would get mad, delete their source, and then cool down.
Sometimes there was a hardware problem on their end.
Anyway, source control is a godsend. You not only have a stable way to store your code, but you can do versioning very easily, track changes, integrate with bug tracking, work cooperatively, formalize releases, branch, merge and the list goes on and on.
I would never give up source code control systems of some kind, and git is becoming dominant today.
Quite frankly, the sooner you become proficient with git, the sooner you will thank your lucky stars that you did.
IMO-YMMV
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
-
- Posts: 2832
- Joined: Wed Mar 10, 2010 10:18 pm
- Location: Hamburg, Germany
- Full name: Srdja Matovic
Re: IDE or a set of tools for chess coding
To explore several different branches of ideas during my chess projects git was a blessing, to go back and forth in the development tree, to merge different ideas/branches, very effective, also for long term development, to recover some past code snippets and alike.
guilty as charged. thx!
***edit***
In principle it does not matter if CVS, SVN or git, the feature set is basically the same.
Currently I still use gedit, still have a complete switch to console with vim on todo list.
--
Srdja
Dann Corbit wrote: ↑Thu May 09, 2024 11:17 pm [...]
Many times, I have had chess program authors send me an email asking me for their source code.
[...]
Sometimes they would get mad, delete their source, and then cool down.
[...]
![Smile :)](./images/smilies/icon_smile.gif)
***edit***
In principle it does not matter if CVS, SVN or git, the feature set is basically the same.
Currently I still use gedit, still have a complete switch to console with vim on todo list.
--
Srdja