<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Magda Sawyer on Medium]]></title>
        <description><![CDATA[Stories by Magda Sawyer on Medium]]></description>
        <link>https://medium.com/@magda.sawyer?source=rss-99f383e52690------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zScSHcuUb5q9Rb6Hk0EpdQ.png</url>
            <title>Stories by Magda Sawyer on Medium</title>
            <link>https://medium.com/@magda.sawyer?source=rss-99f383e52690------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:41:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@magda.sawyer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why Traditional German Courses Fail Fide Exam Candidates (And What Works Instead)]]></title>
            <link>https://medium.com/fide-language-guide/why-traditional-german-courses-fail-fide-exam-candidates-and-what-works-instead-c7907a6c2e7a?source=rss-99f383e52690------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7907a6c2e7a</guid>
            <category><![CDATA[expats-in-switzerland]]></category>
            <category><![CDATA[german]]></category>
            <category><![CDATA[learning-german]]></category>
            <category><![CDATA[fide-exam]]></category>
            <dc:creator><![CDATA[Magda Sawyer]]></dc:creator>
            <pubDate>Sun, 15 Dec 2024 22:03:17 GMT</pubDate>
            <atom:updated>2025-01-04T20:13:38.469Z</atom:updated>
            <content:encoded><![CDATA[<h4>Alternative approach to learning a language that will finally help you learn German</h4><h3>Most people start learning German in group courses because it feels like the logical choice.</h3><p>The structured environment and textbook progression create a false sense of security — follow the book, complete the exercises, and you’ll reach your target level.</p><p>Reality proves quite different.</p><h3>The Problems with Traditional Courses</h3><p>In German courses in Switzerland, teachers often speak exclusively in German — even when explaining grammar to complete beginners.</p><p>While immersion works great to deduct rules just from listening and reading, it’s inefficient when explaining rules of the language… while using the language the person barely understands! Even more so if your goal is to pass your Fide exam quickly.</p><p>While it might seem cheaper than a private course, it is vastly inefficient, especially that you don’t really get much speaking practice and you spend a lot of time listening to other people who are also struggling and making mistakes.</p><p>You are also forced to progress at the pace of the course — too slow for the quick learners and dedicated students, and too fast for ones who have busy schedules or struggle with basics.</p><p>It seems like it is a lose-lose solution to learning a language.</p><h3>A More Effective Approach</h3><p>Different concepts challenge different learners.</p><p>Instead of following a rigid course structure, focus on what you personally find difficult.</p><p>Find a tutor on italki.com (15–30CHF/hour — simmilar or cheaper than a course) who can explain concepts clearly in English when needed. Use their expertise to address your specific challenges, and communicate clearly what suits you.</p><p>This targeted approach costs less and works better:</p><ul><li>20 hours of conversation practice (~400–600CHF)</li><li>3 specialized in person Fide prep sessions (~300 CHF)</li><li>Fide preparation book (~50 CHF)</li></ul><p>Between sessions, use free resources like Deutsche Welle’s Nico’s Weg and AI tools like ChatGPT for additional practice and clarification.</p><h3>What Actually Matters</h3><p>The Fide exam tests practical communication, not grammar perfection.</p><p>Focus on speaking practice and real-life situations. Use teachers and tools to help with specific difficulties, rather than following a one-size-fits-all course.</p><p>Remember: The quickest path to passing FIDE is addressing your personal challenges, not completing a textbook.</p><h3>Ready to Start Your FIDE Journey?</h3><p>Visit <a href="http://fide-prep.ch/">fide-prep.ch</a> for:</p><ul><li>Free study resources</li><li>Practice exercises</li><li>Free chapter download from our comprehensive book “Fide German A1/A2 Exam Prep”</li></ul><p>Don’t waste time and money on ineffective methods. Download your free chapter today and discover a more efficient way to pass your FIDE exam.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7907a6c2e7a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fide-language-guide/why-traditional-german-courses-fail-fide-exam-candidates-and-what-works-instead-c7907a6c2e7a">Why Traditional German Courses Fail Fide Exam Candidates (And What Works Instead)</a> was originally published in <a href="https://medium.com/fide-language-guide">FIDE Language Guide</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why ‘I’m Not a Language Person’ is a Myth]]></title>
            <link>https://medium.com/fide-language-guide/why-im-not-a-language-person-is-a-myth-c9e3535e962f?source=rss-99f383e52690------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9e3535e962f</guid>
            <category><![CDATA[german]]></category>
            <category><![CDATA[swiss-german]]></category>
            <category><![CDATA[expats-in-switzerland]]></category>
            <category><![CDATA[switzerland]]></category>
            <category><![CDATA[learning-german]]></category>
            <dc:creator><![CDATA[Magda Sawyer]]></dc:creator>
            <pubDate>Mon, 09 Dec 2024 13:28:40 GMT</pubDate>
            <atom:updated>2024-12-09T13:28:40.524Z</atom:updated>
            <content:encoded><![CDATA[<h4>Breaking Down the Mental Barriers to Learning German</h4><p>Have you ever said “I’m just not good at languages”?</p><p>I hear this all the time, especially from native English speakers in Switzerland.</p><p>My husband used this excuse for 10 years. Then last month, he passed his FIDE A2 German exam.</p><p>Not only that — he decided to continue learning German the day after and now believes he will be able to get to B1 spoken within a year.</p><p>What has changed?</p><p>Let’s break down why thinking you’re “not a language person” is holding you back — and what to do about it.</p><h3>The “Bad at Languages” Myth</h3><p>Think about it: you already speak at least one language (almost) perfectly — your native language. You learned it without textbooks, without grammar rules, and without stress.</p><p>You learned it by listening, trying, making mistakes, and keeping at it.</p><p>“But that’s different!” you might say. “I was a child then!”</p><p>Yes, learning as an adult is different. But in some ways, it’s actually easier. Here’s why:</p><ol><li><strong>You Already Know How Language Works</strong></li></ol><ul><li>You understand that words have meanings</li><li>You know how sentences are built</li><li>You can explain what you want</li><li>You understand context</li></ul><p><strong>2. You Have Adult Learning Advantages</strong></p><ul><li>You can take notes</li><li>You can spot patterns</li><li>You can use technology</li><li>You can plan your learning</li></ul><h3>Real Stories, Real People</h3><p>Let me tell you about my husband. He’s British and spent 10 years in Switzerland saying he wasn’t a “language person.”</p><p>He tried and failed so many times that one language school actually asked him to leave.</p><p>It turned out that because he never properly learned a foreign language, he had a lot of trouble understanding grammar explanations. It didn’t help that the explanations given by the teachers were all in German.</p><p>Once he identified the problem and changed the approach, he gained a lot of confidence, and actual skills.</p><p>Today, he can:</p><ul><li>Order in German at restaurants</li><li>Understand train announcements</li><li>Chat with the preschool teachers about our kids</li><li>Pass official language exam — Fide A1/2</li></ul><p>What changed? Not his “language ability.” He simply found the right approach.</p><h3>The Truth About Language Learning</h3><p>Here’s what most people get wrong about learning German:</p><p><strong>You Don’t Need to Be Perfect</strong></p><ul><li>Native speakers make mistakes too</li><li>Communication is more important than grammar</li><li>You don’t need to know every word</li><li>Progress matters more than perfection</li></ul><p><strong>You Don’t Need Special Talent</strong></p><ul><li>Language learning is a skill, not a talent</li><li>Skills can be learned</li><li>Everyone can improve</li><li>Small steps add up</li></ul><p><strong>You Don’t Need to Study for Hours</strong></p><ul><li>30 minutes a day can work</li><li>Consistent practice beats long study sessions</li><li>Real-life practice counts</li><li>Every little bit helps</li></ul><h3>What Actually Works</h3><p>Instead of focusing on being “good at languages,” focus on these simple steps:</p><p><strong>Listen More, Study Less</strong></p><ul><li>Use YouTube videos in German</li><li>Listen during your commute</li><li>Watch German TV with subtitles</li><li>Let your ears get used to the sounds</li></ul><p><strong>Start Small</strong></p><ul><li>Learn one useful phrase at a time</li><li>Practice in safe situations</li><li>Build confidence slowly</li><li>Celebrate small wins</li></ul><p><strong>Make It Real</strong></p><ul><li>Practice ordering coffee in German</li><li>Try reading simple signs</li><li>Use German numbers at shops</li><li>Say “Danke” instead of “Thank you”</li></ul><p><strong>Use Your Strengths</strong></p><ul><li>Are you social? Talk to people</li><li>Like reading? Start with simple books</li><li>Enjoy TV? Watch German shows</li><li>Love music? Learn German songs</li></ul><h4>Breaking the Mental Block</h4><p>The biggest barrier to learning German isn’t your ability — it’s believing you can’t do it. Here’s how to change that:</p><p><strong>Replace “I can’t” with “I’m learning”</strong></p><ul><li>Instead of “I’m bad at German”, say “I’m learning German”</li><li>Instead of “I’ll never get this”, say “I’m not there yet”</li></ul><p><strong>Focus on Progress, Not Perfection</strong></p><ul><li>Celebrate small victories</li><li>Notice daily improvements</li><li>Keep a learning diary</li><li>Remember where you started</li></ul><p><strong>Use Your “Why”</strong></p><ul><li>Want to feel more at home?</li><li>Need it for your permit?</li><li>Want to understand your neighbours?</li></ul><p>Keep this reason in mind every time you doubt if you can continue trying.</p><h3>Next Steps</h3><p>To help you prepare effectively, I’ve created a comprehensive study guide based on the official FIDE format. It includes:</p><ul><li>Practice scenarios</li><li>Study schedules</li><li>Test-taking strategies</li><li>Real-life preparation tips</li></ul><p><strong>Download the free sample here:</strong></p><p><a href="https://fide-prep.ch/">Prepare for Your Swiss Fide Language Test (A1/A2) | German Study Resources</a></p><p><a href="https://fide-prep.ch/?source=post_page-----6fa4c923dca8--------------------------------">Your ultimate FIDE study resources fide-prep.ch</a></p><p>Looking for more help? Download the free guide above or leave your questions in the comments.</p><p>Need more personal guidance? Contact me at me(at)fide-prep.ch</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9e3535e962f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fide-language-guide/why-im-not-a-language-person-is-a-myth-c9e3535e962f">Why ‘I’m Not a Language Person’ is a Myth</a> was originally published in <a href="https://medium.com/fide-language-guide">FIDE Language Guide</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Complete Guide to Fide Test Speaking Topics]]></title>
            <link>https://medium.com/fide-language-guide/the-complete-guide-to-fide-test-speaking-topics-34e3aa61a67d?source=rss-99f383e52690------2</link>
            <guid isPermaLink="false">https://medium.com/p/34e3aa61a67d</guid>
            <category><![CDATA[german-language]]></category>
            <category><![CDATA[fide-exam]]></category>
            <category><![CDATA[switzerland]]></category>
            <category><![CDATA[learning-german]]></category>
            <category><![CDATA[swiss-german]]></category>
            <dc:creator><![CDATA[Magda Sawyer]]></dc:creator>
            <pubDate>Sun, 08 Dec 2024 19:08:04 GMT</pubDate>
            <atom:updated>2024-12-08T19:08:04.655Z</atom:updated>
            <content:encoded><![CDATA[<h4>What to Expect in Your Swiss German Language Exam</h4><p>Based on the recent experience of my husband taking Fide exam, as well as many friends unsure of their German, it is the speaking part that causes most anxiety — but it shouldn’t.</p><p>As long as you know the topics covered by the exam, as well as exam structure, passing the speaking part of the exam should not scare you.</p><h3>What is the Fide Test?</h3><p>The Fide test is Switzerland’s official language test that assesses your ability to handle everyday situations in German.</p><p>While this article focuses on the speaking component, it’s worth noting that the test evaluates real-life communication skills rather than abstract grammar knowledge.</p><h3>Key Speaking Topics in the Fide Test</h3><p>Based on the official Fide curriculum, here are the main topics you’ll encounter:</p><p><strong>Housing (Wohnumgebung)</strong></p><ul><li>Talking to landlords about apartment issues</li><li>Discussing rent and contracts</li><li>Communicating with neighbors</li><li>Participating in tenant meetings</li></ul><p><strong>Media and Free Time (Medien und Freizeit)</strong></p><ul><li>Making plans with friends</li><li>Discussing TV shows or news</li><li>Handling library memberships</li><li>Responding to invitations</li></ul><p><strong>Transportation (Verkehr)</strong></p><ul><li>Buying train tickets and passes</li><li>Discussing travel plans</li><li>Handling emergency situations</li><li>Making reservations</li></ul><p><strong>Shopping (Einkäufe)</strong></p><ul><li>Purchasing furniture</li><li>Buying clothes and handling returns</li><li>Setting up phone contracts</li><li>Making complaints about defective items</li></ul><p><strong>Post Office, Banking, and Insurance (Post, Bank und Versicherungen)</strong></p><ul><li>Opening bank accounts</li><li>Sending packages</li><li>Making money transfers</li><li>Discussing insurance policies</li></ul><p><strong>Health (Gesundheit)</strong></p><ul><li>Describing symptoms to a doctor</li><li>Making medical appointments</li><li>Getting medications at a pharmacy</li><li>Handling emergency situations</li></ul><p><strong>Work (Arbeit)</strong></p><ul><li>Job interviews</li><li>Team meetings</li><li>Requesting vacation time</li><li>Writing work reports</li></ul><p><strong>Job Search (Arbeitssuche)</strong></p><ul><li>Registration at employment office (RAV)</li><li>Job applications</li><li>Career counseling</li><li>Interview practice</li></ul><p><strong>Further Education (Weiterbildung)</strong></p><ul><li>Course registrations</li><li>Discussing learning progress</li><li>Group work</li><li>Making presentations</li></ul><p><strong>Government Authorities (Behörden)</strong></p><ul><li>Extending residence permits</li><li>Registering with the municipality</li><li>Converting driving licenses</li><li>Handling official documents</li></ul><h3>How the Speaking Test Works</h3><p>The examiner will present you with everyday situations based on these topics. You’ll need to:</p><ul><li>Understand the situation</li><li>Respond appropriately</li><li>Ask relevant questions</li><li>Show you can handle basic interactions</li></ul><p><strong>Pro Tip:</strong> The key isn’t to speak perfect German — it’s to show you can communicate effectively in real-life situations. Focus on being understood rather than being perfect.</p><h3>How to Prepare Effectively</h3><ol><li>Practice Real Conversations Instead of memorizing phrases, engage in actual conversations about these topics. Talk to neighbors, shop assistants, or join language exchange groups.</li><li>Use Everyday Situations Turn your daily activities into learning opportunities. When you’re at the supermarket, post office, or train station, pay attention to the language being used.</li><li>Listen Actively Exposure to spoken German is crucial. Listen to Swiss German radio, watch local TV shows, or follow Swiss YouTubers. This helps you understand different accents and common expressions.</li></ol><p><strong>Remember:</strong> The Fide test is designed to assess your ability to handle real-life situations in Switzerland. If you can manage basic interactions in these areas, you’re already on the right track.</p><h3>Ready to Ace Your Fide Test?</h3><p>I’ve created a practical, no-nonsense guide that’s helped hundreds of English speakers pass their Fide test in record time. The <strong>“Swiss FIDE Test Prep: Speaking Practice and Study Materials” </strong>includes:</p><ul><li>Real conversation scripts for all 10 topic areas</li><li>Time-saving study strategies I discovered during my 10 years in Switzerland</li><li>Vocabulary needed to be able to talk about the topics</li><li>Cultural insights that will help you prepare for potential situations</li></ul><p>👉 <a href="https://fide-prep.ch/">Click here to download your free chapter and start your journey to German fluency</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34e3aa61a67d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fide-language-guide/the-complete-guide-to-fide-test-speaking-topics-34e3aa61a67d">The Complete Guide to Fide Test Speaking Topics</a> was originally published in <a href="https://medium.com/fide-language-guide">FIDE Language Guide</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FIDE Exam Switzerland: Complete Guide (2025)]]></title>
            <link>https://medium.com/fide-language-guide/fide-exam-switzerland-complete-guide-2024-6fa4c923dca8?source=rss-99f383e52690------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fa4c923dca8</guid>
            <category><![CDATA[swiss-german]]></category>
            <category><![CDATA[learning-german]]></category>
            <category><![CDATA[german]]></category>
            <category><![CDATA[switzerland]]></category>
            <dc:creator><![CDATA[Magda Sawyer]]></dc:creator>
            <pubDate>Tue, 03 Dec 2024 22:29:37 GMT</pubDate>
            <atom:updated>2025-01-11T10:42:21.975Z</atom:updated>
            <content:encoded><![CDATA[<p>As someone who has mastered multiple languages and passed various language exams (English C1, German Goethe B2, French DELF B2), I know that preparing for a language test is entirely different from learning a language.</p><p>Recently, I helped my British husband, who had never learned a foreign language before, prepare for his FIDE exam. Together, we developed a strategy that combines focused exam preparation with science-based language acquisition methods.</p><p>Let me share what you need to know about Switzerland’s official language test.</p><h3>What is the FIDE Test?</h3><p>The FIDE test is Switzerland’s official language assessment, evaluating skills from A1 to B1 levels. It is designed as a tool for assessment language skills that are required for granting different residence permits and citizenship.</p><p>What makes it unique is its focus on real Swiss situations, including:</p><ul><li>Work scenarios</li><li>Medical appointments</li><li>Interactions with local authorities</li><li>Daily life situations</li></ul><h3>Test Structure and Duration</h3><p>The FIDE test has two main parts:</p><ol><li><strong>Oral Part (40 minutes)</strong></li></ol><ul><li>Speaking skills</li><li>Listening comprehension</li><li>Tests practical communication abilities</li></ul><ol><li><strong>Written Part (60 minutes)</strong></li></ol><ul><li>Reading comprehension</li><li>Writing skills</li><li>Focuses on everyday scenarios</li></ul><h3>Cost Breakdown (Official 2024 Rates)</h3><p>You have three options:</p><ul><li>Complete test: CHF 250</li><li>Oral part only: CHF 170</li><li>Written part only: CHF 120</li></ul><h3>Who Can Take the Test?</h3><p>The test is available to:</p><ul><li>Anyone over 16 years old</li><li>People with disabilities (special arrangements available)</li><li>No prior certification required</li></ul><h3>Registration Process</h3><p>Registration process is fairly simple, but it is worth iterating over some important details:</p><ul><li>Register directly with an examination institution</li><li>Book at least 15 days before your preferred date</li><li>Choose between full test or individual parts</li><li>Bring valid ID on test day</li></ul><h3>Getting Your Results</h3><p>Timeline:</p><ul><li>Normal processing: 4 weeks</li><li>December-January tests: up to 6 weeks</li><li>Results sent directly by mail</li><li>No phone results available</li></ul><p><strong>Important:</strong> You’ll receive an official Language Passport with your results.</p><h3>How to Prepare</h3><p>When I helped my husband prepare, we discovered that traditional textbook learning wasn’t enough.</p><p>Most language books are focused on Germany, and a beginner language speaker often needs specific situation dialogs to play out to prepare for the exam.</p><p>Instead, we focused on:</p><ul><li>Real-life conversations at shops</li><li>Practical phrases for doctor visits</li><li>Essential words for municipality interactions</li><li>Common workplace expressions</li></ul><h4><strong>Combine Quick Wins with Long-term Learning</strong></h4><p>Our dual approach includes:</p><ul><li>Exam-specific phrases for quick confidence</li><li>Natural language acquisition through daily exposure</li><li>Strategic listening practice</li><li>Practical speaking exercises</li></ul><h4><strong>Balanced Practice Structure</strong></h4><p>Divide your study time into:</p><ul><li>Speaking practice</li><li>Reading Swiss materials</li><li>Writing everyday texts</li><li>Listening to Swiss German media</li></ul><h4><strong>Use Official Resources</strong></h4><ul><li>FIDE preparation materials</li><li>Swiss news websites</li><li>Local language exchange groups</li><li>Community bulletin boards</li></ul><h3>Ready to pass your FIDE exam without the stress?</h3><p>My comprehensive guide “FIDE German A1/A2 Exam Prep” breaks down exactly what you need to know — no more, no less.</p><h4><strong>→ Get the complete preparation guide on </strong><a href="https://www.amazon.de/-/en/Magdalena-Sawyer-ebook/dp/B0DQH6HHV4/ref=sr_1_1?crid=T3TJNTKX056T&amp;dib=eyJ2IjoiMSJ9.a-CY9TGqFbbP6JfGH30vKCneSyJFpk0ps4CcTs3LQcxocQgsICtwe16WjMZOPjTY7RxYpprOXQstloJ699lkBQ.Idpj71cqpFZtOZVhYnnY7n2niGxv6VJ_EPTJhLpHHw0&amp;dib_tag=se&amp;keywords=Fide+a2&amp;nsdOptOutParam=true&amp;qid=1734640406&amp;sprefix=fide+a2%2Caps%2C97&amp;sr=8-1"><strong>Amazon.de</strong></a></h4><ul><li>Real dialogue examples you’ll actually use</li><li>Emergency phrases for when you’re stuck</li><li>Focused vocabulary for all exam topics</li><li>90-day study plan for busy professionals</li></ul><p><strong>Download the free sample here:</strong></p><p><a href="https://fide-prep.ch/">Prepare for Your Swiss Fide Language Test (A1/A2) | German Study Resources</a></p><p>Looking for more help? Download the free guide above or leave your questions in the comments.</p><p>Need more personal guidance? Contact me at me(at)fide-prep.ch</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fa4c923dca8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fide-language-guide/fide-exam-switzerland-complete-guide-2024-6fa4c923dca8">FIDE Exam Switzerland: Complete Guide (2025)</a> was originally published in <a href="https://medium.com/fide-language-guide">FIDE Language Guide</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning new language: here is what I would do if I was starting from scratch]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@magda.sawyer/learning-new-language-here-is-what-i-would-do-if-i-was-starting-from-scratch-e8698370273c?source=rss-99f383e52690------2"><img src="https://cdn-images-1.medium.com/max/1023/1*Fwn4SW0OIzSKMgCriPtBwA.jpeg" width="1023"></a></p><p class="medium-feed-snippet">What watching my daughter&#x2019;s language journey taught me about learning a language</p><p class="medium-feed-link"><a href="https://medium.com/@magda.sawyer/learning-new-language-here-is-what-i-would-do-if-i-was-starting-from-scratch-e8698370273c?source=rss-99f383e52690------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@magda.sawyer/learning-new-language-here-is-what-i-would-do-if-i-was-starting-from-scratch-e8698370273c?source=rss-99f383e52690------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8698370273c</guid>
            <category><![CDATA[language-learning-journey]]></category>
            <category><![CDATA[language-learning]]></category>
            <category><![CDATA[language]]></category>
            <category><![CDATA[language-acquisition]]></category>
            <category><![CDATA[comprehensible-input]]></category>
            <dc:creator><![CDATA[Magda Sawyer]]></dc:creator>
            <pubDate>Mon, 04 Nov 2024 21:36:51 GMT</pubDate>
            <atom:updated>2024-11-04T22:00:22.546Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Are children really better at learning languages than adults?]]></title>
            <link>https://medium.com/@magda.sawyer/are-children-really-better-at-learning-languages-than-adults-8e3c943793c7?source=rss-99f383e52690------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e3c943793c7</guid>
            <category><![CDATA[learning-language-tips]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[language-acquisition]]></category>
            <category><![CDATA[learning-mandarin]]></category>
            <category><![CDATA[language-learning]]></category>
            <dc:creator><![CDATA[Magda Sawyer]]></dc:creator>
            <pubDate>Thu, 04 Jul 2024 15:11:51 GMT</pubDate>
            <atom:updated>2024-07-04T15:11:51.717Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GBeU3Ke0qqU3GFgp" /><figcaption>Photo by <a href="https://unsplash.com/@oriento?utm_source=medium&amp;utm_medium=referral">五玄土 ORIENTO</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It is a common theme in the language learning topic: children are so good at learning languages and it comes naturally to them. Us adults are forever cursed to struggle with the language.</p><p><strong>A bit over a year ago we signed up our at-the-time 2 year old daughter to a Mandarin playgroup, and shortly after I started a Chinese course myself.</strong></p><p>It didn’t take long to see how our capabilities to understand the language start to diverge. When the teachers give her commands in Chinese, she is following them and seems to understand what is going on. Me on the other hand, can only barely understand anything.</p><p>At the first sight, it is tempting to say that she learns faster simply because she is a child and this is what children do. But if you look closely, there is in fact big discrepancy in the amount of exposure we both get and the way we encounter the language.</p><h4>Number of hours of exposure</h4><p><strong>She attends the preschool once a week for 8 hours. My class is 1.5h long that is more than 5 times more — to match this I would have to attend a course 5 times a week for 1.5h!</strong></p><p>Her teachers speak only (or mostly) Chinese to her, they use simple, natural language, using a lot of gestures and clear context. When a teacher tells her to wash her hands, she is bringing her to the sink and runs water from the tap — not that difficult to figure out what is going on.</p><p>Our teacher gives us instructions in German, so the amount of time I hear Chinese is actually even less than this 1.5 hours a week.</p><p>If you think about acquiring their first language, children hear it every day, all day long for a year before they are even saying few simple words. <strong>At the age of 3, they have well over 10000 hours of language exposure, and yet they still make mistakes and have very limited vocabulary.</strong></p><p>Given this differences in amount of language exposure, can we really say that it is impossible for an adult to acquire the language given the same amount of hours? The problem is that we can never have a genuine comparison between the two as no adults will ever be able to make such a commitment to learn the second language.</p><h4><strong>Where do children have the edge over adults?</strong></h4><p>Kids have an edge over adults when it comes to learning a language, but I would argue that this is not what we think.</p><p>We allow them to make mistakes much longer than we allow ourselves to make mistakes. We allow them to reply in single words and say something that only ressembles the word they were aiming for.</p><p><strong>3-, 4- and 5-year old are still not masters of their mother tongue, and yet we expect ourselves to get to some level of proficiency studying few hours a week — nonsense.</strong></p><p>So the biggest advantage children actually have is time and exposure. We can hardly reproduce that in real life — unless you have nothing to else to do with your day than speaking very simple sentences and hearing tonnes of random videos in the target language.</p><p>What we can do however, is to understand that our biggest disadvantage is actually how little time we devote to language learning and be ok with making progress slower.</p><h4>What are adults better at?</h4><p>On the other hand, it is not all bad in the adult learner toolkit.</p><p>Unlike children, we can laverage concious learnig process before we actually acquire it.</p><p><strong>We can learn concepts and grammar, we can consciously pick which words are worth learning at the beginning. We can be more creative in the way we communicate and more motivated in the way we learn.</strong></p><p>Using me and my daughter as an example again — she understands majority of spoken Mandarin when communicating with her teacher but still speaks only single words. She can only use the language when in the context — you cannot really ask her “how do you say … in Mandarin?”</p><p>I have much more trouble understanding anything, but by now I know most important words from daily life as I prioritize them in learning. I can read and type simple text.</p><p><strong>My knowledge is more balanced — she might know all the animal names and shapes, but I can say what is my name, where I live and ask for directions.</strong></p><h4>What is my takeaway from that?</h4><p>As an adult, I am unlikely to reach complete proficiency in any language, but mainly due to my limited time and exposure. But I can learn using best methodologies guided by science and my own personal experiences to be most efficient in learning.</p><p><strong>There is no upper limit of what you can achieve, and you can always get just a little bit better.</strong></p><p>So instead on focusing on how you cannot master the language like a child, just keep learning and you will make progress, just a little bit slower.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e3c943793c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What people get wrong about time scarcity after having kids]]></title>
            <link>https://medium.com/@magda.sawyer/what-people-get-wrong-about-time-scarcity-after-having-kids-66854e485480?source=rss-99f383e52690------2</link>
            <guid isPermaLink="false">https://medium.com/p/66854e485480</guid>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[self-awareness]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[parenting]]></category>
            <dc:creator><![CDATA[Magda Sawyer]]></dc:creator>
            <pubDate>Fri, 31 May 2024 10:54:20 GMT</pubDate>
            <atom:updated>2024-05-31T12:33:43.336Z</atom:updated>
            <content:encoded><![CDATA[<h4>and how to make the most of what you have left</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K_P_w42kzj7PHNDe" /><figcaption>Photo by <a href="https://unsplash.com/@icons8?utm_source=medium&amp;utm_medium=referral">Icons8 Team</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Many new parents, when they wake up to their new reality have this instant realisation:</p><blockquote>Shit, I thought I was busy but I used to have so much time!</blockquote><p>As I am writing this, I am by myself at home with particularly annoying cold, after a night when my husband is away on a business trip. I have spent 2 hours in the evening putting my younger daughter to sleep — it took so long that even my older daughter gave up, turned off the night light and turned herself to the wall and tried to fall asleep by herself, which she never does. The night ended abruptly at 4a.m. when the young one couldn’t fall back asleep, for no apparent reason, and waking up the older one at 5a.m. By 6a.m. we all just wanted to cry. Now they are in the play school and I am sitting on the sofa sipping cold medicine.</p><p>It is true. Small children take up most of your waking hours and unfortunately some of the night time sleep as well. I still don’t know when is the age when that ends — our older 3.5 year old daughter doesn’t seem to be needing me much less than on day one. Yes, she doesn’t need a diaper change and she can eat and dress herself (although she often does not want to) but she still needs my time and attention for the majority of time I am with her. And compared to being a baby, she doesn’t take naps and the way she needs me is much more brain consuming. Not to mention now there are two of them fighting for my attention so most days feel like a rollercoaster.</p><p>And yet, in all this chaos, I am still able to run 2–3 times a week, I started a <a href="http://babagoeschina.com/">travel blog</a> and have been studying Mandarin for almost a year and <a href="https://mandarinweekly.substack.com/">documenting it online</a>.</p><p>Have I mastered some skill that other parents don’t have? Am I better at time management? How is it possible that I am able to do it all, while working 60% and spending 2 days at home with 2 kids?</p><h4>What is the secret?</h4><p>Unfortunately I am not a superhero and I have no clue how to be a productive parent. There are no recipes or plans to follow.</p><p>Having kids, you will probably make you give up a lot of things you enjoyed doing or potentially be doing.</p><blockquote>The things that are left are the things that are either extremely important to you or things you can do on autopilot.</blockquote><p>And for that reason I am able to do what I am doing with my time.</p><p>I have enjoyed sport for a long time — enough that it grew into a habit of mine and it is a thing I NEED to feel good about my life and myself. So running is to me a default time commitment and something easy to find motivation for even when I am really tired.</p><p>I have always enjoyed learning languages so it was almost an unnatural state for me NOT to be learning any new language for the last few years. And after our family trip to China last year I have decided that I really want to go on our next trip able to communicate with people and, given how much China has developed over the last I believe it is a smart time investment.</p><p>I started a <a href="https://www.babagoeschina.com/">family travel blog</a> because I have always enjoyed writing and it is a fun way to document our family trips. I also felt that there is lack of resources on the topic so it would be useful to put the experience we gained out there.</p><p>And having to think about it, travelling is another thing we managed to continue after starting a family. Even though most of the people I know are confident the best thing to do is to is to fly to an all-inclusive resort, we had some quite adventurous and unusual backpacking trips. We did a 3 week overland <a href="https://maggielard.com/into-the-cold-once-more/">train journey to Lofoten in Norway</a>, a <a href="https://maggielard.com/kungsleden-part-1/">2 week hut-to-hut hike in Arctic Sweden</a> and (most exciting of all) we went to <a href="https://www.babagoeschina.com/china-with-kids-all-you-need-to-know/">China</a> twice, for 8 weeks altogether and travelled around also by train.</p><p>Sometimes when I stop to think about it, I am myself surprised. But probably the easiest answer to give is: I do all those things because this is who I am, and this is who we are as a family. I have always done those things, I have done MUCH MORE of those things, but now I make time for them because this is what make me able to keep going.</p><h4>Some sad realisations</h4><p>It might seem like I am bragging, but I am not — I just want to highlight the truth that should be obvious to all of us. Having kids doesn’t change us as much as we think and we often use it as an excuse.</p><p>There are plenty of things that I don’t do, that I have been trying to achieve and that make me feel angry or guilty.</p><p>Our house is often a mess, partly of course because of the kids, but it is also because I am myself a messy person. I have been this way forever, and I would love to change but it will be hard, high friction change. I am so jealous of those perfect mums who seem to be able to maintain beautiful house AND have beautiful hair, make-up and outfits (another thing I could never pull off) but this is somehow out of the scope of my abilities.</p><p>I am postponing all the admin stuff, even opening letters, because I have always been terrible at this. And it is not worth dwelling on it.</p><p>My career is stagnant and I look with jealousy with people who can juggle career and kids and are successful, getting promotions and I wish I did too. But if I had to be perfectly honest, I am not doing any of the things I know would be necessary to get ahead and not because of the time issue but because of low motivation to do so.</p><p>It is sad to think about all the things that you end up not doing and blame it on parenthood, but frankly, many of them you wouldn’t do even if you had all the time in the world. We just lead ourselves to believe that “if only we had time” we would do xyz.</p><blockquote>More often than not it is our personality, abilities and lack of internal motivation rather than simply lack of time. Sometimes it is lack of time management skills, but rarely lack of time itself.</blockquote><h4>Finding the upside</h4><p>I feel that the thought that I am not doing something because it is simply not my priority (even if think it is or at least I know it should be) is liberating.</p><p>Because one thing you need to realise is that early stages of parenthood are not the time to reinvent yourself completely. You are very likely to follow the least resistance path for your brain. It is worth trying to do things that matter to you, but keep the list short and don’t overburden yourself with unnecessary stuff.</p><h4>You will always have very bad days when you feel like everything is falling apart</h4><p>Even though I feel I am doing a lot of positive things that make me happy and fulfilled, there are still days, like yesterday or even today, when I feel like I am losing control and everything is falling apart. Days when I snap at my kids simply because they do things that children do. Being a parent is a tough job and sometimes we don’t give ourselves enough credit for it.</p><p>Just make sure that you cherish the good days and find time for things that truly matter to you. And nothing more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66854e485480" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Mandarin as an adult]]></title>
            <link>https://medium.com/@magda.sawyer/learning-mandarin-as-an-adult-1ab6e87e2af2?source=rss-99f383e52690------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ab6e87e2af2</guid>
            <category><![CDATA[seed-2024]]></category>
            <category><![CDATA[learning-mandarin]]></category>
            <category><![CDATA[learning-chinese]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[lifelong-learning]]></category>
            <dc:creator><![CDATA[Magda Sawyer]]></dc:creator>
            <pubDate>Fri, 24 May 2024 16:03:13 GMT</pubDate>
            <atom:updated>2024-05-31T09:35:24.139Z</atom:updated>
            <content:encoded><![CDATA[<h4>My journey so far.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PMx0D4V1hs_FxbpV" /><figcaption>Photo by <a href="https://unsplash.com/@cherrybbybomb?utm_source=medium&amp;utm_medium=referral">Cherry Lin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p><em>This article has originally been posted on my blog </em><a href="http://babagoeschina.com/"><em>babagoeschina.com</em></a><em>, where you can find articles about our experience traveling around China as a family, tips on traveling with small children and learning Mandarin.</em></p><p>Less than a year ago I have embarked on a journey of learning Mandarin Chinese. I started out just attending a course on a weekly basis in the local Mandarin school, but the more I was learning, I became more engaged and now I am really motivated to achieve basic proficiency in the language to be able to get more out of our next trip to China.</p><p>In this blog post I will explore my experience so far — why I started learning, how I am studying, what tools I am using and what progress I have made so far.</p><p>If you are interested in following up more closely on the topic, I have also started a Substack channel where I am practicing writing in Mandarin and compiling a sort-of weekly beginner’s study resources newsletter:</p><p><a href="https://mandarinweekly.substack.com/">Mandarin Weekly | Magda | Substack</a></p><h3>How and why did I start learning Chinese?</h3><p>I have never thought about learning Mandarin. Until we signed our daughter up for Mandarin playschool and visiting China with family for the first time this was never my dream or my goal — surprising, since I am a keen language learner. Being a native Polish speaker, I am fluent English and German, achieved B2 level in French (although I wouldn’t go as far as to say I speak it at that level anymore), I have basic understanding of Swedish, Spanish and Russian. But I have never thought about learning a non-European language. Perhaps because when I was living still in Poland, travelling outside of Europe was such a remote idea that I didn’t see any need for learning Chinese, Arabic or any other language that is widely spoken outside of the West.</p><p>It was only after visiting an amazing bookstore in Chengdu called <a href="https://chengdu-expat.com/places/fangsuo-commune/">Fangsuo Commune</a>. Flipping threw countless books that I could not understand a word from and looking at beautiful caligraphy practice paper I realised that here I am, surrounded literally by millions of pages worth of knowledge, philosophy and culture, completely clueless. The language spoken by more than a billion people in the fastest growing economy in the world, in the country demonised in the Western press, and I have no idea what people are ACTUALLY thinking, saying, writing about.</p><p>This was the moment when I thought to myself how amazing it would be to get at least basic understanding of the language and maybe next time we go to China (by then we knew it would not be the last time), I would be able to ask people where they live, what they do, what they think.</p><p>Almost immediately I started looking for a language school in Zurich where I live, and found one that was a walking distance from my home — Sprachschule Yang — and I signed up for a beginner’s course.</p><h3>How did it feel at the very beginning?</h3><p>The first lesson of the course took place when I was still in China, so showing up the first time I already felt lost — we were practicing tones and I had no idea what I was hearing. I couldn’t really hear the differences in tones and the more I tried to get it right, the more mistakes I was making! And everyone else seemed so proficient! After one lesson they had 100% more experience than me I guess…</p><p>This feeling of getting lost didn’t go away for a while. Even though with time it was getting easier, I started to recognise some characters and understand some basic dialogs, but the progress was very slow. In fact, after a while, I had a feeling I am not able to keep up the pace — it was taking me more and more time to do the homework, and I couldn’t remember the new vocabulary. I guess starting such a big commitment as language learning when you have a toddler and a baby at home is not ideal…</p><p>But I was really determined so the last month I really commited myself to studying regularly and it has made a huge difference — lessons are much more enjoyable when you see yourself improving.</p><h3>How do I study?</h3><p>I am still experimenting with finding the best way to study that works for me. There is a bunch of different things I do:</p><ul><li>following the course book, doing my homework and trying to learn vocabulary from the book. I see this as the guideline of what to learn at my current level and the main motivation to keep going. We are in the third part of the A1 course and the people in the course who have made it so far are all very motivated, which helps me stay motivated myself.</li><li>going to Mandarin baby singing class with my daughters — it is something I am doing for them mainly, but this immersive experience is helping me a lot too! The songs help me learn basic things like colours, morning routine, body parts etc. The fact that the teacher speaks only Chinese to kids helps me to try to use the basics of my Mandarin to work out what is happening from the contex</li><li>To practice active use of the language, I write daily on <a href="https://mandarinweekly.substack.com/">Substack</a> — I write just a few sentences about my day, trying to use as much vocabulary and grammatical structures I know as possible. I write down the vocabulary I needed but couldn’t remember — this helps me learn exactly what I would need if I wanted to tell somebody what I want to say</li><li>To practice understanding, I started using Pimsleur app, which is primary listening-based app with lessons 30 minutes long each. So far I really enjoy it although I find it hard to focus for 30 minutes.</li><li>To memorise vocabulary I use <a href="https://medium.com/ankiweb.net">Anki</a> app — it allows me to practice with ready made decks that cover HSK1 and HSK2 vocabulary or make my own flashcards. The cool things about Anki is that it spaces out repetitions so that you practice vocabulary at the frequency you need.</li><li>on top of that I use Duolingo, Chineasy (to memorise Characters) and sometimes listen to Chinese learner’s podcasts (like ChinesePod) but I don’t do any of those things regularly at this point.</li></ul><p>At this time I spend around 1–1.5h daily learning Chinese — and I find this amount of time a sweet spot to be enough to see progress and not too much to burn out too quickly. The only thing that I still find missing from my studies is conversation classes — I might add some later this year.</p><p>With this level of commitment it seems I am on track to be able to take the HSK2 exam sometime later this year.</p><h3>What is my motivation to study?</h3><p>As I already mentioned at the beginning, I would love to be able to understand what Chinese people are actually thinking and saying, understand the culture more, as it seems to me it is so different to the West! We also intend to travel more and more to China, so knowing basic Chinese opens more doors and would make more off-the-beaten-path experiences possible.</p><p>Another reason why I am very motivated is that we signed up our daughter for Chinese playgroup and it gives her extra motivation when she sees mommy is also learning!</p><ul><li><a href="https://www.babagoeschina.com/is-it-worth-learning-chinese-5-reasons-why-you-should-do-it/">Why Learning Mandarin Is Worth Your Time?</a></li><li><a href="https://www.babagoeschina.com/child-learning-mandarin/">Reasons to teach your toddler Chinese</a></li></ul><h3>Is it difficult to learn Chinese as an adult?</h3><p>It is, definitely. Learning any language as an adult is difficult, especially that unlike for kids, there is nobody who would speak to us slowly, with simple words, about simple topics on daily basis. We need to figure out ourselves what works and what doesn’t and I find this being the hardest part. Which is why I started documenting online my own journey to see what works and to give other people resources so that they can dive into the right routine quicker than I did.</p><p>On the other hand, it isn’t as hard as I thought it would be! After 9 months of studying it doesn’t feel impossible anymore that one day, if I put those hours of study in, I will be ably to actually communicate. Chinese is difficult primarily because is so different from all European languages, that there is no way to “cheat your way” into converstation — you really need to know the vocabulary to be understood. However the basic grammar is not that complex — so that is a big plus.</p><h3>Final thoughts</h3><p>I hope this article will inspire you to take on Mandarin and believe it is not impossible to start learning it, even as an adult. For me the idea of the reward waiting on the other side and the immense challenge is a great motivation. And I hope that in few years I will be able to write an article about how I was able to become proficient in Chinese — but that is still hundreds if not thousands hours of study away!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ab6e87e2af2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flexbox-layout to Flexbox migration cheatsheet]]></title>
            <link>https://medium.com/@magda.sawyer/replacing-deprecated-flexbox-layout-with-flexbox-0e2768a7b670?source=rss-99f383e52690------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e2768a7b670</guid>
            <category><![CDATA[flexbox]]></category>
            <category><![CDATA[angular-17]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[flex-layout]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Magda Sawyer]]></dc:creator>
            <pubDate>Fri, 03 May 2024 09:45:34 GMT</pubDate>
            <atom:updated>2024-06-06T10:04:54.631Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to migrate specifc @angular/flexbox-layout features to standard Flexbox</h4><h4>Introduction</h4><p>@angular/flex-layout developed and maintained by Angular team that was quite a useful library to organise your layout is <a href="https://blog.angular.io/modern-css-in-angular-layouts-4a259dca9127">no longer developed and is now deprecated</a> for a simple reason — there are now standard CSS features — like <strong>Flexbox </strong>and <strong>CSS Grid</strong> that allow you to achieve same goals without the need for external library.</p><p>In this blog post you will find specific CSS classes which you can use to replace FlexLayout functionality.</p><h4>What is Flexbox?</h4><p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout">Flexbox</a> is a <strong>one-dimensional</strong> layout method that allows you to arrange items in rows or columns.</p><h4>Replacing FlexLayout with Flexbox</h4><p>Here is how to replace some specific FlexLayout library elements with Flexbox:</p><pre>//fxLayout=&quot;column&quot;<br>.column-layout {<br>  display: flex;<br>  flex-direction: column;<br>}<br><br>//fxLayout=&quot;row&quot;<br>.row-layout {<br>  display: flex;<br>  flex-direction: row;<br>  align-items: stretch;<br>}<br><br>//fxLayout=&quot;row wrap&quot;<br>.flex-wrap {<br>  display: flex;<br>  flex-direction: row;<br>  flex-wrap: wrap;<br>}<br><br>//fxFlex=&quot;100%&quot;<br>.flex-item-100 {<br>  flex: 1 1 100%;<br>}<br><br>//fxFlex=&quot;calc(50% - 10px)&quot;<br>.flex-item-calc-50 {<br>  flex: 1;<br>  width: calc(50% - 10px);<br>}<br><br>//fxFlex=&quot;nogrow&quot;<br>.flex-item-nogrow {<br>  flex-grow: 0;<br>}<br><br>//fxLayoutAlign=&quot;space-between&quot;<br>.space-between {<br>  display: flex;<br>  justify-content: space-between;<br>}<br><br>//fxLayoutAlign=&quot;center space-between&quot;<br>.space-between-center {<br>  display: flex;<br>  justify-content: space-between;<br>  align-items: center;<br>}<br><br>//fxLayoutAlign=&quot;center center&quot;<br>.center-center {<br>  display: flex;<br>  justify-content: center;<br>  align-items: center;<br>}<br><br>//fxLayoutGap=&quot;10px&quot;<br>.flex-gap {<br>  display: flex;<br>  gap: 10px;<br>}<br><br>//fxLayout.gt-xs<br>@media (min-width: 480px) {<br>  .your-setting {<br>    ...<br>  }<br>}<br><br>//fxLayout.lt-sm<br>@media (max-width: 600px) {<br>  .your-setting {<br>    ...<br>  }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e2768a7b670" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuring Cypress code coverage (Angular + Docker + Azure DevOps)]]></title>
            <link>https://medium.com/@magda.sawyer/configuring-cypress-code-coverage-angular-docker-azure-devops-6fae3e3166fa?source=rss-99f383e52690------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fae3e3166fa</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[e2e]]></category>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[cypress]]></category>
            <dc:creator><![CDATA[Magda Sawyer]]></dc:creator>
            <pubDate>Wed, 02 Nov 2022 12:59:52 GMT</pubDate>
            <atom:updated>2022-11-07T14:21:44.371Z</atom:updated>
            <content:encoded><![CDATA[<p>I decided to write this post as I myself struggled to find the right resources to configure code coverage for my Angular project — although there are resources out there that document what you need to do, but I struggled to follow any of them.</p><h3>Overview</h3><p>Let’s start with an overview of all the necessary steps you need to configure Cypress code coverage for an Angular application in Azure DevOps.</p><p>As a prerequisite you need to be running your tests against your Angular application in <strong>development mode</strong>.</p><p>I am stressing this point here, because when I started to set up Cypress tests inside Docker, I thought it would be a great idea to run it against a production build, with a configuration much resembling the desired production setup. This way you get the benefit of testing what you actually have (or intend to have) in production — it made perfect sense to me to do it that way.</p><p>Only when it came to configuring code coverage, I realised that the production build does not include all the necessary granularity that I need for my code coverage, as the code of my application is now transpiled into few compact Javascript files.</p><p>In order to be taking advantage of the ng e2e command that we are used to using with protractor, install Cypress using the following ng add command:</p><pre>ng add @cypress/schematic</pre><p>Make sure you answer ‘yes’ when asked if you want to use the ng e2e command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O99OnaifqToPfuZ2XZQNhw.png" /></figure><p>Once you have this setup ready, here are the steps you need to follow</p><ol><li>Instrument your code</li><li>Install and configure Cypress libraries to enable code coverage</li><li>Prepare code coverage report in a format that is understood by Azure DevOps (or a CI/CD pipeline of your choice)</li></ol><p>After specifying what needs to be done in order to configure code coverage, I will walk you through those steps in detail.</p><h3>Code instrumentation</h3><p>For me this was the hardest step that I was stuck on. First of all, until configuring code coverage for Cypress, I had no idea what code instrumentation is — I haven’t even heard this term. Secondly, the example on Cypress website is written in React.js, which means instrumentation of the code works slightly different and you are left alone — maybe not alone but only the rest of the Internet — to figure it out.</p><p>Code instrumentation means basically wrapping up your application code into additional functions that provide means of computation of the needed metrics.</p><p>Luckily, you don’t have to do it all by yourself — there are libraries that do it for you. The library that the code instrumentation for you is Instanbul.js. Additionally, you need to install plugins that will make Istanbul.js (nyc) work with your Typescript files.</p><pre>npm i -D nyc @jsdevtools/coverage-istanbul-loader @istanbuljs/nyc-config-typescript istanbul-lib-coverage</pre><p>After having done that, you need to configure Istanbul.js to exclude certain files from the code coverage calculations. This is done in a <strong>.nycrc</strong> configuration file, that you create in the root of your Angular project. This is also where you would configure the code coverage reporters that you want to use.</p><pre>{<br>  &quot;extends&quot;: &quot;@istanbuljs/nyc-config-typescript&quot;,<br>  &quot;all&quot;: true,<br>  &quot;exclude&quot;: [<br>    &quot;./coverage/**&quot;,<br>    &quot;cypress/**&quot;,<br>    &quot;./dist/**&quot;,<br>    &quot;**/*.spec.ts&quot;,<br>    &quot;./src/main.ts&quot;,<br>    &quot;./src/test.ts&quot;,<br>    &quot;**/*.conf.js&quot;,<br>    &quot;**/*.spec.ts&quot;,<br>    &quot;**/*.conf.js&quot;,<br>    &quot;**/main.ts&quot;<br>  ],<br>  &quot;reporter&quot;: [&quot;lcov&quot;, &quot;cobertura&quot;, &quot;text-summary&quot;]<br>}</pre><p>You also need to install webpack and provide a custom build configuration to be used for running your tests with code coverage.</p><pre>npm i -D webpack path @angular-builders/custom-webpack</pre><p>Once you have necessary dependencies in place, create a coverage.webpack.ts inside your cypress folder:</p><pre>import * as path from &#39;path&#39;;<br><br>export default {<br>  module: {<br>    rules: [<br>      {<br>        test: /\.(js|ts)$/,<br>        loader: &#39;@jsdevtools/coverage-istanbul-loader&#39;,<br>        options: { esModules: true },<br>        enforce: &#39;post&#39;,<br>        include: path.join(__dirname, &#39;..&#39;, &#39;src&#39;),<br>        exclude: [<br>          /\.(e2e|spec)\.ts$/,<br>          /node_modules/,<br>          /(ngfactory|ngstyle)\.js/,<br>        ],<br>      },<br>    ],<br>  },<br>}</pre><p>You will also need to modify angular.json file to use the custom webpack build configuration (note that “client” ist the name of the project — you need to replace it with your own project name):</p><pre>{<br>  &quot;$schema&quot;: &quot;./node_modules/@angular/cli/lib/config/schema.json&quot;,<br>  &quot;version&quot;: 1,<br>  &quot;newProjectRoot&quot;: &quot;projects&quot;,<br>  &quot;projects&quot;: {<br>    &quot;client&quot;: {<br>      (...)<br>      &quot;architect&quot;: {<br>        &quot;build&quot;: {<br>          &quot;builder&quot;: &quot;@angular-builders/custom-webpack:browser&quot;,<br>          (...)<br>          },<br>          &quot;configurations&quot;: {<br>            &quot;production&quot;: {<br>              (...)<br>            },<br>            &quot;development&quot;: {<br>             (...)<br>            },<br>            &quot;e2e&quot;: {<br>              &quot;extractLicenses&quot;: false,<br>              &quot;sourceMap&quot;: true,<br>              &quot;namedChunks&quot;: true,<br>              &quot;vendorChunk&quot;: true,<br>              &quot;customWebpackConfig&quot;: {<br>                &quot;path&quot;: &quot;./cypress/coverage.webpack.ts&quot;<br>              }<br>            }<br>          },<br>          &quot;defaultConfiguration&quot;: &quot;production&quot;<br>        },<br>        &quot;serve&quot;: {<br>          (...)<br>        },<br>        &quot;serve-coverage&quot;: {<br>          &quot;builder&quot;: &quot;@angular-builders/custom-webpack:dev-server&quot;,<br>          &quot;options&quot;: {<br>            &quot;browserTarget&quot;: &quot;client:build:e2e&quot;,<br>            &quot;proxyConfig&quot;: &quot;src/proxy-ci.conf.json&quot;<br>          },<br>        },<br>        &quot;test&quot;: {<br>          (...)<br>        },<br>        &quot;cypress-run&quot;: {<br>          (...)<br>        },<br>        &quot;cypress-open&quot;: {<br>          (...)<br>        },<br>        &quot;e2e&quot;: {<br>          &quot;builder&quot;: &quot;@cypress/schematic:cypress&quot;,<br>          &quot;options&quot;: {<br>            &quot;devServerTarget&quot;: &quot;client:serve-coverage&quot;,<br>            &quot;watch&quot;: true,<br>            &quot;headless&quot;: false<br>          },<br>          &quot;configurations&quot;: {<br>            &quot;production&quot;: {<br>              &quot;devServerTarget&quot;: &quot;client:serve-coverage:production&quot;<br>            }<br>          }<br>        },<br>        &quot;e2e-ci&quot;: {<br>          &quot;builder&quot;: &quot;@cypress/schematic:cypress&quot;,<br>          &quot;options&quot;: {<br>            &quot;browser&quot;: &quot;electron&quot;,<br>            &quot;devServerTarget&quot;: &quot;client:serve-coverage&quot;,<br>            &quot;headless&quot;: true,<br>            &quot;watch&quot;: false<br>          },<br>          &quot;configurations&quot;: {<br>            &quot;production&quot;: {<br>              &quot;devServerTarget&quot;: &quot;client:serve-coverage:production&quot;<br>            }<br>          }<br>        }<br>      }<br>    }<br>  }<br>}</pre><p>Add a script to run e2e tests with coverage to your package.json:</p><pre>&quot;e2e:ci&quot;: &quot;ng run client:e2e-ci&quot;,</pre><p>Before you are able to take advantage of your instrumented code to calculate code coverage, you also need to configure Cypress</p><h3>Cypress configuration</h3><p>First you need to install Cypress code coverage plugin</p><pre>npm install -D @cypress/code-coverage</pre><p>Then you need to modify your <strong>support/e2e.ts</strong> file to import code coverage support</p><pre>import &#39;@cypress/code-coverage/support&#39;</pre><p>The last thing you need to do is to modify your cypress.config.ts file:</p><pre><em>import</em> { defineConfig } <em>from</em> &#39;cypress&#39;<br><br><em>export</em> <em>default</em> defineConfig({<br>  reporter: &#39;junit&#39;,<br>  reporterOptions: {<br>    mochaFile: &#39;results/test-results-[hash].xml&#39;,<br>    toConsole: true<br>  },</pre><pre>(...)<br>  e2e: {<br>    setupNodeEvents(on, config) {<br>      <em>require</em>(&#39;@cypress/code-coverage/task&#39;)(on, config)<br>      // ...<br>      <em>return</em> config<br>    }<br>  }<br>})</pre><p>Now you can run the npm script and your tests should be executed:</p><pre>npm run e2e:ci</pre><p>The test reports will be generated inside the coverage folder using the specified reporters — if nothing is specified, you will find the results in<strong> .nyc_output/out.json</strong> file.</p><h3>Docker configuration</h3><p>As the e2e:ci command starts the custom webpack and then executes the tests, it really simplifies the Docker configuration, as Cypress can run inside the same container as our Angular frontend.</p><p>Here is the content of my Dockerfile. Note that the base image is one of the Cypress provided images.</p><p><em>npm cypress verify</em> steps checks if the installation was successsful — if you don’t have this step here explicitly, it will still be executed the first time the tests run, but this means you only find out at runtime that something went wrong. This command ensures that already at build time you know that Cypress instalation succeeded.</p><p>Dockerfile:</p><pre>FROM cypress/base:16.16.0<br><br>RUN mkdir -p /app<br><br>WORKDIR /app<br><br>COPY package.json .<br>COPY package-lock.json .<br><br>RUN npm install<br><br>COPY . .<br><br>RUN npx cypress verify<br><br>CMD [&quot;npm&quot;, &quot;run&quot;, &quot;e2e:ci&quot;]</pre><p>The simplest way to work with Docker is to specify the run configuration inside the docker-compose.yml file. This way all the containers are inside the same network by default, can be started in a certain order etc.</p><p>Here is my docker-compose.yml:</p><pre>version: &quot;3.9&quot;  <em># optional since v1.27.0<br></em>services:<br>  api:<br>    image: backend<br>    build: ./server<br>  webapp:<br>    image: frontend-e2e<br>    build:<br>      context: ./client<br>      dockerfile: Dockerfile<br>    environment:<br>      (...)<br>    volumes:<br>      - ./client/cypress:/app/cypress<br>      - ./client/.nyc_output:/app/.nyc_output<br>      - ./client/coverage:/app/coverage<br>      - ./client/results:/app/results</pre><p>Note the volumes section of the file. It specifies what folders will be mounted in the container. That means that both the container and the host have access to and can write in those files. All the Cypress screenshots/videos are there, as well as test reports which are generated by the code coverage.</p><h3>Azure DevOps configuration</h3><p>The important part when it comes to test coverage is that Azure DevOps support Cobertura and JaCoCo test reports, which means you need to have your test report in one of those formats to see them inside of Azure DevOps test results (see .nycrc config file). To see the tests results tab, I also added the test report configuration in my cypress.config.ts.</p><p>My simple Azure DevOps pipeline does the following:</p><ol><li>Build containers using docker-compose build</li><li>Run the containers using docker-compose run (this command exits once the specified container stops, unlike docker-compose up)</li><li>Publish screenshots (on failure) and videos (always) as artifacts</li><li>Publish code coverage as artifact (in case you want to download the reports)</li><li>Publish test results</li><li>Publish code coverage</li></ol><p>Here is my azure-pipelines.yml:</p><pre>trigger:<br>- master</pre><pre>pool:<br>  vmImage: ubuntu-latest</pre><pre>steps:<br>- task: DockerCompose@0<br>  displayName: Docker Compose Build<br>  inputs:<br>    containerregistrytype: &#39;Container Registry&#39;<br>    dockerComposeFile: &#39;**/docker-compose-pipeline.yml&#39;<br>    action: &#39;Run a Docker Compose command&#39;<br>    dockerComposeCommand: &#39;build&#39;<br>- task: DockerCompose@0<br>  displayName: Docker Compose Up<br>  inputs:<br>    containerregistrytype: &#39;Container Registry&#39;<br>    dockerComposeFile: &#39;**/docker-compose-pipeline.yml&#39;<br>    dockerComposeFileArgs: (...)<br>    action: &#39;Run a Docker Compose command&#39;<br>    dockerComposeCommand: &#39;run e2e&#39;<br>- task: PublishBuildArtifacts@1<br>  displayName: &#39;Publish Cypress Screenshot Files&#39;<br>  inputs:<br>    PathtoPublish: client/cypress/screenshots/<br>    ArtifactName: screenshots<br>  condition: failed()<br>- task: PublishBuildArtifacts@1<br>  displayName: &#39;Publish Cypress Videos&#39;<br>  inputs:<br>    PathtoPublish: client/cypress/videos/<br>    ArtifactName: videos<br>  condition: succeededOrFailed()<br>- task: PublishBuildArtifacts@1<br>  displayName: &#39;Publish Code Coverage Report&#39;<br>  inputs:<br>    PathtoPublish: client/coverage/<br>    ArtifactName: coverage-report<br>- task: PublishTestResults@2<br>  condition: succeededOrFailed()<br>  inputs:<br>    testRunner: JUnit<br>    testResultsFiles: &#39;**/test-results-*.xml&#39;<br>- task: PublishCodeCoverageResults@1<br>  inputs:<br>    codeCoverageTool: &#39;Cobertura&#39;<br>    summaryFileLocation: &#39;$(System.DefaultWorkingDirectory)/client/coverage/cobertura-coverage.xml&#39;</pre><p>And this is the result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gEXHKyzXucJVRnwWULNbaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EmHn1KY-SKPm5ntFW_HnGg.png" /></figure><p>Here is the github repository with the example — it is an Angular/.NET Core application.</p><p><a href="https://github.com/miedziana/cypress-in-action">GitHub - miedziana/cypress-in-action: Demo how to use Cypress with Angular, Docker &amp; Azure DevOps pipeline</a></p><p>And here is a Youtube video with the talk I gave on the topic during an Angular Zurich MeetUp:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F8k_dwtVv_JQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D8k_dwtVv_JQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F8k_dwtVv_JQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d2d137d59eb7aabf5e83a3bbfb3fa697/href">https://medium.com/media/d2d137d59eb7aabf5e83a3bbfb3fa697/href</a></iframe><p>I hope you will find this helpful!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fae3e3166fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>