Jump to content
The Dark Mod Forums

Why are simple solutions to problems so frequently overlooked?


lost_soul

Recommended Posts

Consider the following. You have a mobile device with two physically separate disks. There's the internal NAND, and the SD card. When the device is powered on, it builds a database of all of the files on both of these drives so that files can be found quickly. Thing is though, it does this even if no changes have been made to the drives since the last power off, wasting loads of battery power and causing UI lag... and it does this at EVERY boot!

 

Proposed solution: When the device is instructed to power off, it creates a file on the drive with a timestamp, and then immediately unmounts the file system. Then when you turn it on again, the device copies the last modification time of the file systems on the drives into memory. Then it actually mounts the file system and compares the date in memory to the timestamped file I mentioned above. If they are within a couple of seconds of each other, no external changes have been made to the drive and it is not necessary to rebuild the entire database from scratch.

 

However, if they are out of sync, that indicates that somebody hooked the SD card to another machine, meaning the database needs rebuilt.

 

Why is something this simple not implemented? I'm not even an engineer and stuff like this seems so logical.

Edited by lost_soul
  • Like 1

--- War does not decide who is right, war decides who is left.

Link to comment
Share on other sites

Sometimes patents hold back engineering and backwards compatibility too. That seems to translate over to most of IT but especially with phones

Link to comment
Share on other sites

Why is something this simple not implemented? I'm not even an engineer and stuff like this seems so logical.
  1. The "simplest" solution is to scan the disks on every boot. Your solution is not simpler than this. It is more complex, requiring additional work to implement and (more importantly) test.
  2. Filesystems (especially ancient ones used in phones like FAT32) don't necessarily store a global "last modification time", and even when they do the software can't guarantee it is accurate. The SD card could have been modified on another system that doesn't correctly update the last modification time.
  3. If a problem isn't causing problems for most users than a company is not going to spend money solving it. I have never been particularly bothered by the few seconds of media scanning that happens when I (rarely) reboot my phone, and this is the first time I have ever heard anyone complain about it. Whenever you are tempted to wonder "why hasn't <company> fixed this already", this is most likely the reason.

Link to comment
Share on other sites

The thing is, when you have 70+ gigs of music, its not a matter of seconds of scanning... its a matter of minutes. The long scan will drain 4-6% of the battery. I would like to be able to justt leave the thing turned on, but I frequently find it dead within a couple days because some mis-behaving app has went rogue and sucked the life out of the battery.

--- War does not decide who is right, war decides who is left.

Link to comment
Share on other sites

As others have explained, the answer comes down to "cost".

 

However, there's a fallacy here.

 

There's a cost to you, the inconvenience of turning the device on and having it already partially depleted and laggy. What is the cost to you of charging it before that inconvenience would occur? Isn't it zero since you'd have to charge it anyway? I SO hate to ask this because it might be taken as "not nice", but..."Why are simple solutions to problems so frequently overlooked?" ;-)

 

So, you have several choices...

 

One: If you have an Android, Firefox or open source Java phone, hire someone to make it work like you describe, or alternatively, have it do the scan at a lower priority or when the phone isn't actively being used by you, or not at all if you never use the search (like me with Windows, it's just turned off). That should only cost a few hundred or thousand dollars once. (If you have a closed source phone, replace it for an additional tens of dollars.)

 

Two: Hire a physical personal assistant to regularly look at your phone to see if it needs charging, and plug it in for you. That should only cost tens of thousands of dollars annually. (No, I am not available to provide this service, sorry.)

 

Three: Stop ignoring your low battery indications. $14.95 once.

 

Four: Simply plug your phone in when you go to sleep. $14.95 once.

 

You might wonder why options three and four aren't "Free!", the answer is they weren't apparent to you, such that you consulted here. My consulting rate for this type of thing is $60/hour, but since you are a "lost soul" and member of the TDM community, I've prorated this invoice and am billing you just a quarter hour instead of the customary one hour minimum. Please remit payment via Paypal to my username at yahoo, then enjoy never having to suffer lag while your phone indexes, plus enjoy 5% greater battery life!

 

PS: If paying by credit card, please include the 4% processing fee, for a total of $15.55.

  • Like 1

"The measure of a man's character is what he would do if he knew he never would be found out."

- Baron Thomas Babington Macauley

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • The Black Arrow

      Hope everyone has the blessing of undying motivation for "The Dark Mod 15th Anniversary Contest". Can't wait to see the many magnificent missions you all may have planned. Good luck, with an Ace!
      · 0 replies
    • Ansome

      Finally got my PC back from the shop after my SSD got corrupted a week ago and damaged my motherboard. Scary stuff, but thank goodness it happened right after two months of FM development instead of wiping all my work before I could release it. New SSD, repaired Motherboard and BIOS, and we're ready to start working on my second FM with some added version control in the cloud just to be safe!
      · 2 replies
    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
×
×
  • Create New...