نویسنده: post bot

  • Kodeco Podcast: All the Conferences – Podcast V2, S3 E3

    Kodeco Podcast: All the Conferences – Podcast V2, S3 E3


    Thank you for your patience as extraordinary life events turned our schedule topsy turvy. Here, at last, is our All the Conferences episode, featuring iOS community luminaries Mikalea Caron and Matt Heaney. Whether you’re a seasoned speaker or just conference-curious, this episode is packed with insights on how to choose the right events, travel smart, and even lower your costs—sometimes all the way down to zero!

    [Subscribe in Apple Podcasts] [Listen in Spotify] [RSS Feed]

    Interested in sponsoring a podcast episode? Check out our Advertise With Kodeco page to find out how!

    Show Notes

    Join Suz and Dru as they sit down with indie iOS developer Mikaela Caron and Atomic’s new mobile engineering manager Matt Heaney. These two are not only passionate conference attendees—they’re frequent speakers, community leaders, and strong advocates for developer connection and growth. From how to break into speaking, to choosing your first conference, to eating your way through the Swift world tour, there’s something here for every dev.

    Highlights from this episode:

    • How submitting a CFP (Call for Proposals) could get you into conferences for free—and help launch your speaking career.
    • Tips for discovering new conferences, including the magic of CocoaConferences.com.
    • How to network at conferences, even if you’re introverted—and why just saying “it’s my first time” can be a superpower.

    Mentioned in This Episode

    Contact Matt, Mikalea, and the Hosts

    Follow Kodeco

    Where to Go From Here?

    We hope you enjoyed this episode of our podcast. Be sure to subscribe in Apple Podcasts or Spotify to get notified when the next episode comes out.

    Hoping to learn more about a particular aspect of mobile development or life and work as a dev? Please write in and tell us and we’ll do our best to make that happen! Write in too if you yourself would like to be a guest or your have a particular guest request and we’ll see what we can do. Drop a comment here, or email us anytime at podcast@teamkodeco.com.



    Source link

  • Pixel’s Call Notes hints at automatic call recording for the US

    Pixel’s Call Notes hints at automatic call recording for the US


    Pixel 9 phone app

    Mishaal Rahman / Android Authority

    TL;DR

    • Pixel 9 phones in the US currently require manually activating Call Notes on every call to record, transcribe, and summarize them.
    • Google has been spotted testing automatic call recording within the Call Notes feature, indicating that automatic call recording could finally make its way to the US.
    • However, Google has previously stated that automatic activation wasn’t meant for public release and was limited to internal testing only. So the fate of the feature remains in the air.

    The Google Phone app, which is preloaded on several Android flagships, offers call recording in several regions globally, but not in the US (even though you can legally record calls in most states after adequate consent). Instead, users in the US have to use the Pixel 9’s Call Notes feature to record a phone call. However, Call Notes is only available per call, requiring users to consciously activate it whenever they want to record, transcribe, or summarize a phone call. Now, Google has been spotted working on automatic call recording within the Call Notes feature that would make life a lot easier, but we aren’t sure if the company ever plans to release it.

    You’re reading an Authority Insights story on Android Authority. Discover Authority Insights for more exclusive reports, app teardowns, leaks, and in-depth tech coverage you won’t find anywhere else.

    An APK teardown helps predict features that may arrive on a service in the future based on work-in-progress code. However, it is possible that such predicted features may not make it to a public release.

    Currently, on Pixel 9 series devices in the US, you can activate the Call Notes feature during a call to start recording it and receive an AI-generated summary and even the call transcript.

    However, this action is deliberate and manual, as you have to activate the feature by tapping the Call Notes button during every call you want to record. Needless to say, it’s pretty cumbersome if you want to use the feature on many calls.

    But what if you could generate call notes automatically? Google was spotted deliberating on the idea in August 2024, with settings to automatically start Call Notes for various phone calls.

    However, in a statement to Android Police back then, a Google spokesperson mentioned that the code related to automatic activation wasn’t meant for public release and was limited to internal testing only. Consequently, automatic Call Notes did not roll out to Pixel 9 users in the US at the time.

    Curiously, these options still exist within the Phone by Google app. With Phone v172.0 beta, Google has now tweaked the automatic Call Notes option to Automatic Call Recording, switching from an automatic summary to automatic recording. The options are also now limited to these two:

    1. Automatically record unknown numbers
    2. Automatically record these numbers

    We managed to activate the settings page for the feature, and here’s what it looks like right now:

    The above-mentioned new options are similar to the Call Recording settings, which users in several countries already have.

    However, the US doesn’t have the Call Recording feature in the Phone by Google app, so this is one roundabout way of bringing that functionality to the region. The revised settings also don’t mean Call Notes will automatically summarize or transcribe the recordings. But, presuming you have the recordings stored for later use, you can always select to do so later on calls that you need summaries and transcriptions for, so it won’t be all that inconvenient.

    It remains to be seen whether Google finally allows US users to automatically record calls and work its Call Notes magic. For now, users in the US must stick to the manual and cumbersome method of individually beginning Call Notes for every call they need to record, transcribe, and summarize. Given its utility and the progress the company has already made on the feature, we hope it will be released soon.

    Got a tip? Talk to us! Email our staff at news@androidauthority.com. You can stay anonymous or get credit for the info, it’s your choice.



    Source link

  • Android Developers Blog: Get ready for Google I/O: Program lineup revealed



    Posted by the Google I/O team

    The Google I/O agenda is live. We’re excited to share Google’s biggest announcements across AI, Android, Web, and Cloud May 20-21. Tune in to learn how we’re making development easier so you can build faster.

    We’ll kick things off with the Google Keynote at 10:00 AM PT on May 20th, followed by the Developer Keynote at 1:30 PM PT. This year, we’re livestreaming two days of sessions directly from Mountain View, bringing more of the I/O experience to you, wherever you are.

    Here’s a sneak peek of what we’ll cover:

      • AI advancements: Learn how Gemini models enable you to build new applications and unlock new levels of productivity. Explore the flexibility offered by options like our Gemma open models and on-device capabilities.
      • Build excellent apps, across devices with Android: Crafting exceptional app experiences across devices is now even easier with Android. Dive into sessions focused on building intelligent apps with
        Google AI and boosting your productivity, alongside creating adaptive user experiences and leveraging the power of Google Play.
      • Powerful web, made easier: Exciting new features continue to accelerate web development, helping you to build richer, more reliable web experiences. We’ll share the latest innovations in web UI, Baseline progress, new multimodal built-in AI APIs using Gemini Nano, and how AI in DevTools streamline building innovative web experiences.

    Plan your I/O

    Join us online for livestreams May 20-21, followed by on-demand sessions and codelabs on May 22. Register today and explore the full program for sessions like these:

    We’re excited to share what’s next and see what you build!




    Source link

  • On TikTok, Chinese Manufacturers Open a New Line in the Trade War

    On TikTok, Chinese Manufacturers Open a New Line in the Trade War


    Chinese manufacturers are flooding TikTok and other social media apps with direct appeals to American shoppers, urging people to buy luxury items straight from their factories. And amid the threats of sky-high tariffs on Chinese exports, Americans seem to be all in.

    The pitch in the videos is that people can buy leggings and handbags exactly like those from brands like Lululemon, Hermes and Birkenstock, but for a fraction of the price. They claim, often falsely, that the products are made in the same factories that produce items for those brands.

    American influencers have embraced the videos, promoting the factories and driving downloads of Chinese shopping apps like DHGate and Taobao as a way for shoppers to save money if the price of goods skyrockets under President Trump’s tariffs on Chinese imports. DHGate was among the 10 most downloaded apps in Apple’s and Google’s app stores last week.

    The videos are surging in popularity on TikTok and Instagram, racking up millions of views and thousands of likes. Many of the posts also seem to have elicited Americans’ sympathy for China in comments, such as “Trump bullied the wrong country” and “China won this war.”

    The videos offer a rare outlet for Chinese factory owners and workers to speak directly to American consumers through social media apps that are technically banned in China. And their popularity in America highlights increasingly vocal support for China on social media, similar to the outcry over the federal government’s potential ban of TikTok.

    “It’s activating people politically in a similar way that you saw when we were going to cancel TikTok, but this time in the context of tariffs and the overall relationship with the two countries,” said Matt Pearl, a director who focuses on technology issues at the Center for Strategic and International Studies. “It does demonstrate their ability to communicate with American consumers to drive a message about our dependence on Chinese goods.”

    Mr. Pearl suggested that the Chinese government might be allowing the videos to proliferate, since it has otherwise tended to discourage its citizens from posting videos that infringe on trademarked products from Western countries.

    The Chinese Embassy in Washington and the Chinese Consulate in New York did not return requests for comment.

    The volume of TikTok videos urging users to source products directly from Chinese factories soared almost 250 percent during the week of April 13, according to Margot Hardy, an analyst at Graphika, a social network analysis firm. On TikTok, the hashtag #ChineseFactory had 29,500 posts on April 23; on Instagram, it had 27,300 posts.

    Retail experts — and vendors in China — say it’s unlikely that the most viral videos, which claim to be manufacturers for brands like Lululemon and Hermes, are peddling authentic products from those labels. Those factories often sign strict nondisclosure agreements and are unlikely to destroy their long-term relationships with major brands in exchange for hawking a few goods through direct sales, said Sucharita Kodali, a retail analyst at Forrester.

    The Chinese government appears to be allowing the videos to proliferate, she said.

    “A Lululemon or Chanel’s interests right now in China are probably No. 100 on the list of things that the Chinese trade minister and officials there are concerned about,” Ms. Kodali said. Manufacturers may also be rushing to close sales before new tariffs on May 2 add hefty fees to parcel shipments from China, she said.

    Still, questions around the veracity of the goods aren’t stopping demand.

    Elizabeth Henzie, a 23-year-old in Mooresville, N.C., said she found the manufacturing costs and retail prices described in the videos eye-opening. She made a spreadsheet of factories that claim they are selling dupes of sneakers, luxury bags and more, and linked it in her TikTok profile. That post has attracted more than one million views.

    Ms. Henzie is now working as an affiliate partner for DHGate, where she will receive free products from the company for review videos and a commission if people make a purchase through her links. She said she believed that people in China were ultimately trying to help Americans.

    “Seeing how other countries are coming together to try to help American consumers has boosted my morale,” Ms. Henzie said. “Even though it’s a negative thing that’s going on in America, I think it’s also pushing us to come together.”

    TikTok, which is owned by the Chinese company ByteDance, has been taking down some of the videos, pointing to a policy that prohibits the promotion of counterfeit goods. But many have persisted through reposts. Even older videos about Chinese manufacturing are spreading in personalized news feeds amid major interest in the tariffs. TikTok declined to comment further, and Instagram, which is owned by Meta, declined to comment on the videos.

    Sellers in China say they started posting the videos when sales fell. Yu Qiule, the 36-year-old co-owner of a manufacturing company in Shandong Province in eastern China that makes fitness equipment, said he started posting to TikTok in mid-March to find more customers after the tariffs prompted a wave of canceled orders.

    Louis Lv, the general manager of export at Hongye Jewelry Factory in Yiwu, in Zhejiang Province, said his firm started posting on TikTok at the end of 2024, driven by a slowdown in domestic sales.

    But he has watched the viewership in his TikTok videos soar since the Trump administration announced the tariffs. “The philosophy of Chinese businessmen is we will go wherever the business is,” he said in an interview.

    In one of the most popular TikTok videos, a man is holding what he says is a Hermes Birkin bag while claiming to share its production costs from a factory. (The original video and account have been removed, but versions of the video are still widely circulating through reposts from other users.) He says that the purse costs less than $1,400 to manufacture but that the French luxury retailer sells it for $38,000 solely for the label. The man claimed that he used the same leather and same hardware to replicate the handbags without the logo, offering them for $1,000.

    A spokesman for Hermes said its bags “were 100 percent made in France,” and declined to comment further. A spokeswoman for Birkenstock said that the videos showed “knockoffs” and that its footwear was engineered and produced in the European Union. The company said that it had contacted TikTok and that initial videos were deleted on April 15.

    Lululemon, which has also been the target of viral TikTok videos from manufacturers who claim to sell its leggings for just $5, said it had been in touch with TikTok to remove false claims. Lululemon said in an emailed statement that it didn’t work with the manufacturers in the videos and warned consumers to be aware of potentially counterfeit products and misinformation.

    Vanessa Friedman and Isabelle Qian contributed reporting from New York.



    Source link

  • Kodeco Podcast: App Marketing Secrets – Podcast V2, S3 E2

    Kodeco Podcast: App Marketing Secrets – Podcast V2, S3 E2


    In our final episode of 2024, we’re thrilled to welcome fellow podcasters Malin Sundberg and Kai Dombrowski of Triple Glazed Studios. With a decade of experience in iOS and Mac development, Malin and Kai share how they’ve built thriving indie apps, established roots in new communities worldwide, and achieved repeated App Store features. Tune in to learn actionable insights that can help you grow your indie app business too!

    [Subscribe in Apple Podcasts] [Listen in Spotify] [RSS Feed]

    Interested in sponsoring a podcast episode? Check out our Advertise With Kodeco page to find out how!

    Show Notes

    Join Suz, Jenn, and Dru as they chat with Malin and Kai, the creative minds behind Triple Glazed Studios, to explore what it takes to run a successful indie app business. They share how they’ve combined their passion for creating great features with marketing strategies that feel natural—even for developers who’d rather code than pitch.

    Highlights from this episode:

    • Align your development cycles with Apple’s release calendar for maximum impact.
    • Research bylines to find writers and creators who are passionate about your niche.
    • Attend or host meetups to network and connect with like-minded developers (and make great friends along the way!).

    Mentioned in This Episode

    Contact Kai, Malin, and the Hosts

    Follow Kodeco

    Where to Go From Here?

    We hope you enjoyed this episode of our podcast. Be sure to subscribe in Apple Podcasts or Spotify to get notified when the next episode comes out.

    Hoping to learn more about a particular aspect of mobile development or life and work as a dev? Please write in and tell us and we’ll do our best to make that happen! Write in too if you yourself would like to be a guest or your have a particular guest request and we’ll see what we can do. Drop a comment here, or email us anytime at podcast@teamkodeco.com.



    Source link

  • What’s new in the Jetpack Compose April ’25 release



    Posted by Jolanda Verhoef – Developer Relations Engineer

    Today, as part of the Compose April ‘25 Bill of Materials, we’re releasing version 1.8 of Jetpack Compose, Android’s modern, native UI toolkit, used by many developers. This release contains new features like autofill, various text improvements, visibility tracking, and new ways to animate a composable’s size and location. It also stabilizes many experimental APIs and fixes a number of bugs.

    To use today’s release, upgrade your Compose BOM version to 2025.04.01 :

    implementation(platform("androidx.compose:compose-bom:2025.04.01"))
    

    Note: If you are not using the Bill of Materials, make sure to upgrade Compose Foundation and Compose UI at the same time. Otherwise, autofill will not work correctly.

    Autofill

    Autofill is a service that simplifies data entry. It enables users to fill out forms, login screens, and checkout processes without manually typing in every detail. Now, you can integrate this functionality into your Compose applications.

    Setting up Autofill in your Compose text fields is straightforward:

    TextField(
      state = rememberTextFieldState(),
      modifier = Modifier.semantics {
        contentType = ContentType.Username 
      }
    )
    

    For full details on how to implement autofill in your application, see the Autofill in Compose documentation.

    Text

    When placing text inside a container, you can now use the autoSize parameter in BasicText to let the text size automatically adapt to the container size:

    Box {
        BasicText(
            text = "Hello World",
            maxLines = 1,
            autoSize = TextAutoSize.StepBased()
        )
    }
    

    moving image of Hello World text inside a container

    You can customize sizing by setting a minimum and/or maximum font size and define a step size. Compose Foundation 1.8 contains this new BasicText overload, with Material 1.4 to follow soon with an updated Text overload.

    Furthermore, Compose 1.8 enhances text overflow handling with new TextOverflow.StartEllipsis or TextOverflow.MiddleEllipsis options, which allow you to display ellipses at the beginning or middle of a text line.

    val text = "This is a long text that will overflow"
    Column(Modifier.width(200.dp)) {
      Text(text, maxLines = 1, overflow = TextOverflow.Ellipsis)
      Text(text, maxLines = 1, overflow = TextOverflow.StartEllipsis)
      Text(text, maxLines = 1, overflow = TextOverflow.MiddleEllipsis)
    }
    

    text overflow handling displaying ellipses at the beginning and middle of a text line

    And finally, we’re expanding support for HTML formatting in AnnotatedString, with the addition of bulleted lists:

    Text(
      AnnotatedString.fromHtml(
        """
        <h1>HTML content</h1>
        <ul>
          <li>Hello,</li>
          <li>World</li>
        </ul>
        """.trimIndent()
      )
    )
    

    a bulleted list of two items

    Visibility tracking

    Compose UI 1.8 introduces a new modifier: onLayoutRectChanged. This API solves many use cases that the existing onGloballyPositioned modifier does; however, it does so with much less overhead. The onLayoutRectChanged modifier can debounce and throttle the callback per what the use case demands, which helps with performance when it’s added onto an item in LazyColumn or LazyRow.

    This new API unlocks features that depend on a composable’s visibility on screen. Compose 1.9 will add higher-level abstractions to this low-level API to simplify common use cases.

    Animate composable bounds

    Last year we introduced shared element transitions, which smoothly animate content in your apps. The 1.8 Animation module graduates LookaheadScope to stable, includes numerous performance and stability improvements, and includes a new modifier, animateBounds. When used inside a LookaheadScope, this modifier automatically animates its composable’s size and position on screen, when those change:

    Box(
      Modifier
        .width(if(expanded) 180.dp else 110.dp)
        .offset(x = if (expanded) 0.dp else 100.dp)
        .animateBounds(lookaheadScope = this@LookaheadScope)
        .background(Color.LightGray, shape = RoundedCornerShape(12.dp))
        .height(50.dp)
    ) {
      Text("Layout Content", Modifier.align(Alignment.Center))
    }
    

    a moving image depicting animate composable bounds

    Increased API stability

    Jetpack Compose has utilized @Experimental annotations to mark APIs that are liable to change across releases, for features that require more than a library’s alpha period to stabilize. We have heard your feedback that a number of features have been marked as experimental for some time with no changes, contributing to a sense of instability. We are actively looking at stabilizing existing experimental APIs—in the UI and Foundation modules, we have reduced the experimental APIs from 172 in the 1.7 release to 70 in the 1.8 release. We plan to continue this stabilization trend across modules in future releases.

    Deprecation of contextual flow rows and columns

    As part of the work to reduce experimental annotations, we identified APIs added in recent releases that are less than optimal solutions for their use cases. This has led to the decision to deprecate the experimental ContextualFlowRow and ContextualFlowColumn APIs, added in Foundation 1.7. If you need the deprecated functionality, our recommendation for now is to copy over the implementation and adapt it as needed, while we work on a plan for future components that can cover these functionalities better.

    The related APIs FlowRow and FlowColumn are now stable; however, the new overflow parameter that was added in the last release is now deprecated.

    Improvements and fixes for core features

    In response to developer feedback, we have shipped some particularly in-demand features and bug fixes in our core libraries:

      • Make dialogs go edge to edge: When displayed full screen, dialogs now take into account the full size of the screen and will draw behind system bars.

    Get started!

    We’re grateful for all of the bug reports and feature requests submitted to our issue tracker – they help us to improve Compose and build the APIs you need. Continue providing your feedback, and help us make Compose better.

    Happy composing!



    Source link

  • Cowabunga! Head Back to the 80s in TMNT: Shredder’s Revenge

    Cowabunga! Head Back to the 80s in TMNT: Shredder’s Revenge


    You’ll join everyone’s favorite heroes in a half shell—Leonardo, Raphael, Donatello, Michelangelo—on a totally tubular adventure. April, Master Splinter or Casey Jones are also playable characters for the first time.

    Inspired by the 1980s, you’ll definitely enjoy old-school gameplay enhanced with new fighting mechanics. The design is nostalgic and features full-color pixel art just like the arcade games of the decade.

    As you might expect, the heroes need to foil the latest evil plan from Krang and Shredder.

    The game features more than a dozen levels where you’ll smash, crash, and fight your way through enemies like Baxter Stockman or the Triceraton.

    Along with touchsreeen controls, the game is also compatible with a Bluetooth controller for better control of your fighting moves.

    TMNT: Shredder’s Revenge is a free download on the App Store. An $8.99 in-app purchase will unlock the entire game.



    Source link

  • Boeing Will Sell Its Digital Businesses for $10 Billion

    Boeing Will Sell Its Digital Businesses for $10 Billion


    Boeing announced on Tuesday that it would sell a handful of navigation, flight planning and other businesses for more than $10.5 billion as the company works to refocus on manufacturing planes and other aircraft.

    The company, which also wants to reduce its large debt, said it would sell four businesses from a digital unit to Thoma Bravo, a private equity firm specializing in software. Those include Jeppesen, which provides navigational charts and information to pilots, and ForeFlight, an app that helps plan flights and monitor weather.

    “This transaction is an important component of our strategy to focus on core businesses, supplement the balance sheet and prioritize the investment-grade credit rating,” Kelly Ortberg, Boeing’s chief executive, said in a statement.

    The company said it expected to close the all-cash deal by the end of the year. The digital unit that houses those businesses employs about 3,900 people, though some of the unit will remain at Boeing. The company employed about 172,000 people as of the start of the year.

    Mr. Ortberg, who joined the company last summer, made streamlining Boeing’s operations a strategic goal as he tries to address concerns about the quality of the company’s planes that were raised after a panel blew off a 737 Max plane during a January 2024 flight near Portland, Ore.

    No one was seriously injured in that incident, but it renewed worries about Boeing’s planes several years after two fatal crashes of the 737 Max in 2018 and 2019. Safety and quality issues have stymied Boeing’s commercial plane production in recent years. Then last fall, production of the 737 Max, Boeing’s most popular commercial plane, came to a near standstill during a two-month worker strike.

    In January, Mr. Ortberg said the company had resumed production of the Max, and was making more than 20 of those planes per month as well as five of the larger 787 Dreamliners.

    That is well below the goal the company had set before last year’s panel incident of delivering 50 of its 737s and 10 of its 787s per month. Boeing has about 5,500 outstanding commercial plane orders, valued at hundreds of billions of dollars.



    Source link

  • Explore VoC platforms recognized in 2025 Gartner® Magic Quadrant™  

    Explore VoC platforms recognized in 2025 Gartner® Magic Quadrant™  


    The 2025 Gartner ® Magic Quadrant™ for Voice of the Customer (VoC) Platforms delivers an in-depth evaluation of the recognized vendors in this dynamic and rapidly evolving space. This report examines vendors through two critical lenses: their ability to execute and the completeness of vision, with valuable insights into the strengths, cautions, and distinctive capabilities that define each platform’s position within the market.  

    A Gartner Magic Quadrant is a culmination of research in a specific market, giving you a wide-angle view of the relative positions of the market’s competitors.  This research helps you identify vendors whose VoC platforms are best equipped to help them achieve their CX and business objectives. 

    What you should expect to learn  

    This year’s Magic Quadrant reveals how VoC platforms are evolving to enhance customer experience. We believe you should expect:   

    • Custom category weighting: Weight critical vendor categories to get insights tailored to your business priorities. 
    • Historical perspective: See how the vendor space has evolved through the years to better understand overall trends and upstarts. 
    • User reviews: Read what your peers have to say about the solutions they’ve implemented. 

    Benefits of reading the report  

    The Magic Quadrant also provides valuable benefits for organizations looking to invest in a VoC platform:  

    • Read independent vendor analysis: Evaluate vendors based on execution and vision to find the right fit for your needs.  
    • Discover market trends & innovations: It’s not just about where vendors stand today but how they’re positioning themselves for tomorrow. As AI, real-time analytics, and seamless integration rise in importance, the report helps you evaluate which platforms are ahead of the curve and adaptable to future needs.  
    • Simplify and expedite vendor selection: By applying a graphical treatment and a uniform set of evaluation criteria, a Magic Quadrant helps you quickly ascertain how well technology providers are executing their stated visions and how well they are performing against Gartner’s market view.  
    • Pinpoint which vendors deliver on ROI: Use a Gartner Magic Quadrant as a first step to understanding the technology providers you might consider for a specific investment opportunity. 

    How to access the report  

    You can access the full 2025 Gartner Magic Quadrant™ for Voice of the Customer Platforms report by downloading it here.  

    GARTNER is a registered trademark and service mark of Gartner, Inc. and/or its affiliates in the U.S. and internationally, and MAGIC QUADRANT is a registered trademark of Gartner, Inc. and/or its affiliates and are used herein with permission. All rights reserved.  

    Gartner does not endorse any vendor, product, or service depicted in our research publications, and does not advise technology users to select only those vendors with the highest ratings or other designation. Gartner research publications consist of the opinions of Gartner’s research organization and should not be construed as statements of fact. Gartner disclaims all warranties, expressed or implied, with respect to this research, including any warranties of merchantability or fitness for a particular purpose.  



    Source link

  • Swift Apprentice: Fundamentals | Kodeco

    Swift Apprentice: Fundamentals | Kodeco


    This is a book for complete beginners to Apple’s modern programming language — Swift.

    All the code in the book works inside of Xcode’s easy-to-use playgrounds.
    That means you can focus on core Swift language concepts, such as classes, protocols,
    and generics, instead of getting bogged down in the details of building apps.

    This is a companion book to the SwiftUI Apprentice;
    the SwiftUI Apprentice focuses on building apps, while Swift Apprentice focuses
    on the Swift language itself.

    This is a book for complete beginners to Apple’s modern programming language — Swift.

    All the code in the book works inside of Xcode’s easy-to-use playgrounds. That means you can focus on core Swift language concepts, such as classes, protocols, and generics without getting bogged down by extraneous details.

    This…


    more

    This section tells you a few things you need to know before you get started, such as what you’ll need for hardware and software, where to find the project files for this book and more.

    The chapters in this section will introduce you to the very basics of programming in Swift. From the fundamentals of how computers work up to language structures, you’ll cover enough of the language to be able to work with data and organize your code’s behavior.

    The section begins with some groundwork to get you started.
    Once you have the basic data types in your head, it’ll be time to do things with that data, and finally, you’ll learn about an essential data type, optionals, that let you express potentially missing data.

    These fundamentals will get you Swiftly on your way, and before you know it, you’ll be ready for the more advanced topics that follow. Let’s get started!

    This is it, your whirlwind introduction to the world of programming! You’ll begin with an overview of computers and programming and then say hello to Swift playgrounds, where you’ll spend your coding time for the rest of this book.
    You’ll learn some basics, such as code comments, arithmetic operations, constants and variables. These are some of the fundamental building blocks of any language, and Swift is no different.

    You’ll learn about handling different types, including strings that allow you to represent text.
    You’ll learn about converting between types and get an introduction to type inference, which simplifies your life as a programmer.
    You’ll learn about tuple types which allow you to group values of any type together.

    You’ll learn how to make decisions and repeat tasks in your programs using syntax to control the flow.
    You’ll also learn about Booleans, which represent true and false values, and how you can use these to compare data.

    Continuing the theme of code not running in a straight line, you’ll learn about another loop known as the `for` loop. You’ll also learn about switch statements that are particularly powerful in Swift.

    Functions are the basic building blocks you use to structure your code in Swift. You’ll learn how to define functions to group your code into reusable units.

    This chapter covers optionals, a special type in Swift representing either a value or the absence of a value. By the end of this chapter, you’ll know why you need optionals and how to use them safely.

    So far, you’ve mostly seen data in the form of single elements. Although tuples can have multiple pieces of data, you have to specify the size upfront; a tuple with three strings is a completely different type from a tuple with two strings, and converting between them isn’t trivial. In this section, you’ll learn about collection types in Swift. Collections are flexible “containers” that let you store any number of values together.

    There are several collection types in Swift, but three important ones are arrays, dictionaries and sets. You’ll learn to apply custom operations and loop over collection types. Finally, you’ll revisit strings, which are collections of characters.

    All the collection types share similar interfaces but have very different use cases. As you read through these chapters, keep the differences in mind, and you’ll begin to develop a feel for which type you should use when.

    Arrays are the most common collection type you’ll run into in Swift that keep an ordered list of elements of the same type. On the other hand, Dictionaries let you look up elements efficiently using a key. Finally, Sets maintain an unordered collection of unique elements. You’ll learn all about these three types in this chapter.

    Once you have collections of items, you will want to perform operations with them.
    For example, sort them, filter them, add them up, etc. Swift gives you a powerful
    language construct, the closure, that lets you infinitely customize the behavior
    of such operations. In this chapter, you will learn about Swift’s most common
    collection algorithms and customize them with closures.

    Text processing is an essential application for any computer language, and String is Swift’s powerhouse type for text handling. Strings are bi-directional collections of Character types that balance correctness, performance and ease of use.

    Searching for patterns in text is a common task you’ll encounter in your programming travels. Swift provides a power type called Regex to perform that task. Using standard syntax, you can express complicated matching patterns to extract information from text. You can use an all-new regex builder syntax for improved compile-time support, which maximizes clarity and readability.

    You can create your own type by combining variables and functions into a new type definition. When you create a new type, you give it a name; thus, these custom types are known as named types. Structures are a powerful tool for modeling real-world concepts. You can encapsulate related concepts, properties and methods into a single, cohesive model.

    Swift includes four kinds of named types: structures, classes, enumerations and protocols. You’ll learn here how other named types use the concepts of methods and properties, how they differ, and where you want to use each.

    You’ll also learn about protocols & generics, which are types and methods that take as input other types instead of just methods, as well as custom types to build larger and complex things!

    The standard library has many useful types like Int, Double and String. However, it sadly does not include a Pizza type. Structures are types that can store named properties and define actions and behaviors. In this chapter, you will define your custom structure types and begin building a Pizza empire.

    In this chapter, you’ll learn about stored and computed properties, along with some tricks, such as how to monitor changes in a property’s value and delay the initialization of a stored property.

    Methods are merely functions that reside in a structure. You’ll look closely at how methods and initializers help you build full-featured, custom types.

    Structures let you define your own named types with custom properties and methods. In this chapter, you’ll get acquainted with classes, which are much like structures but have important differences that make them an invaluable addition to your toolbox.

    This chapter continues with class types describing how Swift supports the traditional concepts of inheritance and polymorphism. You will also learn about two-phase class initialization that you will need to build proper class hierarchies. This discussion will lay the foundation for using these concepts with Swift’s value types.

    In this chapter, you’ll learn about enumerations, a type that groups related, mutually exclusive case values. You’ll also learn about uninhabited types and finally discover what an optional is under the hood.

    Protocols are a type that can bridge common behaviors between structs,
    classes, and enums by defining an interface or template for an actual concrete type. Protocols enable polymorphism across all types and overcome the single inheritance limitation you saw with classes.

    In this chapter, you’ll learn what generics are, how to write generic code, and loop back and look at the generic types in Swift – dictionaries, arrays, and optionals – from this new perspective.



    Source link