IDE or a set of tools for chess coding

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

JohnWoe
Posts: 511
Joined: Sat Mar 02, 2013 11:31 pm

Re: IDE or a set of tools for chess coding

Post by JohnWoe »

AndrewGrant wrote: Tue May 07, 2024 10:42 am
JohnWoe wrote: Tue May 07, 2024 9:42 am git is only needed in team. Much easier to store tarballs than mess with git diffs.
That is an insane perspective.
git isn't some God given tool.
AndrewGrant
Posts: 1809
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

Post by AndrewGrant »

JohnWoe wrote: Tue May 07, 2024 11:13 am
AndrewGrant wrote: Tue May 07, 2024 10:42 am
JohnWoe wrote: Tue May 07, 2024 9:42 am git is only needed in team. Much easier to store tarballs than mess with git diffs.
That is an insane perspective.
git isn't some God given tool.
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 )
AndrewGrant
Posts: 1809
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

Post by AndrewGrant »

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.
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 )
BeyondCritics
Posts: 406
Joined: Sat May 05, 2012 2:48 pm
Full name: Oliver Roese

Re: IDE or a set of tools for chess coding

Post by BeyondCritics »

JohnWoe wrote: Tue May 07, 2024 11:13 am
AndrewGrant wrote: Tue May 07, 2024 10:42 am
JohnWoe wrote: Tue May 07, 2024 9:42 am git is only needed in team. Much easier to store tarballs than mess with git diffs.
That is an insane perspective.
git isn't some God given tool.
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.
JohnWoe
Posts: 511
Joined: Sat Mar 02, 2013 11:31 pm

Re: IDE or a set of tools for chess coding

Post by JohnWoe »

BeyondCritics wrote: Tue May 07, 2024 3:56 pm
JohnWoe wrote: Tue May 07, 2024 11:13 am
AndrewGrant wrote: Tue May 07, 2024 10:42 am
JohnWoe wrote: Tue May 07, 2024 9:42 am git is only needed in team. Much easier to store tarballs than mess with git diffs.
That is an insane perspective.
git isn't some God given tool.
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.
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.

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.
BeyondCritics
Posts: 406
Joined: Sat May 05, 2012 2:48 pm
Full name: Oliver Roese

Re: IDE or a set of tools for chess coding

Post by BeyondCritics »

JohnWoe wrote: Wed May 08, 2024 8:16 pm If you are using Linux you are not cloning the massive 100s of TiB git history. You will take the 50MiB zip package.
Use
git clone --depth 1 <NAME>
AndrewGrant
Posts: 1809
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

Post by AndrewGrant »

If you are using Linux you are not cloning the massive 100s of TiB git history. You will take the 50MiB zip package.
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.
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 )
Pali
Posts: 29
Joined: Wed Dec 01, 2021 12:23 pm
Full name: Doruk Sekercioglu

Re: IDE or a set of tools for chess coding

Post by Pali »

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.
I prefer my 18MB git repository over multiple 50MiB zip packages.
Dann Corbit
Posts: 12606
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: IDE or a set of tools for chess coding

Post by Dann Corbit »

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
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.
smatovic
Posts: 2759
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

Post by smatovic »

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.
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.
[...]
:) 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