Trending February 2024 # Edutech: With Swift Playgrounds, Apple Has A Chance To Change Programming Forever # Suggested March 2024 # Top 2 Popular

You are reading the article Edutech: With Swift Playgrounds, Apple Has A Chance To Change Programming Forever updated in February 2024 on the website Flu.edu.vn. We hope that the information we have shared is helpful to you. If you find the content interesting and meaningful, please share it with your friends and continue to follow and support us for the latest updates. Suggested March 2024 Edutech: With Swift Playgrounds, Apple Has A Chance To Change Programming Forever

EduTech is a 9to5Mac weekly series that focuses on technology’s application in education, lower and higher level, both for productivity and enjoyment. If you have suggestions for topics or specific questions you’d like to see answered, feel free to let me know. Catch up on past installments here. 

This week’s EduTech is a guest post from Apple Distinguished Educator Michael Cohen, founder of The Tech Rabbi. Apple’s Distinguished Educator program recognizes professionals who are using Apple to “transform teaching and learning.” 

When Apple announced the Swift programming language at WWDC in 2014, they aimed to change the way developers program forever. Promoted as a more resilient and flexible language, it was adopted, refined, and for the most part embraced. Less than 3 years later, Apple is set to revolutionize the way we program again. This time it’s not through veteran programmers, it’s through 9-16 year old students.

Through programming, coding, and as President Obama put it #CS4ALL, Apple has a chance to redefine and crown itself again as a unstoppable technological force in education.

Apple aims to achieve this through a relatively new education platform called Swift Playgrounds. Swift Playgrounds is inspired by current coding trends in education, but in true Apple form has been redesigned to be real world applicable and relevant beyond the platform itself.

Swift Playgrounds is a game-based experience that teaches the Swift language and challenges users to masterfully solve a puzzle-like journey, all while programing in the native Swift language. This is unique in the world of coding education. Most programing platforms either lack real program language interaction, or are missing an engaging visual that will show students how their code, even the most basic string, can make things happen. In the words of Apple, they want you to “learn serious code on your iPad in a seriously fun way.”

Like any language, coding needs to be learned just like Spanish or Japanese. You need real world expose and practical use. The challenge with coding languages is that stings and strings of code can be left in the abstract until one produces a fully functioning product. In this respect, Swift Playgrounds is taking significant steps towards blending the learning of an authentic coding language through an interactive experience that goes beyond strings of code imputed on a blank screen.

It also opens up the world of programming to young, inspired, and ambitious students through the attractive and exciting game experience. Imagine for a moment the median age of a developer dipping into high school because Apple realizes that it needs to invest in 8 year olds, their learning, and their relationship with technology.

It also doesn’t end there. Apple isn’t aiming to create a generation of developers, but rather a generation that understands and values what developers, coding, and apps can achieve. These learners will go on to become CEOs, doctors, managers, teachers, and other types of professions that you wouldn’t necessarily associate with “coding.” They will enter these jobs with new skills, insight, and vision for how technology can enhance their professions.

This move also solidifies Apple as the company that made this possible. A move that Google and Microsoft are sorely lagging behind even with Microsoft’s acquisition of Minecraft and Google’s mostly unknown Blockly platform. Apple therefore is paving the way for huge adoption of coding in classrooms that will have students ready to create that app or become a masterful problem solver and flaw-finder.

By moving beyond the digital experience, programming helps learners develop skills in critical thinking, complex program solving, and creativity. These skills will be vital in a future full of automation, robots, and artificial intelligence.

For education, today’s coding apps are going beyond digital experiences and offer creative ways to develop important professional (and honestly, life) skills that are critical for today and tomorrow’s rapidly changing workforce and industry. These skills might even have a chance to develop to a higher degree through programming even if students are not considering it as their professional goal.

Even more so, organizations like the World Economic Forum see those skills as prerequisites to thrive in the future workforce – one that doesn’t yet exist. This future is, of course, where our elementary school students will finish college and enter the world of work that we must prepare them for today.

Programing is part and parcel of all emerging and cutting-edge technologies. Let’s not undercut the tens of thousands of programming and computer science related jobs that are currently unfilled. On a personal level, the social, emotional, and economic elements of our lives are directly impacted by what programing can achieve. It goes beyond the technological functions, and becomes a catalyst for how people think, envision, and ideate what programming can do to influence and enhance the world around us.

Keep in mind, this is just the start. Programming in education and its impact on real-world programing and development is still an developing and the road is mostly uncharted. What is certain is Apple’s leading role in once again changing how we experience, interface, and produce with technology in a meaningful way.

Check out previous installments of EduTech:

FTC: We use income earning auto affiliate links. More.

You're reading Edutech: With Swift Playgrounds, Apple Has A Chance To Change Programming Forever

This Summer’s Bug Forecast: Buggy With A Chance Of Mosquitoes

Mosquito

An Evil, disease-carrying vermin sucking out the blood of its victim. A mosquito feeding

Ah, summer. Time for days filled with sun, and hours whiled away at the beach, pool or grill.

But there is a cost to all that fun, and we all must pay. The bugs are back in town.

Cue screams of horror.

The National Pest Management Association (an organization of pest management companies) just released its annual forecast for how bad pests might get this spring and summer, and unfortunately the news is not great.

Most of the country experienced a mild and wet winter, which could give pesky populations of insects a boost.

Jim Fredericks, chief entomologist for the NPMA told Popular Science that the two main weather factors that affect bug populations are temperature and rainfall or other precipitation. Temperature plays a role as insects are “cold-blooded”, and tend to become more active as the weather heats up. Excess rainfall can create standing water where insects like mosquitoes can lay their eggs. Larvae also thrive in standing water.

Bug Forecast

Forecast of pests for this spring and summer.

This winter was remarkably warm, which could provide a boost to insect populations. “There are a number of pests that overwinter or harbor inside buildings to stay warm in the winter,” Fredericks said. Which is why some homeowners may start to see bugs like ants inside their home as temperatures start rising. A mild winter could mean that more bugs managed to find cozy places to hide from the cold, and that fewer insects were exposed to freezing temperatures that could cut their populations down.

If this spring brings warm and wet weather, then the mosquito population is expected to have a particularly good year. In the Western United States, which is undergoing El Nino conditions, more rain could mean more mosquitoes, and more ants entering buildings to escape their sodden homes.

If the Northeastern states get plenty of rain this spring, they can also expect a banner year for mosquitoes, as well as an early start for ticks, stink bugs, and ants, thanks to a mild winter.

The Midwest, like the Northeast, had a record-warm winter, and will also see an early start to bug season, with increased numbers of ants and ticks. The situation is mostly the same in the Southwest, but a colder spring might delay the onset of termite swarms, a problem across the south.

The Southeast should expect mostly normal pest activity, with an increase in mosquitoes. What joy.

Mosquitoes are on everyone’s mind this summer, with their ability to transmit diseases like the Zika virus. While U.S. mosquito populations aren’t currently carrying Zika as far as we know, defending yourself from mosquito bites couldn’t hurt. Plus nobody wants to deal with itchy bug bites.

How To Change Or Reset Your Apple Id Password

Do you suspect that your Apple ID account is compromised? This tutorial covers steps to change your Apple ID password on Apple and non-Apple devices. We’ll also show you how to remotely sign out of all devices associated with your Apple ID.

Before you proceed, we recommend reading our comprehensive guide on creating a strong password. You’ll also find the tips on ways to come up with the most secure password helpful.

Table of Contents

Fun Fact: You can also change your Apple ID email address. That is, the primary email address or phone number associated with your Apple ID.

Apple ID Password Guidelines

Your (new) Apple ID password must have at least eight characters, including a lowercase letter, an uppercase letter, and a number. Also, the password mustn’t contain three or more consecutive identical characters.

One more thing: your password cannot include your name, phone number, or any part of your Apple ID email address. Avoid using a password you already use with other websites or apps—use a password manager to generate a unique password.

Keep these in mind when creating your new Apple ID password. By the way, Apple recommends exceeding these guidelines by adding extra characters (numbers, letters, or punctuation) to improve your password strength.

Change Apple ID Password on iPhone, iPad, or iPod touch

Follow the steps below to change your Apple ID password on iOS and iPadOS devices.

Open the

Settings

app, tap your

Apple ID name

, and select

Password & Security

.

Tap

Change Password

and enter your iPhone or iPad’s passcode to proceed.

Enter your passcode in the “New” and “ Verify” dialog boxes and tap

Change

in the top-right corner.

Change Apple ID Password on Mac

If your Apple ID is connected to your Mac computer, follow the steps below to change the password.

Open

System Preferences

or

System Settings

(on macOS Ventura or newer) on your Mac computer.

Select your

Apple ID name

on the sidebar and select

Password & Security

.

Select the

Change Password

button.

Enter your Mac’s password and select

Allow

to proceed.

Enter the new password in the “New Password” and “Verify” dialog boxes and select

Change

.

Your (new) password must have at least eight characters, including a number, an uppercase letter, and a lowercase letter. You’ll get an error message if your password doesn’t meet these criteria or the entries in both dialog boxes don’t match.

Change Apple ID Password on Apple Watch

You can also change your Apple ID password on your Apple Watch, and the steps are straightforward.

Open the

Settings

app, tap your

Apple ID name

, and select

Password & Security

.

Tap

Change Password

and provide your Apple Watch passcode in the next step.

Tap the

Enter Passcode

button and enter your Apple Watch passcode.

Type the new password in the “New” and “Verify” dialog boxes and tap

Change

in the top-right corner.

Change Apple ID Password on the Web

You can change your Apple ID password on a web browser if you don’t have an Apple device.

You may need to provide a two-step verification code if your Apple ID account uses two-factor authentication.

Select

Password

in the “Sign-in and Security” tab.

Type your current Apple ID password in the first dialog box. Next, enter the new password in the “new password” and “confirm new password” boxes.

Select

Change password

to continue.

Selecting the “Sign out of Apple devices and websites associated with your Apple ID” checkbox will remove all devices connected to your Apple ID.

You’ll need to sign in again on those with your new Apple ID password. See the next section to learn how to check (and remove) devices associated with your Apple ID.

How to Check Devices Associated With Your Apple ID

To remove a device from your Apple ID, select the device, and select Remove from Account.

When you remove a device, it’ll no longer have access to iCloud and Apple services linked to your Apple ID.

Apple ID Security Tips

Avoid sharing your Apple ID account details (password, security questions, recovery key, or verification codes) with other people. Instead, set up Family Sharing to share your Apple services with your friends or family members. Also, enable two-factor authentication in your account and avoid accessing your Apple ID from a public device.

Forgetting your Apple ID password is an entirely different ballgame. If you can’t remember your password, several recovery options exist to regain access to your account. You can reset your password using a trusted device, Apple’s online password reset portal, or an account recovery key. See What to Do If You Forgot Your Apple ID Password for more information.

10 Ways Apple Has Avoided Mass Layoffs

So far, Apple has avoided mass layoffs that have plagued its rivals by implementing a series of cost-cutting measures, some of which are pretty harsh.

What’s happening? According to Bloomberg’s Mark Gurman, Apple’s managed to avoid mass layoffs by implementing a series of cost-cutting measures.

Why care? Apple wants to avoid laying off workers to protect its reputation. In doing so, however, the company may have raised employee concerns.

What to do? Go read the full report on Bloomberg.

Apple’s cost-cutting measures to avoid mass layoffs

The article assumes that eventual layoffs at Apple would tarnish the company’s brand and damage employee morale while creating a significant PR problem for management because the company is viewed through a different lens than its rivals.

Apple’s top executives are seen as some of the most tactical minds in the industry. Layoffs would either signal that they’d made a strategic blunder or the global economy is in even worse shape than people feared. Either way, it could send ripples through different industries and economies.

Gurman has laid out the following decisions, moves and changes in Apple’s policies aimed at weathering the economic slump without letting go of thousands of workers:

1. Delayed bonuses

Teams that received bonuses twice per year will get their entire bonus in October, allowing Apple to “keep that cash on hand a little longer.”

2. Budget scrutiny

Apple froze budgets for some teams, with senior vice president approval required for more items.

3. Hiring freeze

Hiring has either stopped or got severely limited, depending on the teams. And when a person leaves their position, Apple doesn’t fill their role, according to the report.

4. Employee transfer limitations

Some corporate and retail workers are barred from moving to other departments.

5. Firing recruiters and contracts

Apple has let go “many” of its recruiters on contracts and contractors who had been helping the company’s engineering teams and other departments.

6. Travel restrictions

Apple has “significantly” cut down on travel budgets and trips now require senior executive approval. “For some departments, travel has been halted completely for the foreseeable future other than for business-critical reasons,” says Gurman.

7. Office attendance enforcement

The work-from-home era has caused many Apple employees to become reluctant to return to their offices. However, employees are required to show up at the Apple Park headquarters on Tuesdays, Wednesdays and Thursdays. According to Gurman, some employees fear this could signal Apple’s willingness to let go of employees who may have a problem with that policy.

8. Stricter requirements for retail workers

People who work in retail departments are feeling the pressure, too, as Apple is now scrutinizing work attendance and hours. Retail workers are concerned Apple could lay them off unless they’re capable of hitting a certain number of work hours.

9. Getting rid of “special sick time”

In some cases, the Cupertino technology giant wouldn’t even replace the hours of retail employees who call in sick or are absent for other reasons.

The company is also removing “special sick time” for time missed due to Covid, asking staffers to use normal sick time instead—or not get paid.

10. Increasing regular firings

While Apple has avoided mass layoffs, that doesn’t mean workers’ jobs are safe. In some cases, Apple wouldn’t replace retail workers who left, with others expected to pick up their work. Also, firings for standard reasons “appear to be up” as well.

But what about employee morale?

Apple’s chief rivals like Amazon, Google, Microsoft and Meta have already laid off more than 50,000 workers, or nearly half of Apple’s corporate workforce.

More mass layoffs in Silicon Valley could be coming as the economy continues to suffer due to inflation, the war in Ukraine, increasing interest rates, etc.

Apple could have announced mass layoffs but instead picked a different route because, as Gurman puts it, the company “has a reputation for stability to protect.”

But even with all that said, we believe that some of the iPhone maker’s policies—such as forcing employees to quit or threatening to fire workers who can’t hit specific quotas regarding the number of work hours—border on corporate bullying.

Whatever happened to treating your employees with dignity and fairness?

2024 Has Been A Record

On average, the United States sees seven human cases of a mosquito-borne virus called the Eastern equine encephalitis virus each year. In 2023, though, more than 30 cases have been reported—the highest ever on record, according to data collected by the Centers for Disease Control.

The virus started circulating in Orange County, Florida, in July, and was identified in a group of chickens that researchers use to monitor levels of mosquito-borne diseases in the area. Now, human cases have spread to a number of states, including Michigan, Massachusetts, Connecticut, Rhode Island, Indiana, Tennessee, and New Jersey. Still others have mosquitoes or animals that have tested positive for the virus.

“We don’t want to panic anyone, we want them to go out and enjoy Michigan,” says Lynn Sutfin, public information officer with the Michigan Department of Health and Human Services. But the department is encouraging people in areas with EEEV activity to take precautions: They say to avoid being outdoors at night, regularly apply insect repellent, and wear long sleeves. People should dump out standing water in buckets or small pools, since that’s where mosquitoes lay eggs. The department recommended that outdoor activities be rescheduled so that they take place before dusk, especially if they involve children.

“We’re stressing the fact that yes, it is rare, but it has a 33 percent fatality rate. It’s better to be safe than sorry, and to take precautions,” Sutfin says.

Florida is the only place in the country where EEEV circulates year-round, and any virus present in other states originated in Florida. The virus is carried by a type of mosquito called Culiseta melanura, and during its life cycle, it passes from birds to mosquitoes and back again. Culiseta melanura mosquitoes don’t bite humans directly—instead, they can pass on the EEEV virus to other types of mosquitoes that do interact with people.

The cause of the surge in cases this year is still unknown, but there was a lot of virus activity in Florida last year, says Thomas Unnasch, an expert in EEEV and distinguished professor in the College of Public Health at the University of Southern Florida. “More virally infected birds may have been able to make the trip north, resulting in the bad year the Northeast is seeing now,” he wrote in an email to Popular Science in regards to the uptick seen this fall.

Going forward, like all viruses transmitted by mosquitoes, there’s a risk that EEEV could have a bigger impact under a warmer climate. The number of annual cases may start to creep up. “I would not be surprised at all to see that happening,” Unnasch says.

The changing climate makes environments more accommodating for people-biting mosquitoes, says Sadie Ryan, a professor in the department of geography and Emerging Pathogens Institute at the University of Florida. Research shows that the range of mosquitoes, and the range of mosquito-borne diseases, is likely to expand under a warming climate: hotter, wetter temperatures are generally beneficial for mosquito life cycles. That might make it more likely for people to come in contact with mosquitoes carrying EEEV. “We could see more of that bridge happening,” she says.

Culiseta melanura mosquitoes that carry EEEV thrive in swampy, isolated areas, Unnasch says, and warming temperatures north of Florida could expand the region they transmit the virus in. “It could expand the range,” he says.

Some migratory birds also carry EEEV, which is why it can appear in swampy areas of states like New York and Massachusetts. It usually doesn’t linger for longer than a few years, though, Unnasch says. “The virus gets introduced, it bumps along for four or five years, and then a severe winter will kill mosquitoes and block the transmission of the virus.” However, if warming climates up north mean that winters are less severe, the virus might be able to carve out a more permanent foothold in those places, he says. “It may actually become much more strongly established.”

Hurricanes are made more severe by warming temperatures, but those changes might actually hurt EEEV-carrying mosquitoes, notes Unnasch. In the Florida panhandle, for example, Hurricane Michael knocked down trees in the swamps that served as a habitat for Culiseta melanura. However, uprooted trees leave behind water-logged hollows. “Those could be wonderful habitats, once they’re able to repopulate,” he says.

In addition, urbanization in places like Florida can intersect with climate change as it brings people’s homes and workplaces into closer contact with wild areas, including swamps where mosquitoes thrive. It may make spillover between animal reservoirs of a virus and people more common, Unnasch says.

While there’s evidence of general trends in mosquito activity in a changing climate, there are still a lot of unknowns about the ways EEEV transmission, specifically, might change. That’s likely in part because it’s so rare, Ryan says: It’s hard to find out about things that don’t happen very often.

However, because the disease is so dangerous, it’s good to be aware of the possibilities, she says. “Human cases are rare, but human cases are so bad. It’s useful to be alert to what could change.”

Types Of Loops In Swift And Examples With Code

Definition of Swift Loop

Swift loop is part of swift programming language which comes into play when a situation arises where the same piece of code needs to be executed multiple times. In swift loop the statements get executed in the form of a sequence where the first statement gets executed first followed by the second statement and so on. Swift loop gives programmers the privilege to call and reuse the same sequence of statements any specified number of times. Swift loop works according to the sequence of conditional and control statements provided within the flow of loop.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

Types of Loops in Swift

Types of loops in Swift with loop control statements are as follows :

While loop

For-in loop

Repeat…while loop / Do while loop

For-condition-increment loops

break statement

continue statement

1. While loop

Syntax :

while (condition_for_execution) { Conditional_statements for the body of the code }

Example 1: This program illustrates the while loop where a game of chess is played and if the condition is satisfied then the game is won as shown in the output.

Code:

import Foundation import Glibc var crrnt_lvl:Int = 1, trgt_lvl:Int = 8 let check_mate = true while (crrnt_lvl <= trgt_lvl) { if check_mate { print("Game is won (crrnt_lvl)") crrnt_lvl += 1 } } print("while_loop_outside.")

Output:

2. For-in loop

for-in loop in a swift programming language is used for iterating over the set of data structures like array and dictionary which have some sequence and order to follow and walkthrough. The elements present in the array or dictionary need to be in proper arrangement.

Syntax

for index_with_sequence { statements for the body of the code }

Example 2: This program illustrates the for-in loop in swift programming language which is used for iterating over the list of arrays with vehicle name for getting the number of tires present within the vehicles as shown in the output.

Code:

import Foundation import Glibc let no_of_tyres = ["car": 4, "truck": 6, "bike": 2] for (vehicle_nm, tyre_cnt) in no_of_tyres { print("(vehicle_nm)s that consists of (tyre_cnt) tyres.") }

Output:

3. Repeat…while loop or do-while loop

Repeat while loop or do while loop behaves in a way that whichever statement is present within the body with the conditional statement will get executed at least once in the entire execution. More important focus area is the termination condition which it tests for once in the entire search at the time of execution of the statements in an increment manner. Loop execution continues until execution of statement becomes false.

Syntax:

repeat { Statements_to_satisfy_body } while (conditional_statements)

Example 3: This program illustrates the repeat while loop where a game like snake and ladder is played where there is a scenario to repeat the conditional statements within the board game to make the entire game a win situation with the condition as shown in the output.

Code:

import Foundation import Glibc let finl_sqr = 36 var brd_gm = [Int](repeating: 0, count: finl_sqr + 1) brd_gm[05] = +12; brd_gm[08] = +11; brd_gm[10] = +09; brd_gm[12] = +02 brd_gm[20] = -05; brd_gm[22] = -13; brd_gm[24] = -02; brd_gm[28] = -09 var sqr = 0 var dc_rll = 0 repeat { sqr += brd_gm[sqr] dc_rll += 1 if dc_rll == 12 { dc_rll = 1 } sqr += dc_rll } while sqr < finl_sqr print("Game_Won!")

4. For-condition-increment Loops

There is not much difference in for-condition-increment loops in Swift programming language as compared to C programming language. The entire loop consists of an initialization phase followed by a test of the condition, increment with the statement, and then to execute every iteration of the loop.

Syntax:

For initialization_vl; condition; increment++ { Conditional_statements_for_body }

Example 4: This program illustrates the for-condition-increment loops in swift with version 4.0 which uses stride to give the same feature as for-condition-increment in Swift 3 versions and below as they are now obsolete for more requirements thus the features are deprecated to give the same output as shown below.

Code:

import Foundation import Glibc for indx in stride(from: 0, to: 8, by: 6) { print(indx) }

Output:

5. Break Statement

Whenever the situation is to come out of the running program without waiting to get a termination till the end of execution gives break statement the push and ability to be used frequently. In actual terms, break statement is mostly used for encountering a loop inside the body. The loop gets terminated at one go when the program control calls for break as soon as possible and will resume at the next statement in the following loop.

Syntax:

Switch statement { Case 1 : Case 2 : . . . Case n: Default : Break; } Print statement { Statement; }

Code:

import Foundation import Glibc let nm_symbl: Character = "X" var psbl_int_val: Int? switch nm_symbl { case "1", "X": psbl_int_val = 1 case "2", "X": psbl_int_val = 2 case "3", "X": psbl_int_val = 3 case "4", "X": psbl_int_val = 4 default: break } if let int_val = psbl_int_val { print("The int_value_comes (nm_symbl) out to be (int_val).") } else { print("the int_value_cannot come out for. (nm_symbl).") }

Output:

6. Continue Statement

Continue statement keeps a check on the iteration statement to keep the loop with a check whether to stop or start the execution once the start after the beginning of the loop is performed.

Syntax:

Case 1 : Stmnt_1; Case 2 : Stmnt_2; . . . . Case 3 : Stmnt_3; Default: continue { Print() }

Example 6: This program demonstrates the continue statement which instructs to continue the flow till the next iteration is made as shown in the output by removing the characters that are not needed.

Code:

import Foundation import Glibc let pzl_inpt = "hope_all_is_good" var pzl_otpt = "" let Remv_chrcters: [Character] = ["e", "h", "s", "g", "d", " "] for Charc_incl in pzl_inpt { if Remv_chrcters.contains(Charc_incl) { continue } pzl_otpt.append(Charc_incl) } print(pzl_otpt)

Output:

Conclusion

Swift loop is a looping pattern which is mostly performed in order to perform reusability of code especially for not to perform repetition of same components. All the iteration within the array, dictionary with a specified count, and sequence is performed using swift loop which provides many more features like flexibility, robustness, and versatility by removing the redundancy within the codebase.

Recommended Articles

We hope that this EDUCBA information on “Swift Loop” was beneficial to you. You can view EDUCBA’s recommended articles for more information.

Update the detailed information about Edutech: With Swift Playgrounds, Apple Has A Chance To Change Programming Forever on the Flu.edu.vn website. We hope the article's content will meet your needs, and we will regularly update the information to provide you with the fastest and most accurate information. Have a great day!