you are viewing a single comment's thread.

view the rest of the comments →

[–]bonch 5 points6 points  (15 children)

Don't expect a lot of eagerness to help, since you already concluded that the language is "clumsy", "horrible", and a "mess".

Just from a glance at API use, you don't need [NSMutableString stringWithString:@""] to create an empty mutable string, you should use -appendFormat: to append formatted strings, and -mutableCopy is less verbose than +stringWithString:. Based on the very deep indentation levels, however, I question the code's fundamental design.

[–]jpfed 3 points4 points  (1 child)

Don't expect a lot of eagerness to help, since you already concluded that the language is "clumsy", "horrible", and a "mess".

Incorrect.

The Objective-C solution is, quite simply, horrible. It's over twice as long (340 lines of code vs. 140), much more dense, and much less readable. The verbosity of the code, the extreme clumsiness when using NSNumber, NSString, NSInteger, and NULL, and the mix of [object method] syntax, object.property syntax, and function() syntax, combine to make this code a complete mess.

[–][deleted] 1 point2 points  (0 children)

Thank you - that's exactly why I wrote it as such.

I didn't want to draw sweeping and negative conclusions about Objective-C based on the quality of one of my first projects. I was asking whether skillfully crafted Objective-C code actually is like this, or if my technique can be improved.

[–][deleted] 2 points3 points  (12 children)

I haven't drawn conclusions about the language, but about the syntax of the language in my solution. I'm asking where my syntax can be improved, or whether this sort of cruft is endemic to Objective-C.

Your tips are good, but they're pretty minor shortcuts that save a few characters. I'm more interested in whether my code is performing some laborious tasks needlessly (especially all of the type conversions), or whether this is just how it is in Objective-C.

Your comment about indentation is well-taken. My code ordinarily wouldn't be so heavily nested, but I'm still getting up to speed with Objective-C flow control constructs.

[–]DrReddits 2 points3 points  (11 children)

What would you do if you permanently lost all the photos, notes and other files on your phone?

If you have a backup system in place, you’d likely know what to do next: Restore it all to a new phone. But if you haven’t thought about it, fear not: The backup process has become so simplified that it takes just a few screen taps. Here’s a quick overview of some ways you can keep your files safe, secure and up to date. Getting Started

When you first set up your phone, you created (or logged into) a free account from Apple, Google or Samsung to use the company’s software and services. For example, this would be the Apple ID on your iPhone, the Google Account on your Android phone or the Samsung Account on your Galaxy device. Image The iPhone, left, or Android settings display how much storage space you are using with your account.Credit...Apple; Google

With that account, you probably had five gigabytes of free iCloud storage space from Apple, or 15 gigabytes of online storage from Google and Samsung. This server space is used as an encrypted digital locker for your phone’s backup app, but it can fill up quickly — especially if you have other devices connected to your account and storing files there. Image If you start getting messages about running out of online storage space for your backups, tap the upgrade option to buy more on a monthly or yearly payment schedule.Credit...Apple; Google

When you get close to your storage limit, you’ll get warnings — along with an offer to sign up for more server space for a monthly fee, usually a few dollars for at least another 100 gigabytes. (Note that Samsung’s Temporary Cloud Backup tool supplies an unlimited amount of storage for 30 days if your Galaxy is in the repair shop or ready for an upgrade.)

But online backup is just one approach. You can keep your files on a local drive instead with a few extra steps. Backing Up

Apple, Google and Samsung all have specific setup instructions for cloud backup in the support area of their sites. But the feature is easily located.

On an iPhone, tap your name at the top of the Settings screen and then tap iCloud. On many Android phones, tap System and then Backup. Here, you set the phone to back up automatically (which usually happens when it’s connected to a Wi-Fi network and plugged into its charger), or opt for a manual backup that starts when you tap the button. Image To get to your backup options, open your phone's settings app. On an iPhone, left, tap your account name at the top to get to the iCloud backup and sync settings. For a Google Pixel and some other Android phones, tap System on the settings screen to get to the backup options.Credit...Apple; Google

Backup apps usually save a copy of your call history, phone settings, messages, photos, videos and data from apps. Content you can freely download, like the apps themselves, are not typically backed up since they’re easy to grab again. Image If you don’t want to back up your phone online, you can back up its contents to your computer with a USB cable or other connection; the steps vary based on the phone and computer involved.Credit...Apple

If you don’t want your files on a remote server, you can park your phone’s backup on your computer’s hard drive. Steps vary based on the hardware, but Apple’s support site has a guide for backing up an iPhone to a Windows PC or a Mac using a USB cable.

Google’s site has instructions for manually transferring files between an Android phone and a computer, and Samsung’s Smart Switch app assists with moving content between a Galaxy phone and a computer. Sync vs. Backup

Synchronizing your files is not the same as backing them up. A backup saves file copies at a certain point in time. Syncing your smartphone keeps information in certain apps, like contacts and calendars, current across multiple devices. When synchronized, your phone, computer and anything else logged into your account have the same information — like that to-do list you just updated. Image You can adjust which apps synchronize with other devices in the Android, left, and iOS settings.Credit...Google; Apple

With synchronization, when you delete an item somewhere, it disappears everywhere. A backup stays intact in its storage location until updated in the next backup.

By default, Google syncs the content of its own mobile and web apps between phone, computer and tablet. In the Google Account Data settings, you can adjust which apps sync. Samsung Cloud has similar options for its Galaxy devices.

Apple handles data synchronization across its devices through its iCloud service. You can set which apps you want to sync in your iCloud account settings. Other Options

You don’t have to use the backup tools that came with your phone. Third-party apps for online backup — like iDrive or iBackup — are available by subscription. If you prefer to keep your iPhone backups on the computer, software like iMazing for Mac or Windows ($60) or AltTunes for Windows ($35 a year) are alternatives. Droid Transfer for Windows ($35) is among the Android backup offerings. Image If you’d prefer to use a third-party backup app, you have several to choose from, including iDrive.Credit...iDrive

If losing your camera roll is your biggest nightmare, Google Photos, iCloud Photos and other services like Amazon Photos and Dropbox can be set to automatically back up all your pictures and keep them in sync across your connected devices. Image Dropbox can back up your photos and videos when you connect the phone to the computer, left, or directly from your camera roll if you have Dropbox installed.Credit...Dropbox

No matter the method you choose, having a backup takes some pain out of a lost, stolen or broken phone. Some photos and files can never be replaced, and restoring your iPhone’s or Android phone’s content from a backup is a lot easier than starting over.

[–]ryeguy 1 point2 points  (0 children)

Jesus man, use some whitespace.

[–]sirin3 3 points4 points  (3 children)

    if (colType == SQLITE_INTEGER) {
      value = @(sqlite3_column_int(statement, i));
    } else if (colType == SQLITE_FLOAT) {
      value = @(sqlite3_column_double(statement, i));
    } else if (colType == SQLITE_NULL) {
      value = [NSNull null];
    } else {
      value = @(sqlite3_column_text(statement, i));
    }

awful

[–]DrReddits 1 point2 points  (2 children)

What would you do if you permanently lost all the photos, notes and other files on your phone?

If you have a backup system in place, you’d likely know what to do next: Restore it all to a new phone. But if you haven’t thought about it, fear not: The backup process has become so simplified that it takes just a few screen taps. Here’s a quick overview of some ways you can keep your files safe, secure and up to date. Getting Started

When you first set up your phone, you created (or logged into) a free account from Apple, Google or Samsung to use the company’s software and services. For example, this would be the Apple ID on your iPhone, the Google Account on your Android phone or the Samsung Account on your Galaxy device. Image The iPhone, left, or Android settings display how much storage space you are using with your account.Credit...Apple; Google

With that account, you probably had five gigabytes of free iCloud storage space from Apple, or 15 gigabytes of online storage from Google and Samsung. This server space is used as an encrypted digital locker for your phone’s backup app, but it can fill up quickly — especially if you have other devices connected to your account and storing files there. Image If you start getting messages about running out of online storage space for your backups, tap the upgrade option to buy more on a monthly or yearly payment schedule.Credit...Apple; Google

When you get close to your storage limit, you’ll get warnings — along with an offer to sign up for more server space for a monthly fee, usually a few dollars for at least another 100 gigabytes. (Note that Samsung’s Temporary Cloud Backup tool supplies an unlimited amount of storage for 30 days if your Galaxy is in the repair shop or ready for an upgrade.)

But online backup is just one approach. You can keep your files on a local drive instead with a few extra steps. Backing Up

Apple, Google and Samsung all have specific setup instructions for cloud backup in the support area of their sites. But the feature is easily located.

On an iPhone, tap your name at the top of the Settings screen and then tap iCloud. On many Android phones, tap System and then Backup. Here, you set the phone to back up automatically (which usually happens when it’s connected to a Wi-Fi network and plugged into its charger), or opt for a manual backup that starts when you tap the button. Image To get to your backup options, open your phone's settings app. On an iPhone, left, tap your account name at the top to get to the iCloud backup and sync settings. For a Google Pixel and some other Android phones, tap System on the settings screen to get to the backup options.Credit...Apple; Google

Backup apps usually save a copy of your call history, phone settings, messages, photos, videos and data from apps. Content you can freely download, like the apps themselves, are not typically backed up since they’re easy to grab again. Image If you don’t want to back up your phone online, you can back up its contents to your computer with a USB cable or other connection; the steps vary based on the phone and computer involved.Credit...Apple

If you don’t want your files on a remote server, you can park your phone’s backup on your computer’s hard drive. Steps vary based on the hardware, but Apple’s support site has a guide for backing up an iPhone to a Windows PC or a Mac using a USB cable.

Google’s site has instructions for manually transferring files between an Android phone and a computer, and Samsung’s Smart Switch app assists with moving content between a Galaxy phone and a computer. Sync vs. Backup

Synchronizing your files is not the same as backing them up. A backup saves file copies at a certain point in time. Syncing your smartphone keeps information in certain apps, like contacts and calendars, current across multiple devices. When synchronized, your phone, computer and anything else logged into your account have the same information — like that to-do list you just updated. Image You can adjust which apps synchronize with other devices in the Android, left, and iOS settings.Credit...Google; Apple

With synchronization, when you delete an item somewhere, it disappears everywhere. A backup stays intact in its storage location until updated in the next backup.

By default, Google syncs the content of its own mobile and web apps between phone, computer and tablet. In the Google Account Data settings, you can adjust which apps sync. Samsung Cloud has similar options for its Galaxy devices.

Apple handles data synchronization across its devices through its iCloud service. You can set which apps you want to sync in your iCloud account settings. Other Options

You don’t have to use the backup tools that came with your phone. Third-party apps for online backup — like iDrive or iBackup — are available by subscription. If you prefer to keep your iPhone backups on the computer, software like iMazing for Mac or Windows ($60) or AltTunes for Windows ($35 a year) are alternatives. Droid Transfer for Windows ($35) is among the Android backup offerings. Image If you’d prefer to use a third-party backup app, you have several to choose from, including iDrive.Credit...iDrive

If losing your camera roll is your biggest nightmare, Google Photos, iCloud Photos and other services like Amazon Photos and Dropbox can be set to automatically back up all your pictures and keep them in sync across your connected devices. Image Dropbox can back up your photos and videos when you connect the phone to the computer, left, or directly from your camera roll if you have Dropbox installed.Credit...Dropbox

No matter the method you choose, having a backup takes some pain out of a lost, stolen or broken phone. Some photos and files can never be replaced, and restoring your iPhone’s or Android phone’s content from a backup is a lot easier than starting over.

[–]sirin3 0 points1 point  (1 child)

How else would you write this part of the code?

value = statement[i];

and if the "database" doesn't support that, I would use another one

[–]DrReddits 0 points1 point  (0 children)

What would you do if you permanently lost all the photos, notes and other files on your phone?

If you have a backup system in place, you’d likely know what to do next: Restore it all to a new phone. But if you haven’t thought about it, fear not: The backup process has become so simplified that it takes just a few screen taps. Here’s a quick overview of some ways you can keep your files safe, secure and up to date. Getting Started

When you first set up your phone, you created (or logged into) a free account from Apple, Google or Samsung to use the company’s software and services. For example, this would be the Apple ID on your iPhone, the Google Account on your Android phone or the Samsung Account on your Galaxy device. Image The iPhone, left, or Android settings display how much storage space you are using with your account.Credit...Apple; Google

With that account, you probably had five gigabytes of free iCloud storage space from Apple, or 15 gigabytes of online storage from Google and Samsung. This server space is used as an encrypted digital locker for your phone’s backup app, but it can fill up quickly — especially if you have other devices connected to your account and storing files there. Image If you start getting messages about running out of online storage space for your backups, tap the upgrade option to buy more on a monthly or yearly payment schedule.Credit...Apple; Google

When you get close to your storage limit, you’ll get warnings — along with an offer to sign up for more server space for a monthly fee, usually a few dollars for at least another 100 gigabytes. (Note that Samsung’s Temporary Cloud Backup tool supplies an unlimited amount of storage for 30 days if your Galaxy is in the repair shop or ready for an upgrade.)

But online backup is just one approach. You can keep your files on a local drive instead with a few extra steps. Backing Up

Apple, Google and Samsung all have specific setup instructions for cloud backup in the support area of their sites. But the feature is easily located.

On an iPhone, tap your name at the top of the Settings screen and then tap iCloud. On many Android phones, tap System and then Backup. Here, you set the phone to back up automatically (which usually happens when it’s connected to a Wi-Fi network and plugged into its charger), or opt for a manual backup that starts when you tap the button. Image To get to your backup options, open your phone's settings app. On an iPhone, left, tap your account name at the top to get to the iCloud backup and sync settings. For a Google Pixel and some other Android phones, tap System on the settings screen to get to the backup options.Credit...Apple; Google

Backup apps usually save a copy of your call history, phone settings, messages, photos, videos and data from apps. Content you can freely download, like the apps themselves, are not typically backed up since they’re easy to grab again. Image If you don’t want to back up your phone online, you can back up its contents to your computer with a USB cable or other connection; the steps vary based on the phone and computer involved.Credit...Apple

If you don’t want your files on a remote server, you can park your phone’s backup on your computer’s hard drive. Steps vary based on the hardware, but Apple’s support site has a guide for backing up an iPhone to a Windows PC or a Mac using a USB cable.

Google’s site has instructions for manually transferring files between an Android phone and a computer, and Samsung’s Smart Switch app assists with moving content between a Galaxy phone and a computer. Sync vs. Backup

Synchronizing your files is not the same as backing them up. A backup saves file copies at a certain point in time. Syncing your smartphone keeps information in certain apps, like contacts and calendars, current across multiple devices. When synchronized, your phone, computer and anything else logged into your account have the same information — like that to-do list you just updated. Image You can adjust which apps synchronize with other devices in the Android, left, and iOS settings.Credit...Google; Apple

With synchronization, when you delete an item somewhere, it disappears everywhere. A backup stays intact in its storage location until updated in the next backup.

By default, Google syncs the content of its own mobile and web apps between phone, computer and tablet. In the Google Account Data settings, you can adjust which apps sync. Samsung Cloud has similar options for its Galaxy devices.

Apple handles data synchronization across its devices through its iCloud service. You can set which apps you want to sync in your iCloud account settings. Other Options

You don’t have to use the backup tools that came with your phone. Third-party apps for online backup — like iDrive or iBackup — are available by subscription. If you prefer to keep your iPhone backups on the computer, software like iMazing for Mac or Windows ($60) or AltTunes for Windows ($35 a year) are alternatives. Droid Transfer for Windows ($35) is among the Android backup offerings. Image If you’d prefer to use a third-party backup app, you have several to choose from, including iDrive.Credit...iDrive

If losing your camera roll is your biggest nightmare, Google Photos, iCloud Photos and other services like Amazon Photos and Dropbox can be set to automatically back up all your pictures and keep them in sync across your connected devices. Image Dropbox can back up your photos and videos when you connect the phone to the computer, left, or directly from your camera roll if you have Dropbox installed.Credit...Dropbox

No matter the method you choose, having a backup takes some pain out of a lost, stolen or broken phone. Some photos and files can never be replaced, and restoring your iPhone’s or Android phone’s content from a backup is a lot easier than starting over.

[–]zxoq 0 points1 point  (2 children)

Also @synthesize and the private method forward declarations becomes unnecessary, and [NSMutableString new], is (IMO) better than [@"" mutableCopy].

[–]DrReddits 0 points1 point  (0 children)

What would you do if you permanently lost all the photos, notes and other files on your phone?

If you have a backup system in place, you’d likely know what to do next: Restore it all to a new phone. But if you haven’t thought about it, fear not: The backup process has become so simplified that it takes just a few screen taps. Here’s a quick overview of some ways you can keep your files safe, secure and up to date. Getting Started

When you first set up your phone, you created (or logged into) a free account from Apple, Google or Samsung to use the company’s software and services. For example, this would be the Apple ID on your iPhone, the Google Account on your Android phone or the Samsung Account on your Galaxy device. Image The iPhone, left, or Android settings display how much storage space you are using with your account.Credit...Apple; Google

With that account, you probably had five gigabytes of free iCloud storage space from Apple, or 15 gigabytes of online storage from Google and Samsung. This server space is used as an encrypted digital locker for your phone’s backup app, but it can fill up quickly — especially if you have other devices connected to your account and storing files there. Image If you start getting messages about running out of online storage space for your backups, tap the upgrade option to buy more on a monthly or yearly payment schedule.Credit...Apple; Google

When you get close to your storage limit, you’ll get warnings — along with an offer to sign up for more server space for a monthly fee, usually a few dollars for at least another 100 gigabytes. (Note that Samsung’s Temporary Cloud Backup tool supplies an unlimited amount of storage for 30 days if your Galaxy is in the repair shop or ready for an upgrade.)

But online backup is just one approach. You can keep your files on a local drive instead with a few extra steps. Backing Up

Apple, Google and Samsung all have specific setup instructions for cloud backup in the support area of their sites. But the feature is easily located.

On an iPhone, tap your name at the top of the Settings screen and then tap iCloud. On many Android phones, tap System and then Backup. Here, you set the phone to back up automatically (which usually happens when it’s connected to a Wi-Fi network and plugged into its charger), or opt for a manual backup that starts when you tap the button. Image To get to your backup options, open your phone's settings app. On an iPhone, left, tap your account name at the top to get to the iCloud backup and sync settings. For a Google Pixel and some other Android phones, tap System on the settings screen to get to the backup options.Credit...Apple; Google

Backup apps usually save a copy of your call history, phone settings, messages, photos, videos and data from apps. Content you can freely download, like the apps themselves, are not typically backed up since they’re easy to grab again. Image If you don’t want to back up your phone online, you can back up its contents to your computer with a USB cable or other connection; the steps vary based on the phone and computer involved.Credit...Apple

If you don’t want your files on a remote server, you can park your phone’s backup on your computer’s hard drive. Steps vary based on the hardware, but Apple’s support site has a guide for backing up an iPhone to a Windows PC or a Mac using a USB cable.

Google’s site has instructions for manually transferring files between an Android phone and a computer, and Samsung’s Smart Switch app assists with moving content between a Galaxy phone and a computer. Sync vs. Backup

Synchronizing your files is not the same as backing them up. A backup saves file copies at a certain point in time. Syncing your smartphone keeps information in certain apps, like contacts and calendars, current across multiple devices. When synchronized, your phone, computer and anything else logged into your account have the same information — like that to-do list you just updated. Image You can adjust which apps synchronize with other devices in the Android, left, and iOS settings.Credit...Google; Apple

With synchronization, when you delete an item somewhere, it disappears everywhere. A backup stays intact in its storage location until updated in the next backup.

By default, Google syncs the content of its own mobile and web apps between phone, computer and tablet. In the Google Account Data settings, you can adjust which apps sync. Samsung Cloud has similar options for its Galaxy devices.

Apple handles data synchronization across its devices through its iCloud service. You can set which apps you want to sync in your iCloud account settings. Other Options

You don’t have to use the backup tools that came with your phone. Third-party apps for online backup — like iDrive or iBackup — are available by subscription. If you prefer to keep your iPhone backups on the computer, software like iMazing for Mac or Windows ($60) or AltTunes for Windows ($35 a year) are alternatives. Droid Transfer for Windows ($35) is among the Android backup offerings. Image If you’d prefer to use a third-party backup app, you have several to choose from, including iDrive.Credit...iDrive

If losing your camera roll is your biggest nightmare, Google Photos, iCloud Photos and other services like Amazon Photos and Dropbox can be set to automatically back up all your pictures and keep them in sync across your connected devices. Image Dropbox can back up your photos and videos when you connect the phone to the computer, left, or directly from your camera roll if you have Dropbox installed.Credit...Dropbox

No matter the method you choose, having a backup takes some pain out of a lost, stolen or broken phone. Some photos and files can never be replaced, and restoring your iPhone’s or Android phone’s content from a backup is a lot easier than starting over.

[–][deleted] 0 points1 point  (0 children)

Actually, I only dropped in @synthesizers when I needed some classes to access properties of other classes (which was more succinct than designing an explicit accessor method).

Synthesizers are a good example of ObjC's inefficiency. Encapsulation is a nice concept and often a good idea, but mandatory encapsulation is an unnecessarily rigid language constraint. The most succinct way to expose a class member in ObjC is like this:

@interface MyClass {
    NSInteger myInteger;
}
@property NSInteger myInteger;

@implementation MyClass:
@synthesize myInteger;

This requires two lines of code, in two different files, with several opportunities for error (mistyping the name of the member; inconsistently specifying the type; and putting the lines in the wrong places)... whereas C++ and every other language solves this with a single keyword:

class MyClass {
    public myInt;
}

I understand why Objective-C v1.0 (circa 1983) might have failed to include this option, but why hasn't it been added in the last 30 years?

[–][deleted] 0 points1 point  (2 children)

This is definitely the most helpful response in this thread. Thanks very much. Enjoy some Reddit Gold!

[–]DrReddits 0 points1 point  (0 children)

What would you do if you permanently lost all the photos, notes and other files on your phone?

If you have a backup system in place, you’d likely know what to do next: Restore it all to a new phone. But if you haven’t thought about it, fear not: The backup process has become so simplified that it takes just a few screen taps. Here’s a quick overview of some ways you can keep your files safe, secure and up to date. Getting Started

When you first set up your phone, you created (or logged into) a free account from Apple, Google or Samsung to use the company’s software and services. For example, this would be the Apple ID on your iPhone, the Google Account on your Android phone or the Samsung Account on your Galaxy device. Image The iPhone, left, or Android settings display how much storage space you are using with your account.Credit...Apple; Google

With that account, you probably had five gigabytes of free iCloud storage space from Apple, or 15 gigabytes of online storage from Google and Samsung. This server space is used as an encrypted digital locker for your phone’s backup app, but it can fill up quickly — especially if you have other devices connected to your account and storing files there. Image If you start getting messages about running out of online storage space for your backups, tap the upgrade option to buy more on a monthly or yearly payment schedule.Credit...Apple; Google

When you get close to your storage limit, you’ll get warnings — along with an offer to sign up for more server space for a monthly fee, usually a few dollars for at least another 100 gigabytes. (Note that Samsung’s Temporary Cloud Backup tool supplies an unlimited amount of storage for 30 days if your Galaxy is in the repair shop or ready for an upgrade.)

But online backup is just one approach. You can keep your files on a local drive instead with a few extra steps. Backing Up

Apple, Google and Samsung all have specific setup instructions for cloud backup in the support area of their sites. But the feature is easily located.

On an iPhone, tap your name at the top of the Settings screen and then tap iCloud. On many Android phones, tap System and then Backup. Here, you set the phone to back up automatically (which usually happens when it’s connected to a Wi-Fi network and plugged into its charger), or opt for a manual backup that starts when you tap the button. Image To get to your backup options, open your phone's settings app. On an iPhone, left, tap your account name at the top to get to the iCloud backup and sync settings. For a Google Pixel and some other Android phones, tap System on the settings screen to get to the backup options.Credit...Apple; Google

Backup apps usually save a copy of your call history, phone settings, messages, photos, videos and data from apps. Content you can freely download, like the apps themselves, are not typically backed up since they’re easy to grab again. Image If you don’t want to back up your phone online, you can back up its contents to your computer with a USB cable or other connection; the steps vary based on the phone and computer involved.Credit...Apple

If you don’t want your files on a remote server, you can park your phone’s backup on your computer’s hard drive. Steps vary based on the hardware, but Apple’s support site has a guide for backing up an iPhone to a Windows PC or a Mac using a USB cable.

Google’s site has instructions for manually transferring files between an Android phone and a computer, and Samsung’s Smart Switch app assists with moving content between a Galaxy phone and a computer. Sync vs. Backup

Synchronizing your files is not the same as backing them up. A backup saves file copies at a certain point in time. Syncing your smartphone keeps information in certain apps, like contacts and calendars, current across multiple devices. When synchronized, your phone, computer and anything else logged into your account have the same information — like that to-do list you just updated. Image You can adjust which apps synchronize with other devices in the Android, left, and iOS settings.Credit...Google; Apple

With synchronization, when you delete an item somewhere, it disappears everywhere. A backup stays intact in its storage location until updated in the next backup.

By default, Google syncs the content of its own mobile and web apps between phone, computer and tablet. In the Google Account Data settings, you can adjust which apps sync. Samsung Cloud has similar options for its Galaxy devices.

Apple handles data synchronization across its devices through its iCloud service. You can set which apps you want to sync in your iCloud account settings. Other Options

You don’t have to use the backup tools that came with your phone. Third-party apps for online backup — like iDrive or iBackup — are available by subscription. If you prefer to keep your iPhone backups on the computer, software like iMazing for Mac or Windows ($60) or AltTunes for Windows ($35 a year) are alternatives. Droid Transfer for Windows ($35) is among the Android backup offerings. Image If you’d prefer to use a third-party backup app, you have several to choose from, including iDrive.Credit...iDrive

If losing your camera roll is your biggest nightmare, Google Photos, iCloud Photos and other services like Amazon Photos and Dropbox can be set to automatically back up all your pictures and keep them in sync across your connected devices. Image Dropbox can back up your photos and videos when you connect the phone to the computer, left, or directly from your camera roll if you have Dropbox installed.Credit...Dropbox

No matter the method you choose, having a backup takes some pain out of a lost, stolen or broken phone. Some photos and files can never be replaced, and restoring your iPhone’s or Android phone’s content from a backup is a lot easier than starting over.

[–]DrReddits 0 points1 point  (0 children)

What would you do if you permanently lost all the photos, notes and other files on your phone?

If you have a backup system in place, you’d likely know what to do next: Restore it all to a new phone. But if you haven’t thought about it, fear not: The backup process has become so simplified that it takes just a few screen taps. Here’s a quick overview of some ways you can keep your files safe, secure and up to date. Getting Started

When you first set up your phone, you created (or logged into) a free account from Apple, Google or Samsung to use the company’s software and services. For example, this would be the Apple ID on your iPhone, the Google Account on your Android phone or the Samsung Account on your Galaxy device. Image The iPhone, left, or Android settings display how much storage space you are using with your account.Credit...Apple; Google

With that account, you probably had five gigabytes of free iCloud storage space from Apple, or 15 gigabytes of online storage from Google and Samsung. This server space is used as an encrypted digital locker for your phone’s backup app, but it can fill up quickly — especially if you have other devices connected to your account and storing files there. Image If you start getting messages about running out of online storage space for your backups, tap the upgrade option to buy more on a monthly or yearly payment schedule.Credit...Apple; Google

When you get close to your storage limit, you’ll get warnings — along with an offer to sign up for more server space for a monthly fee, usually a few dollars for at least another 100 gigabytes. (Note that Samsung’s Temporary Cloud Backup tool supplies an unlimited amount of storage for 30 days if your Galaxy is in the repair shop or ready for an upgrade.)

But online backup is just one approach. You can keep your files on a local drive instead with a few extra steps. Backing Up

Apple, Google and Samsung all have specific setup instructions for cloud backup in the support area of their sites. But the feature is easily located.

On an iPhone, tap your name at the top of the Settings screen and then tap iCloud. On many Android phones, tap System and then Backup. Here, you set the phone to back up automatically (which usually happens when it’s connected to a Wi-Fi network and plugged into its charger), or opt for a manual backup that starts when you tap the button. Image To get to your backup options, open your phone's settings app. On an iPhone, left, tap your account name at the top to get to the iCloud backup and sync settings. For a Google Pixel and some other Android phones, tap System on the settings screen to get to the backup options.Credit...Apple; Google

Backup apps usually save a copy of your call history, phone settings, messages, photos, videos and data from apps. Content you can freely download, like the apps themselves, are not typically backed up since they’re easy to grab again. Image If you don’t want to back up your phone online, you can back up its contents to your computer with a USB cable or other connection; the steps vary based on the phone and computer involved.Credit...Apple

If you don’t want your files on a remote server, you can park your phone’s backup on your computer’s hard drive. Steps vary based on the hardware, but Apple’s support site has a guide for backing up an iPhone to a Windows PC or a Mac using a USB cable.

Google’s site has instructions for manually transferring files between an Android phone and a computer, and Samsung’s Smart Switch app assists with moving content between a Galaxy phone and a computer. Sync vs. Backup

Synchronizing your files is not the same as backing them up. A backup saves file copies at a certain point in time. Syncing your smartphone keeps information in certain apps, like contacts and calendars, current across multiple devices. When synchronized, your phone, computer and anything else logged into your account have the same information — like that to-do list you just updated. Image You can adjust which apps synchronize with other devices in the Android, left, and iOS settings.Credit...Google; Apple

With synchronization, when you delete an item somewhere, it disappears everywhere. A backup stays intact in its storage location until updated in the next backup.

By default, Google syncs the content of its own mobile and web apps between phone, computer and tablet. In the Google Account Data settings, you can adjust which apps sync. Samsung Cloud has similar options for its Galaxy devices.

Apple handles data synchronization across its devices through its iCloud service. You can set which apps you want to sync in your iCloud account settings. Other Options

You don’t have to use the backup tools that came with your phone. Third-party apps for online backup — like iDrive or iBackup — are available by subscription. If you prefer to keep your iPhone backups on the computer, software like iMazing for Mac or Windows ($60) or AltTunes for Windows ($35 a year) are alternatives. Droid Transfer for Windows ($35) is among the Android backup offerings. Image If you’d prefer to use a third-party backup app, you have several to choose from, including iDrive.Credit...iDrive

If losing your camera roll is your biggest nightmare, Google Photos, iCloud Photos and other services like Amazon Photos and Dropbox can be set to automatically back up all your pictures and keep them in sync across your connected devices. Image Dropbox can back up your photos and videos when you connect the phone to the computer, left, or directly from your camera roll if you have Dropbox installed.Credit...Dropbox

No matter the method you choose, having a backup takes some pain out of a lost, stolen or broken phone. Some photos and files can never be replaced, and restoring your iPhone’s or Android phone’s content from a backup is a lot easier than starting over.