# Beginner-friendly Code Style Guide

* Heuristic: If we could change it to 'zebra' on a whim, then use a string; otherwise use a symbol.
  * E.g. Use strings as keys to the params hash, since changing flexible route segments, query string parameters, or `name=""` values is easy. Use symbols when referring to actual column names.
* Use `Hash#fetch` instead of `Hash#[]` (for better error messages when wrong key is supplied).
* To be consistent with the above, use `Array#at` instead of `Array#[]` (even though they are identical).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://teachersmanual.firstdraft.com/beginner-friendly-code-style-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
