# conditionals

Published articles for conditionals.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Kotlin Conditionals: When and If

DevFeed: [Kotlin Conditionals: When and If](<https://devfeed.tech/articles/kotlin-conditionals-when-and-if-25050.md>)

Original publisher: [Read original article](<https://typealias.com/start/kotlin-conditionals/>)

Author: author@typealias.com (Dave Leeds)

Published: 2020-05-05T00:00:00Z

Content type: tutorial

Language: en

Sources: [Dave Leeds on Kotlin - typealias.com](<https://devfeed.tech/sources/dave-leeds-on-kotlin-typealias-com.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [conditionals](<https://devfeed.tech/tags/conditionals.md>), [if-expression](<https://devfeed.tech/tags/if-expression.md>), [if-statement](<https://devfeed.tech/tags/if-statement.md>), [introduction](<https://devfeed.tech/tags/introduction.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [learn-to-program](<https://devfeed.tech/tags/learn-to-program.md>), [programming](<https://devfeed.tech/tags/programming.md>), [when-expression](<https://devfeed.tech/tags/when-expression.md>), [writing-code](<https://devfeed.tech/tags/writing-code.md>)

### AI overview

A beginner-oriented chapter explaining Kotlin conditionals through branches, execution paths, and a Goldilocks porridge temperature example.

### Source excerpt

In real life, we do different things depending on the circumstances. For example, if it's raining outside, you'll probably grab an umbrella. If it's sunny outside, you might grab your sunglasses. We do different things depending on the weather. Similarly, we often need our code to do different things in different situations, so in this chapter, we'll look at Kotlin's conditionals. Goldilocks and the Three Branches You might have heard the fairy tale of Goldilocks and the Three Bears.

## Computed Property Macros

DevFeed: [Computed Property Macros](<https://devfeed.tech/articles/computed-property-macros-40621.md>)

Original publisher: [Read original article](<https://eviltrout.com/blog/2013-07-07-computed-property-macros/>)

Published: 2013-07-07T00:00:00Z

Content type: tutorial

Language: en

Sources: [Robin Ward](<https://devfeed.tech/sources/robin-ward.md>)

Topics: [Ember](<https://devfeed.tech/topics/ember.md>), [Caching](<https://devfeed.tech/topics/caching.md>), [Handlebars](<https://devfeed.tech/topics/handlebars.md>), [conditionals](<https://devfeed.tech/topics/conditionals.md>), [functions](<https://devfeed.tech/topics/functions.md>)

Tags: [caching](<https://devfeed.tech/tags/caching.md>), [conditionals](<https://devfeed.tech/tags/conditionals.md>), [ember](<https://devfeed.tech/tags/ember.md>), [functions](<https://devfeed.tech/tags/functions.md>), [templates](<https://devfeed.tech/tags/templates.md>)

### AI overview

This tutorial explains how Ember computed property macros can simplify computed properties in applications using Handlebars templates. It describes their use as shorter, clearer alternatives for common computed-property patterns and notes that they can reduce repeated property names while supporting cached intermediate results.

### Source excerpt

Computed Properties By design, Handlebars templates don't allow complex expressions. You are given an {{#if}} block helper, but it can only evaluate whether something is "truthy" (aka true, a non-empty string or array or other value that is not undefined or null.) For example, you can't do something like this: {{#if (eyes.length == 1) && (horns.length == 1) && flies && (color == 'purple') && eatsDudes}} <i>It was a one-eyed, one-horned, flying purple people eater!</i> {{/if}} Handlebars encourages you to use a single evaluation for your logic:

## Learning C

DevFeed: [Learning C](<https://devfeed.tech/articles/learning-c-25383.md>)

Original publisher: [Read original article](<https://smileykeith.com/2013/01/27/learning-c/>)

Author: Keith Smiley

Published: 2013-01-28T06:59:00Z

Content type: opinion

Language: en

Sources: [Keith Smiley](<https://devfeed.tech/sources/keith-smiley.md>)

Topics: [C](<https://devfeed.tech/topics/c.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [Objective-C](<https://devfeed.tech/topics/objective-c.md>)

Tags: [books](<https://devfeed.tech/tags/books.md>), [c](<https://devfeed.tech/tags/c.md>), [code](<https://devfeed.tech/tags/code.md>), [conditionals](<https://devfeed.tech/tags/conditionals.md>), [learning](<https://devfeed.tech/tags/learning.md>)

### AI overview

The author recommends Learn Code the Hard Way as a challenging resource for building a foundational understanding of C. They explain that experience with Objective-C and C++ provided some familiarity with data types and conditionals but was not enough to write non-trivial C programs.

### Source excerpt

I've been using Objective-C and C++ for a while now. While I feel like I know them pretty well I had absolutely no grasp on C itself. Obviously when using those languages you pick up a bit about data types and conditionals but you couldn't take that knowledge and completely write something non-trivial in C. Because of this I figured it might be worth some time so I started looking for viable resources. In that search I found Learn Code the Hard way. They publish physical and online books on different languages and so far I've found it to be a delight. It's not your typical easy walk through and on lessons 17 (of 51) you'll start actually having to think. This for me has been much better so far than typically online learning where the introductory course ends on how to write a for loop. If you're interested in picking up a C background I would definitely recommend you start here.