You can always just use vim, no plugins, and a book. No one said that one must use a fancy IDE and online stuff.
No Stack Overflow, No Autocomplete: What Coding Felt Like in the 80s
31–40 of 65 posts
Re: No Stack Overflow, No Autocomplete: What Coding Felt Like in the 80s
#32I had a project at a private bank where we couldn't use the internet - we had to turn our phones in when we checked in, had to use their computers on their network, couldn't access the outside internet... we did have access to api documents electronically thankfully. If we wanted to update a library it had to go through a big security review that took weeks. It slowed work down a lot but was totally fine - the bank w…
Possible but very inefficient way of doing things.
Also very secure.
Re: No Stack Overflow, No Autocomplete: What Coding Felt Like in the 80s
#33You can always just use vim, no plugins, and a book. No one said that one must use a fancy IDE and online stuff.
Re: No Stack Overflow, No Autocomplete: What Coding Felt Like in the 80s
#34[deleted]
> Just last week, I spent several hours reading the rsync C Language source code line-by-line so I could write a custom patch to add nanoseconds to the file creation dates. Pause I need to hear about this :) What is your use case, if you don't mind sharing?
I have custom utilities that detects moved/renamed files by analyzing heuristics of filesize, modification times, and creation times. It can work with files' timestamps without any fractional seconds (nanoseconds) but the most reliable and confident heuristics takes advantage of nanoseconds to build the most accurate hashtable of files.
The latest rsync 3.4.4 will copy creation times but it didn't copy over the nanoseconds. It does copy the nanoseconds for file modification times but not the creation/birth times.
Command line file sync tools like rsync or robocopy can't detect file moves which means they will blindly delete files from the old spot and re-copy them to the new spot. Imagine a directory that's 2 terabytes full of files that were just renamed. Those utilities will delete 2 terabytes then recopy another 2 terabytes. It's a risk of losing 2 tb of files if there's a interruption and needless SSD wear & tear.
I may send my changes up to the rsync github repo. I just don't have an active account at the moment.
Re: No Stack Overflow, No Autocomplete: What Coding Felt Like in the 80s
#35[deleted]
> Just last week, I spent several hours reading the rsync C Language source code line-by-line so I could write a custom patch to add nanoseconds to the file creation dates. Pause I need to hear about this :) What is your use case, if you don't mind sharing?
There are indeed a lot of Linux/UNIX programs that lose metadata when copying or archiving files, like losing extended file attributes or the high-resolution timestamps with nanosecond resolution.
The filesystems that I use (XFS on Linux and UFS on FreeBSD) have timestamps with nanosecond resolution and also extended file attributes, so I was also annoyed in the past when discovering the many utilities that lose metadata.
However, rsync is one of the few utilities that preserve all metadata even when copying between distinct file systems, e.g. between UFS and XFS.
That is why for many years I have never used anything else except rsync over ssh, to be sure that the metadata is intact.
However, to preserve metadata no Linux utility may be used with default options.
For instance, I alias rsync to '/usr/bin/rsync --archive --xattrs --acls --hard-links --progress --rsh="ssh -p XXX -l YYYY"'
Therefore I wonder on which filesystem the previous poster has seen that rsync loses metadata, because this does not match my experience.
In the past, I have also patched some open-source programs to preserve the high-resolution timestamps, but rsync was OK since the beginning.
Re: No Stack Overflow, No Autocomplete: What Coding Felt Like in the 80s
#36You can always just use vim, no plugins, and a book. No one said that one must use a fancy IDE and online stuff.
This varies wildly person to person but for me, it's not only about the means. It's a combination of means and end. If I want the computer to do something, and the only way to get it to do so is read a book and tinker, the reading and tinkering are very fun. If I could just ask the computer in plain English (which I can now), I would. Of course it's way less of a fun journey then. But just reading and tinkering with…
AI tools can write mlog but there’s not much of it out there so they frequently make errors, making it even more of a “you’re on your own” experience. i recommend the game anyway (it’s libre) but the opportunity to code this way has considerably added to the enjoyment for me.
Re: No Stack Overflow, No Autocomplete: What Coding Felt Like in the 80s
#37Earlier quoted context omitted.
> Just last week, I spent several hours reading the rsync C Language source code line-by-line so I could write a custom patch to add nanoseconds to the file creation dates. Pause I need to hear about this :) What is your use case, if you don't mind sharing?
>What is your use case, if you don't mind sharing? I have custom utilities that detects moved/renamed files by analyzing heuristics of filesize, modification times, and creation times. It can work with files' timestamps without any fractional seconds (nanoseconds) but the most reliable and confident heuristics takes advantage of nanoseconds to build the most accurate hashtable of files. The latest rsync 3.4.4 will co…
I have always verified that rsync copies the modification timestamps with nanosecond resolution, because I use these timestamps, but I have never looked at the creation times, because I do not use them.
I always have content hashes attached to files in an extended attribute.
For detecting duplicates with different names I always use the content hash, which is much more reliable than a creation timestamp and it is also useful for other purposes, e.g. for detecting file corruption.