You are not logged in.

#1 2025-04-02 23:59:27

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 18
Website

Binary file editor like vI - 'bi'

I made a binary file editor named 'bi' (abbreviation of Binary file editor like vI)  for linux to mimic vi's interface at binary file.
There is a binary file editor whose user interface is similar to vi named 'bvi' made by Gerhard Buergmann in 1996 for linux but I wrote the first version of bi for MS-DOS in 1991 and uploaded onto ASCII-net in 1991. I was the first to do so.  I re-created bi  for linux today.
please see this link,evaluate it and report errors and bugs.
https://github.com/fygar256/bi

Regards.

Last edited by fygar256 (2025-04-15 17:46:17)

Offline

#2 2025-04-08 01:57:49

espresso
Member
From: Pale Blue Dot, US
Registered: 2023-05-15
Posts: 36

Re: Binary file editor like vI - 'bi'

Your code is so clean, it sparkles. big_smile
Supported operations worked flawlessly.

I am finding the other repos and information interesting as well (also having interests in C/++, python, and computing in general *edit: and nature*).

Thanks for sharing, and warm regards!

Last edited by espresso (2025-04-08 06:03:54)

Online

#3 2025-04-09 00:39:58

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 18
Website

Re: Binary file editor like vI - 'bi'

Thanks for evaluating. Your report is very appreciated.
I will write "complete" in the manual.
Regards.

Offline

#4 2025-04-09 06:24:01

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,236
Website

Re: Binary file editor like vI - 'bi'

While the program may do what it claims to be doing and may be useful to some people, it's not for me.
Here are some things I observed:

1) No following PEP-8 (this is rather a minor inconvenience)
2) Use of globals
3) Some humongous functions
4) No type hints
5) No use of context managers

This all makes it hard to create a mental model of the program's state at any given point.


Inofficial first vice president of the Rust Evangelism Strike Force

Online

#5 2025-04-09 07:42:54

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 18
Website

Re: Binary file editor like vI - 'bi'

There are many insufficient point in this program, but No bugs it's ok. my python program skill is not sufficient,
I agree. But it just works. I want to write clean code. You can improve bi before you complain.
It's no good to be pigeonholed. Do not complain about the others's program. but thanks for your evaluation.

Last edited by fygar256 (2025-04-09 08:30:44)

Offline

#6 2025-04-09 08:33:17

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,236
Website

Re: Binary file editor like vI - 'bi'

It was meant as a starting point for a potential code review, not a complaint.
It's up to you to decide whether to act on the issues I raised or to ignore them.
Given your reply to @espresso I assumed that you are open to feedback and critique.
If you just wanted to receive flattery, I apologise for the misunderstanding.


Inofficial first vice president of the Rust Evangelism Strike Force

Online

#7 2025-04-09 08:38:04

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 18
Website

Re: Binary file editor like vI - 'bi'

I don't want to hear flattery, I just don't want to hear nasty remarks. So I ignore them.

Last edited by fygar256 (2025-04-09 21:04:10)

Offline

#8 2025-04-10 15:39:20

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 18
Website

Re: Binary file editor like vI - 'bi'

I have reflected on this. I will take your opinion into consideration, Mr. schard.

Offline

#9 2025-04-13 11:50:19

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 18
Website

Re: Binary file editor like vI - 'bi'

I have made a major update and debug to bi. version 3.0.0 (complete) released.
https://github.com/fygar256/bi

Last edited by fygar256 (2025-04-15 17:33:49)

Offline

Board footer

Powered by FluxBB