#programminglife medias

Posts tagged on #programminglife

Top Posts Recent Posts

Top Posts

[3/10] Who is your coding partner?⁣
Mine is my 7 months old kitty Lucy (aka Lucy.js or Lucy Belle) 🐱. Every time I’m on my laptop she likes to take a peek and see what I am working on πŸ‘©πŸ»β€πŸ’»β£
⁣
Today was Day 3 of the #100daysofswift challenge and we reviewed things like operator overloading, switch statements, and more.⁣
⁣
From all operators that Swift has the one who caught my eye 😯 was the Nil-Coalescing Operator because it was my first time ever hearing about it.⁣
⁣
The nil-coalescing operator (a ?? b) unwraps an optional (a) if it contains a value, or returns a default value (b) if a is nil πŸ™…πŸ»β€β™€οΈ. The a) is always of an optional type. The b) must match the type that is stored inside (a).⁣
⁣
The nil-coalescing operator is written like the code below ⬇️⁣
a != nil ? a! : b⁣
⁣
The code above uses the ternary conditional operator and forced unwrapping (a!) to access the value wrapped inside (a) when (a) is not nil, and to return (b) otherwise πŸ”„. The nil-coalescing operator provides a more elegant way to encapsulate this conditional checking and unwrapping in a concise and readable form βœ”οΈβ£
⁣
Pretty interesting right? πŸ˜‰ Check it out for yourself and see how this can improve the code you write.⁣
⁣
Have a lovely week 🌸.

[3/10] Who is your coding partner?⁣ Mine is my 7 months old kitty Lucy (aka Lucy.js or Lucy Belle) 🐱. Every time I’m on my laptop she likes to take a peek and see what I am working on πŸ‘©πŸ»β€πŸ’»β£ ⁣ Today was Day 3 of the #100daysofswift challenge and we reviewed things like operator overloading, switch statements, and more.⁣ ⁣ From all operators that Swift has the one who caught my eye 😯 was the Nil-Coalescing Operator because it was my first time ever hearing about it.⁣ ⁣ The nil-coalescing operator (a ?? b) unwraps an optional (a) if it contains a value, or returns a default value (b) if a is nil πŸ™…πŸ»β€β™€οΈ. The a) is always of an optional type. The b) must match the type that is stored inside (a).⁣ ⁣ The nil-coalescing operator is written like the code below ⬇️⁣ a != nil ? a! : b⁣ ⁣ The code above uses the ternary conditional operator and forced unwrapping (a!) to access the value wrapped inside (a) when (a) is not nil, and to return (b) otherwise πŸ”„. The nil-coalescing operator provides a more elegant way to encapsulate this conditional checking and unwrapping in a concise and readable form βœ”οΈβ£ ⁣ Pretty interesting right? πŸ˜‰ Check it out for yourself and see how this can improve the code you write.⁣ ⁣ Have a lovely week 🌸 ...

Most Recent

πŸ‘€πŸ˜² Ever seen this before? These are cylindrical dyes that create precision wedges in metal parts like the one in the video! Similar machinery is used to creat screws.
Tag your friends! πŸ‘¬ Spread the knowledge! 🧠 πŸ“– β€’
β€’
β€’
Source: @tempo_engineering β€’
β€’
β€’
#metalworking #metalwork #metalworker #metalworks #metalsmith #metalsmithing #machining #cncmachining #manualmachining #engineeringmemes #engineering_memes #engineers #engineeringstudent #precisionmachining #manufacture #manufacturer #manufacturing #manufactured #fabricate #fabricated #fabrication #fabricating #programmer #programminglife #mechanicalengineering #mechanicalengineer #scienceteacher #physics #physicianassistant.

πŸ‘€πŸ˜² Ever seen this before? These are cylindrical dyes that create precision wedges in metal parts like the one in the video! Similar machinery is used to creat screws. Tag your friends! πŸ‘¬ Spread the knowledge! 🧠 πŸ“– β€’ β€’ β€’ Source: @tempo_engineering β€’ β€’ β€’ #metalworking #metalwork #metalworker #metalworks #metalsmith #metalsmithing #machining #cncmachining #manualmachining #engineeringmemes #engineering_memes #engineers #engineeringstudent #precisionmachining #manufacture #manufacturer #manufacturing #manufactured #fabricate #fabricated #fabrication #fabricating #programmer #programminglife #mechanicalengineering #mechanicalengineer #scienceteacher #physics #physicianassistant ...

Follow πŸ‘‰πŸ» @codewithmemes for more updates like this .
❀️❀️Don’t forget to double tap ❀️❀️
.
πŸ‘¬Tag your friends.
.
πŸ””Turn on post notifications for more updates.
.
πŸ“©Message @codewithmemes if you have memes,funny video, jokes and I will upload and give credit..

Follow πŸ‘‰πŸ» @codewithmemes for more updates like this . ❀️❀️Don’t forget to double tap ❀️❀️ . πŸ‘¬Tag your friends. . πŸ””Turn on post notifications for more updates. . πŸ“©Message @codewithmemes if you have memes,funny video, jokes and I will upload and give credit. ...