How to Conditionally Add Attributes to Objects

Video processing with WebCodecs

Classic Path.DirectorySeparatorChar gotchas when moving from .NET Core on Windows to Linux

Issue #19

10/16/2020

A Byte of Coding Issue #19
Yellow?
Maaan jet lag is hard. I'm currently 7 hours behind local time, and I'm feeling it hard. Brain is frazzled. Eyes are droopy. Stomach is... hungry? Don't think that one is related, but oh well.

Anyway that, and the fact that I had stuff to do my last day in Moscow before flying, is why there weren't issues the last two days. Think of it as an impromptu holiday for you, organized by me, because I care about you. Heh.

Here's that issue.

PS. I haven't forgotten about trying to get the time of delivery changed to the morning, but then I'd need extra timezone information from all of my subscribers. Would you guys want to provide me that data to receive issues in the morning?
Or would you rather I just schedule this for a specific time each day and keep that constant from now on? Let me know!

How to Conditionally Add Attributes to Objects

Published: 15 October 2020
Tags: javascript


There are a ton of situations where it's useful to conditionally add something to an object in JavaScript, like when you're submitting data with a form and some fields are optional. In this ultra-short article (this summary might be longer?), David Walsh shows how you can use ?? (nullish coalescing operator) in JavaScript to conditionally add key/value pairs to objects.

Read Full Article

Video processing with WebCodecs

Published: 13 October 2020
Tags: browser, javascript


With the explosion of streaming services, like streaming movies, TV shows, or people live streaming, streaming libraries for browsers have also popped up all over the place. One disadvantage with most of these libraries is that they don't allow you to manipulate lower level features. Eugene Zemtsov has written an article introducing the WebCodecs API, which give developers access to browser built-in features like "video and audio decoders, video and audio encoders, raw video frames, and image decoders". Eugene also explains the workflow and provides examples for each of the individual components.

Read Full Article

Classic Path.DirectorySeparatorChar gotchas when moving from .NET Core on Windows to Linux

Published: 13 October 2020
Tags:
.net, azure


Running applications across different operating systems and build numbers can be a headache. Not only do you have to be aware of all of the major differences, but by not taking into consideration some more obscure ones, everything could break when you least expect it to. Scott Hanselman's informative article describes one of the most common issues in cross platform functionality, directory path separator character management, and how he fixed it when moving his app.

Read Full Article
Thanks for your Support! 

This newsletter is provided to you for free, but if you'd like to show your support and help out, you can donate on the Patreon page. It's not necessary, but it lets me know that I'm doing a good job and that you're finding value in the content.
Donate Here






This email was sent to <<Email Address>>
why did I get this?    unsubscribe from this list    update subscription preferences
A Byte of Coding · 750 Fowler St NW · Atlanta, GA 30332-1914 · USA

Stats (updated daily)

Sent: 666

Opens: 353

Clicks: 141

Link Clicks Clicks % Unique Clicks Unique Clicks %
How to Conditionally Add Attributes to Objects 73 52.14% 62 50.82
Video processing with WebCodecs 37 26.43% 32 26.23
Classic Path.DirectorySeparatorChar gotchas when moving from .NET Core on Windows to Linux 30 21.43% 28 22.95

Previous

Back to Issues

Next