As a dev, you know working with JSON can be tedious. 🔨 That's where Dart 3 and pattern matching can step in! Pattern matching can make your code easier to understand, less prone to errors, and more. → https://goo.gle/3zkdFMG
Thanks for sharing
Skip to main content
As a dev, you know working with JSON can be tedious. 🔨 That's where Dart 3 and pattern matching can step in! Pattern matching can make your code easier to understand, less prone to errors, and more. → https://goo.gle/3zkdFMG
Thanks for sharing
To view or add a comment, sign in
🌟 This feature is a game-changer for anyone looking to streamline their development process and boost productivity. 🚀 What are your thoughts on this new feature? How do you think it will impact your workflow? Let's discuss in the comments! 💬 #Dart3 #PatternMatching #JSON #CodingTips #DeveloperTools #CleanCode
As a dev, you know working with JSON can be tedious. 🔨 That's where Dart 3 and pattern matching can step in! Pattern matching can make your code easier to understand, less prone to errors, and more. → https://goo.gle/3zkdFMG
To view or add a comment, sign in
Delving deeper into Dart with a simple yet powerful task: finding even and odd numbers in a list and calculating their sums! 🔍💡 Excited to share this code snippet showcasing how Dart's versatility makes tasks like these a breeze. Check out the code below and dive into the world of efficient number crunching! 💻✨ #Dart #Flutter #CodingChallenge #NumberManipulation #DeveloperLife"
To view or add a comment, sign in
"🚀 Excited to share a quick tip on integer variable declaration in Dart! 💡 When working with integers in Dart, simply declare them using the 'int' keyword followed by the variable name. Here's a snippet to illustrate: dart int number = 42; #DartProgramming #CodingTips #ProgrammingLanguages"
To view or add a comment, sign in
Did you know that in Dart there is an HttpStatus abstract class that brings the constants to statusCode? This can be very useful to make the code more readable and avoid typing errors. #flutter #flutterdev #cleanCode
To view or add a comment, sign in
🔒🦀 Rust's visibility and test access patterns are AWESOME In Rust, the visibility of items (functions, structs, enums, etc.) is controlled by the pub keyword, which makes them public and thus accessible from outside the module in which they are declared. If the pub keyword is omitted, the item is private by default, meaning it can only be accessed from within the current module or its child modules. An interesting thing happen during tests, where you can access methods directly, despite them being private (i.e., not marked with pub). This happens because Rust tests are usually written in the same file as the code they are testing, within a module marked with #[cfg(test)]. This creates a submodule for tests, and in Rust, child modules have access to their parent modules' private items. This design is intentional, as it allows for thorough testing of a module's internals without exposing those internals as part of the module's public API. It's a balance between encapsulation and testability: you can keep your internal implementation details hidden from users of your library, while still being able to access those details in your tests to ensure everything works as expected. In summary, your private methods, although not accessible from the outside, are accessible within the tests because the tests are defined in the same file (and effectively the same module hierarchy) as the method itself, allowing them to bypass the usual access restrictions that would apply if they were being accessed from outside the module.
To view or add a comment, sign in
Did you know? As of Dart 3.5.0 (master channel), you can preview the experimental JsonCodable macro. This macro *augments* your classes with fromJson and toJson methods, and it works in realtime as you edit your code (no code generation is needed). Note that as of May 2024, JsonCodable is not configurable and has two big limitations: - field names must exactly match the keys in the maps - default values are not supported
To view or add a comment, sign in
Mobile Software Engineer - Flutter @KIB Bank | Fintech | Digital Transformation | Healthcare Digital Service
**No code generation is needed** Dart 3.5.0 you can preview the experimental JsonCodable macro. This macro *augments* your classes with fromJson and toJson methods, and it works in realtime as you edit your code. Note that as of May 2024: - field names must exactly match the keys in the maps - default values are not supported yet
To view or add a comment, sign in
#Day12 : Jump Game Source Code : https://lnkd.in/giJrxe53 Difficulty level : Medium Platform : LeetCode PROBLEM: You are given an integer array nums. You are initially positioned at the array's first index, and each element in the array represents your maximum jump length at that position. Return true if you can reach the last index, or false otherwise. Example 1: Input: nums = [2,3,1,1,4] Output: true Explanation: Jump 1 step from index 0 to 1, then 3 steps to the last index. Example 2: Input: nums = [3,2,1,0,4] Output: false Explanation: You will always arrive at index 3 no matter what. Its maximum jump length is 0, which makes it impossible to reach the last index. #leetcode #dailychallenge
To view or add a comment, sign in
Software Developer | Learning & Building with React, Node, MySQL & AWS | Jack of All Trades at BMW St. John's | B.A. (Psychology/Sociology)
Here’s a fun experiment: ask 10 co-workers or friends to draw the Canadian flag, from memory, in three minutes or less. You will see 10 different versions of the maple leaf, and probably none of them will match the actual one on the flag. 😄 For more consistent formatting of flags, I recommend Country Flags API. It's easily integrated into projects with a sports or geography component, adding a nice pop of colour to your app or website. I used it in my most recent coding project, which required 30 different flags used in 90 different instances throughout its UI. Easier than drawing a maple leaf, I promise. 🍁 Country Flags API: https://flagsapi.com/ My F1 data analysis app - The Final Lap: https://lnkd.in/e6-GW6pG
To view or add a comment, sign in
Software Engineer | Machine Learning Engineer | Certified AWS Developer - Associate | Azure AZ-900 | Learn to Grow, Grow to Learn
#LC_Feb_28_24_88 🚀 Daily LeetCode Challenge 🚀 📅 Date: February 28, 2024 🔍 Today's Question: Find Bottom Left Tree Value (https://lnkd.in/e-bBXCUC) 🗒️ Explanation: To find the bottom-left value in a binary tree, we can utilize a breadth-first search (BFS) approach. We start by initializing a queue and enqueue the root node. Then, we iterate through the nodes level by level. At each level, we append the right child first and then the left child to the queue. By doing so, the leftmost node at the deepest level will eventually be the last node visited in the BFS traversal. Once we've traversed all nodes, the value of the last node visited will be the bottom-left value of the tree. Let's keep sharpening our problem-solving skills and diving deep into algorithms! 💡👩💻 #LeetCode #DailyCodingChallenge #BinaryTree #BreadthFirstSearch #TreeTraversal 💻 Code:
To view or add a comment, sign in
Web & Mobile Developer | Serial Entrepreneur
4wI agree!