---
title: "kyip (@yipcode) | Hashnode"
description: "programmer. Read the latest articles by kyip on Hashnode."
url: "https://hashnode.com/@yipcode"
---

@yipcode

# kyip

@yipcode · Joined February 2022

programmer

### [typedef in C](https://yipcode.hashnode.dev/typedef-in-c?utm_source=hashnode&utm_medium=feed)

To give a new name to a type A normal convention of declaring a struct: struct Node { int data; struct Node\* next; }; struct Node\* newNode = NULL; void AddToEnd(struct Node \*\*ppList, int value); int Count(struct Node \*list); with typedef (N...

1 min read · [yipcode.hashnode.dev](https://yipcode.hashnode.dev/typedef-in-c?utm_source=hashnode&utm_medium=feed)

[Apr 6, 2023](https://hashnode.com/posts/typedef-in-c/642e8a23b203144f2c8ff256)

### [Command - sam build deploying AWS lambda using aws cli](https://yipcode.hashnode.dev/command-sam-build-deploying-aws-lambda-using-aws-cli?utm_source=hashnode&utm_medium=feed)

Common error encountered: firstlambda % sam build Your template contains a resource with logical ID "ServerlessRestApi", which is a reserved logical ID in AWS SAM. It could result in unexpected behaviors and is not recommended. Building codeuri: /Us...

1 min read · [yipcode.hashnode.dev](https://yipcode.hashnode.dev/command-sam-build-deploying-aws-lambda-using-aws-cli?utm_source=hashnode&utm_medium=feed)

[Jul 11, 2022](https://hashnode.com/posts/command-sam-build-deploying-aws-lambda-using-aws-cli/62cc293f222e2fa74e9bd133)

### [Swift - Passing a function into a function parameters and Closures](https://yipcode.hashnode.dev/swift-passing-a-function-into-a-function-parameters-and-closures?utm_source=hashnode&utm_medium=feed)

How do we pass in a function into another function? Let say there is a calculator function, which will perform addition function. For example, let have a calculator function that take in 2 Int param, and output an Int. func calculator(num1:Int, num2:...

2 min read · [yipcode.hashnode.dev](https://yipcode.hashnode.dev/swift-passing-a-function-into-a-function-parameters-and-closures?utm_source=hashnode&utm_medium=feed)

[Jun 22, 2022](https://hashnode.com/posts/swift-passing-a-function-into-a-function-parameters-and-closures/62b2aa3d0572b078ae517d79)

### [React Hook : useState()](https://yipcode.hashnode.dev/react-hook-usestate?utm_source=hashnode&utm_medium=feed)

How state work under the hood

2 min read · [yipcode.hashnode.dev](https://yipcode.hashnode.dev/react-hook-usestate?utm_source=hashnode&utm_medium=feed)

[Feb 19, 2022](https://hashnode.com/posts/react-hook-usestate/6210956cc6ed3906e81c1b95)

### [Composition over inheritance in React](https://yipcode.hashnode.dev/composition-over-inheritance-in-react?utm_source=hashnode&utm_medium=feed)

Reusing component by having a Wrapper class in React

2 min read · [yipcode.hashnode.dev](https://yipcode.hashnode.dev/composition-over-inheritance-in-react?utm_source=hashnode&utm_medium=feed)

[Feb 17, 2022](https://hashnode.com/posts/composition-over-inheritance-in-react/620e648525673f2740eec452)
