# Enumeration

Published articles for Enumeration.

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

## Implementing Enumerations In Go

DevFeed: [Implementing Enumerations In Go](<https://devfeed.tech/articles/implementing-enumerations-in-go-22228.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2023/09/implementing-enumerations-in-golang.html>)

Published: 2023-09-21T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [C#](<https://devfeed.tech/topics/csharp.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [code](<https://devfeed.tech/tags/code.md>), [coding](<https://devfeed.tech/tags/coding.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [enumeration](<https://devfeed.tech/tags/enumeration.md>), [go](<https://devfeed.tech/tags/go.md>), [golang](<https://devfeed.tech/tags/golang.md>), [implement](<https://devfeed.tech/tags/implement.md>), [readability](<https://devfeed.tech/tags/readability.md>)

### AI overview

A tutorial on implementing enumeration-like types in Go. It compares Go's lack of native enumerations with C# enumerations and presents a struct-based pattern intended to provide compiler protection and improve type safety for a defined set of string values.

### Source excerpt

Introduction Prior to coding in Go, I was writing software in C#. In C# enumerations can be declared and the associated type can be used in functions and as fields in a struct. The compiler won't allow a value of the enumerated type to be passed or set that doesn't belong to the defined set. This is something that I have missed since coding in Go. Go doesn't have enumerations and it can be a problem at times when you want type safety for a well-defined set of values. A common way people try to have enumerations in Go really doesn't work for me because of the way constants behave. That being said, I have developed a pattern that gets me as close as possible to what I had in C# though it's not perfect and I will explain.

## Enum Classes in Kotlin

DevFeed: [Enum Classes in Kotlin](<https://devfeed.tech/articles/enum-classes-in-kotlin-25054.md>)

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

Author: author@typealias.com (Dave Leeds)

Published: 2020-10-19T00: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>)

Tags: [class](<https://devfeed.tech/tags/class.md>), [classes](<https://devfeed.tech/tags/classes.md>), [enum](<https://devfeed.tech/tags/enum.md>), [enum-class](<https://devfeed.tech/tags/enum-class.md>), [enumeration](<https://devfeed.tech/tags/enumeration.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>)

### AI overview

A Kotlin tutorial chapter introduces enum classes as a special kind of class for representing a limited number of values.

### Source excerpt

In the last chapter, we created our very own type, called Circle, using a feature in Kotlin called a class. In this chapter, we're going to look at a special kind of class--an enum class--which is particularly useful when we want to represent a limited number of values. I hope you like Schnauzers, because this chapter is full of them! Limiting the Values Schnauzers are amazing dogs--they're smart, they're loyal to their owners, and they seem to have an opinion about everything!

## An experience with Daimler's vulnerability reporting program

DevFeed: [An experience with Daimler's vulnerability reporting program](<https://devfeed.tech/articles/an-experience-with-daimler-s-vulnerability-reporting-program-32595.md>)

Original publisher: [Read original article](<https://eaton-works.com/2019/12/19/an-experience-with-daimlers-vulnerability-reporting-program/>)

Author: Eaton

Published: 2019-12-19T19:13:31Z

Content type: opinion

Language: en

Sources: [Eaton Works Feed](<https://devfeed.tech/sources/eaton-works-feed.md>)

Topics: [vulnerability](<https://devfeed.tech/topics/vulnerability.md>), [Website](<https://devfeed.tech/topics/website.md>), [Google Search](<https://devfeed.tech/topics/google-search.md>), [pdf](<https://devfeed.tech/topics/pdf.md>), [Query (disambiguation)](<https://devfeed.tech/topics/query.md>)

Tags: [enumeration](<https://devfeed.tech/tags/enumeration.md>), [google-search](<https://devfeed.tech/tags/google-search.md>), [pdf](<https://devfeed.tech/tags/pdf.md>), [query](<https://devfeed.tech/tags/query.md>), [reporting](<https://devfeed.tech/tags/reporting.md>), [script](<https://devfeed.tech/tags/script.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>), [website](<https://devfeed.tech/tags/website.md>)

### AI overview

A firsthand account of finding sensitive and confidential documents indexed on Mercedes-Benz USA's Dealer Help Center website. The article describes how varying PDF ID numbers exposed additional documents through an unsecured endpoint and characterizes this as an enumeration attack, while noting that no customer data was found or believed to be at risk.

### Source excerpt

Reporting sensitive content exposure on an MBUSA website to Daimler.

## GSOC Project TSE Week 4

DevFeed: [GSOC Project TSE Week 4](<https://devfeed.tech/articles/gsoc-project-tse-week-4-32830.md>)

Original publisher: [Read original article](<https://reactos.org/blogs/gsoc-project-tse-week-4/>)

Published: 2017-06-29T00:00:00Z

Content type: article

Language: en

Sources: [Front Page on ReactOS Website](<https://devfeed.tech/sources/front-page-on-reactos-website.md>)

Topics: [Toolbar](<https://devfeed.tech/topics/toolbar.md>), [browser](<https://devfeed.tech/topics/browser.md>), [file](<https://devfeed.tech/topics/file.md>), [navigation](<https://devfeed.tech/topics/navigation.md>), [Icons](<https://devfeed.tech/topics/icons.md>), [ui](<https://devfeed.tech/topics/ui.md>), [dialog](<https://devfeed.tech/topics/dialog.md>), [Shell](<https://devfeed.tech/topics/shell.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [dialog](<https://devfeed.tech/tags/dialog.md>), [enumeration](<https://devfeed.tech/tags/enumeration.md>), [file](<https://devfeed.tech/tags/file.md>), [free](<https://devfeed.tech/tags/free.md>), [gsoc](<https://devfeed.tech/tags/gsoc.md>), [icons](<https://devfeed.tech/tags/icons.md>), [implement](<https://devfeed.tech/tags/implement.md>), [interface](<https://devfeed.tech/tags/interface.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [os](<https://devfeed.tech/tags/os.md>), [project](<https://devfeed.tech/tags/project.md>), [react](<https://devfeed.tech/tags/react.md>), [reactos](<https://devfeed.tech/tags/reactos.md>), [toolbar](<https://devfeed.tech/tags/toolbar.md>), [ui](<https://devfeed.tech/tags/ui.md>), [win32](<https://devfeed.tech/tags/win32.md>), [winapi](<https://devfeed.tech/tags/winapi.md>)

### AI overview

A week-four GSoC progress report describes a working prototype of ReactOS's Quick Launch band. The author implemented shell-folder initialization and enumeration, added folder-browsing UI, displayed file and folder names and icons as buttons, and integrated a context menu with the taskbar menu.

### Source excerpt

Hi, everyone!! So you all are still with me? Good!! ;) As I had told last week, that this week will be rather an exciting one, and yes it indeed was. And the reason is, finally, you all will see a working (prototype) of the quick launch band. (yay!!) Let me go through chronologically, what I did this week. The first thing was to Implement the IShellFolderBand. This is a very important interface as it helps to initialize the IShellFolder and PIDL (via its InitializeSFB method) required to enumerate the folder objects.

## Ruby, Serialization, and Enumeration

DevFeed: [Ruby, Serialization, and Enumeration](<https://devfeed.tech/articles/ruby-serialization-and-enumeration-15831.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/ruby-serialization-and-enumeration>)

Author: Square Engineering

Published: 2014-05-25T16:06:00Z

Content type: article

Language: en

Sources: [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [Ruby](<https://devfeed.tech/topics/ruby.md>), [IO](<https://devfeed.tech/topics/io.md>)

Tags: [engineering](<https://devfeed.tech/tags/engineering.md>), [enumeration](<https://devfeed.tech/tags/enumeration.md>), [io](<https://devfeed.tech/tags/io.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [serialization](<https://devfeed.tech/tags/serialization.md>)

### AI overview

A Ruby serialization failure is traced to ActiveSupport serializing instance variables, including an unused logger, and to Ruby IO objects being enumerable. The article explains how to diagnose the backtrace and recommends implementing to_hash to control JSON output.

### Source excerpt

In which a curious backtrace uncovers scandalous truths about ActiveSupport and Ruby's IO object.