---
title: "VH (@Silverbullet069) | Hashnode"
description: "Software Engineer. Read the latest articles by VH on Hashnode."
url: "https://hashnode.com/@Silverbullet069"
---

@Silverbullet069

# VH

@Silverbullet069 · Joined April 2024

Software Engineer

## Comments

[Anthony Manning-Franklin Yep it sure supported autocomplete, my bad @@ and I also found out about how enum wasn't that good in TypeScript so I have fully switched to Union Type now. Ah yes thank you for these awesome blog plots. I have implemented some in my project. I also ask questions in some of your article's comment section. Can you please check them :")](https://hashnode.com/posts/functional-typescript-in-production-systems/6097aa0521068818a5c621c3/comment/609eac5247373d4cb0564060#reply-662d111b7133b51519cfc34f)

Reply · Article · Apr 27, 2024 · [Functional TypeScript in Production Systems](https://hashnode.com/posts/functional-typescript-in-production-systems/6097aa0521068818a5c621c3)

[Very good design pattern to handle business logic exception. Yeah, those outcomes/exceptions/errors are from business logic, they are defined by developers. But what about, errors that are thrown from 3rd-party packages? Example: import {readSync} from 'fs' ... const json = await readSync(pathToFile) and somehow there is an exception throw from readSync via many reason (file not found, file corruption, some process delete it, ...). How will you handle this?](https://hashnode.com/posts/stop-catching-errors-in-typescript-use-the-either-type-to-make-your-code-predictable/61740f980f452c1cd94fa17c/comment/662b2b76b5f9fcb5364d25c2)

Comment · Article · Apr 26, 2024 · [Stop catching errors in TypeScript; Use the Either type to make your code predictable](https://hashnode.com/posts/stop-catching-errors-in-typescript-use-the-either-type-to-make-your-code-predictable/61740f980f452c1cd94fa17c)

[This could be applied to any TypeScript project right. I'm writing a VSCode Extension using TypeScript so I learning some of the best folder structures.](https://hashnode.com/posts/start-strong-with-this-javascript-package-template/60a630e94e7f9549fc3308ae/comment/662a9239b34bef2323d31e17)

Comment · Article · Apr 25, 2024 · [Start strong with this JavaScript package template](https://hashnode.com/posts/start-strong-with-this-javascript-package-template/60a630e94e7f9549fc3308ae)

[This is also bugging my mind since using enum means you don't need to remember the exact literal string like "PENDING\_VERIFICATION". You just define enum AccountStatus { PendingVerification = 'PENDING\_VERIFICATION'; Active = 'ACTIVE', Locked = 'LOCKED' } and use VSCode autocomplete feature. E.g. AccountStatus.Pend- => AccountStatus.PendingVerification](https://hashnode.com/posts/functional-typescript-in-production-systems/6097aa0521068818a5c621c3/comment/609eac5247373d4cb0564060#reply-662a7529a1efa063a72e4501)

Reply · Article · Apr 25, 2024 · [Functional TypeScript in Production Systems](https://hashnode.com/posts/functional-typescript-in-production-systems/6097aa0521068818a5c621c3)

[Omg, this is the blog I was searching for a long time. I was trying to do OOP in TypeScript and sometimes I felt like I didn't harness the power of FP. And great job in that Partially Applied Controller that encapsulate impure + pure function and separate function logic into 3 parts: Data Retrieval (In-memory, File, DB, Remote API, ...) Business Logic Error/Exception Handler for both Data Retrieval and Business Logic (using Discriminated Union Type or Either Design Pattern). I'm currently learning Either Design Pattern. These knowledge will definitely be put in use in my VSCode Extension that used TypeScript. This is also the project for my graduation thesis.](https://hashnode.com/posts/functional-typescript-in-production-systems/6097aa0521068818a5c621c3/comment/662a73399fb921ad29a22ad1)

Comment · Article · Apr 25, 2024 · [Functional TypeScript in Production Systems](https://hashnode.com/posts/functional-typescript-in-production-systems/6097aa0521068818a5c621c3)
