Skip to content

Instantly share code, notes, and snippets.

View aashishtamsya's full-sized avatar
👋
hello world

Aashish Tamsya aashishtamsya

👋
hello world
View GitHub Profile

Objective-C Coding Convention and Best Practices

Most of these guidelines are to match Apple's documentation and community-accepted best practices. Some are derived some personal preference. This document aims to set a standard way of doing things so everyone can do things the same way. If there is something you are not particularly fond of, it is encouraged to do it anyway to be consistent with everyone else.

This document is mainly targeted toward iOS development, but definitely applies to Mac as well.

Operators

NSString *foo = @"bar";
@aashishtamsya
aashishtamsya / filter_snake_case_keys.py
Created May 6, 2024 14:41
This Python script defines a function to filter dictionary keys that are in snake_case format. Snake_case is a naming convention where words are separated by underscores and all letters are lowercase, commonly used in Python for variable names and keys in JSON data. The script provides a function called `is_snake_case` to check if a string follo…
import re
def is_snake_case(key):
"""
Check if a string is in snake_case format.
Parameters:
key (str): The string to check.
Returns: