1. Drive Fragmentation

When I started coding ("in the Stone Age") disks were SLOW, and fragmentation was a BIG problem. When we tried to add a few lines to a source file, our editor generated a new file, so that we ended up with myfile(1), myfile(2) ... etc. We junked a BIG batch of old files in one session eventually, to minimize fragmentation. Today, we often forget the fragmentation problem?

Recently, I admit, I often have to make many corrections if I attempt a big Euphoria project. I hadn't realized how messy I'd been making my main drive. It was enough to be annoying.

Now I'm trying out a little USB stick to develop a group of files, whenever I can. At a good point, successful files can go onto the main drive - and the USB stick can be cleared, to "forget the mess".

But I've a feeling that there's a neater way, a clever editor, perhaps? - Phil

new topic     » topic index » view message » categorize

2. Re: Drive Fragmentation

newphil82 said...

When I started coding ("in the Stone Age") disks were SLOW, and fragmentation was a BIG problem. When we tried to add a few lines to a source file, our editor generated a new file, so that we ended up with myfile(1), myfile(2) ... etc. We junked a BIG batch of old files in one session eventually, to minimize fragmentation. Today, we often forget the fragmentation problem?

It's not as big a deal with modern filesystems and disks:

http://unix.stackexchange.com/questions/75652/what-doesnt-need-defragmentation-linux-or-the-ext2-ext3-fs

newphil82 said...

Recently, I admit, I often have to make many corrections if I attempt a big Euphoria project. I hadn't realized how messy I'd been making my main drive. It was enough to be annoying.

But I've a feeling that there's a neater way, a clever editor, perhaps? - Phil

Even vi lets you edit a file in place and overwrite the old one with your changes.

newphil82 said...

Now I'm trying out a little USB stick to develop a group of files, whenever I can. At a good point, successful files can go onto the main drive - and the USB stick can be cleared, to "forget the mess".

I feel obligated to point out to any newbies reading this that constantly filling up and then clearing a USB stick like this comes with its own dangers: http://www.zdnet.com/article/usb-drive-life-fact-or-fiction/

newphil82 is advanced enough to already know about this and to be able to deal with the dangers, but that may not be true for some of the lurkers on the forum...

new topic     » goto parent     » topic index » view message » categorize

3. Re: Drive Fragmentation

newphil82 said...

When I started coding ("in the Stone Age") disks were SLOW, and fragmentation was a BIG problem. When we tried to add a few lines to a source file, our editor generated a new file, so that we ended up with myfile(1), myfile(2) ... etc. We junked a BIG batch of old files in one session eventually, to minimize fragmentation. Today, we often forget the fragmentation problem?

Fragmentation is a Microsoft problem.

newphil82 said...

Recently, I admit, I often have to make many corrections if I attempt a big Euphoria project. I hadn't realized how messy I'd been making my main drive. It was enough to be annoying.

I suggest using a Mercurial version control system. What you get is single archive of all of your changes. At each milestone you save your work. You can look back at your changes and make branches as you wish. What you see in your directory is just a clean set of files with your current editing. We use Mercurial for Euphoria source-code.

  • Download Mercurial from https://www.mercurial-scm.org/
  • Search for "Mercurial Tutorial" and you will get lots of resources.
newphil82 said...

Now I'm trying out a little USB stick to develop a group of files, whenever I can. At a good point, successful files can go onto the main drive - and the USB stick can be cleared, to "forget the mess".

But I've a feeling that there's a neater way, a clever editor, perhaps? - Phil

You can run Mercurial on your USB stick and make things even tidier. It will work with any editor.

Mercurial is a command-line program (Windows or Linux). You can find gui wrappers for Mercurial; I use http://easyhg.org/
(Windows and Linux). You get a nice graphical chart of your changes and branches.

_tom

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu