Techno Blender
Digitally Yours.
Browsing Tag

Stinky

How to Find the Stinky Parts of Your Code [Part XXIX]

Too Long; Didn't ReadCode smells are just hints of something that might be wrong. Most of these smells are not required to be fixed per se. (You should look into it, though.) You can find all the previous code smells (Part i - XXVIII) (https://hackernoon.com/the-one-and-only-software-design-principle-1x983ylp) Too Long; Didn't ReadCode smells are just hints of something that might be wrong. Most of these smells are not required to be fixed per se. (You should look into it, though.) You can find all the previous code…

Star Wars: The Clone Wars: The Movie: The Retro Review

Screenshot: LucasfilmSo much has happened to the Star Wars franchise in the last 14 years that it can be difficult to remember that the new canon actually began with Dave Filoni’s Clone Wars cartoon. It was retroactively added into Disney’s new Star Wars stories by virtue of being a pretty good show helmed by the guy who would eventually be the driving force behind Star Wars’ live-action TV series. It can be even harder to remember that The Clone Wars kicked off with a movie—a theatrically released movie—that was

Light-powered catalyst makes profitable hydrogen from stinky waste gas

Hydrogen sulfide famously stinks like rotten eggs, and contributes that eye-watering, low-hanging punch to the bouquet of the very worst farts. It's also toxic, corrosive, flammable and produced in large amounts as an expensive-to-treat by-product at petroleum refineries. Now, researchers have found an easy, profitable way to turn it into hydrogen.The current method for dealing with this stuff – an unavoidable waste product when you're refining oil or natural gas – is to heat it up with air to between 800-1,100 °C…

How to Find the Stinky Parts of Your Code [Part XXII]

Code smells are a classic. It smells because there are likely many instances where it could be edited or improved. Most of these smells are just hints of something that might be wrong. They are not required fixed per se… (You should look into it though.) Previous Code Smells Let's continue... Don't add IFs checking for the production environment. TL;DR: Avoid adding conditionals related to production Fail fast principle violation Lack of testability If completely necessary, model environments and test ALL of…

How to Find the Stinky Parts of Your Code [Part XXI]

Code smells are a classic. It smells because there are likely many instances where it could be edited or improved. Most of these smells are just hints of something that might be wrong. They are not required fixed per se… (You should look into it though.) Previous Code Smells Let's continue... When comparing to booleans, we perform magic castings and get unexpected results. TL;DR: Don't compare against true. Either you are true, or false or you shouldn't compare Hidden castings The least surprise principle…

How to Find the Stinky Parts of Your Code [Part XX]: We have Reached 100!

20 stories with 5 code smells each are 100 code smells, right? Previous Code Smells Let's continue... You don't own objects. TL;DR: don't use my as a name prefix. Lack of context Bijection Fault Remove my prefix. Change to a role suggesting name. Several old tutorials use the word 'my' as a lazy name. This is vague and lead to context mistakes. Wrong MainWindow myWindow = Application.Current.MainWindow as MainWindow; Right MainWindow salesWindow = Application.Current.MainWindow as MainWindow; /* Since…