---
title: "Christos Lytras (@LytraX) | Hashnode"
description: "Training crocodiles. Read the latest articles by Christos Lytras on Hashnode."
url: "https://hashnode.com/@LytraX"
---

@LytraX

# Christos Lytras

@LytraX · California, US · Joined January 2021

Training crocodiles

[Website](https://lytrax/io)

## Comments

[You should use ESLint and Prettier, which will warn you when you'll try to write unreadable and excessive code like this: !error.message ? err = {"message": error} : err = error; and change it like this: err = !error.message ? {"message": error} : error; There is even an ESLint rule for preventing using ternary operators all together: disallow ternary operators (no-ternary) The ternary operator is used to conditionally assign a value to a variable. Some believe that the use of ternary operators leads to unclear code. And that's for normal assignment usage, not even for procedural usage like you're doing in your code.](https://hashnode.com/posts/authentication-using-aws-amplify/60321412f51caf4448562afd/comment/603396a472a689446db4015e)

Comment · Article · Feb 22, 2021 · [Authentication using AWS Amplify.](https://hashnode.com/posts/authentication-using-aws-amplify/60321412f51caf4448562afd)

[TypeScript is good for when creating projects that many people are going to contribute or libraries that many people are going to use, but for big/small one-man-show projects is such a waste of time writing all the typings and if you have enabled ESLint with some standard defaults, then you'll find yourself wasting countless minutes trying to satisfy TS compiler and linter especially when trying to convert JS code to TS and of course keep tsconfig options to strict typings mode. TypeScript is awesome for DX and when many people are involved in one project but for larger projects it's going to bloat the code and it doesn't provide much on bug catching; proper testing should always be present in all projects small or big ones, and that's what prevents bugs mostly. There is even a ESLint rule for requiring PropTypes when optional props do not have default values react/require-default-props and it does appear in TS projects as well and it actually makes sense.](https://hashnode.com/posts/switch-from-prop-types-to-typescript/601984510394d00f62dc497e/comment/601e79bc1054fa16dadd8b23)

Comment · Article · Feb 6, 2021 · [React.js: Switch from PropTypes to TypeScript](https://hashnode.com/posts/switch-from-prop-types-to-typescript/601984510394d00f62dc497e)

[Nice guide for using Firebase Vision ML API in a React Native application 👍 You should also add a section about the GC Vision ML pricing, which is $1.50 per 1000 units/images after the first free 1000 units/month. Cloud pricing and costs is something that it should be taken very seriously to avoid pitfalls and disastrous huge CC charge situations like this How NOT to get a $30k bill from Firebase.](https://hashnode.com/posts/react-native-firebase-image-labelling/60110b1629079d4c1578356c/comment/6011b44cffaabc69d3ec6810)

Comment · Article · Jan 27, 2021 · [Image Labeling using Firebase ML in React Native](https://hashnode.com/posts/react-native-firebase-image-labelling/60110b1629079d4c1578356c)

[It's a nice python tutorial for beginners to learn how to work with strings and random bytes 👍, but there are already countless online password generators for everyday use. For example, you can check mine at my blog which works online, is fully customizable and it can generate hundreds or thousands of random passwords based on multiple parameters like uppercase characters, lowercase characters, numbers, symbols, excluding characters, password length and how many passwords to generate in individual text boxes or in one big text area to contain them all. There are also CLI tools for generating passwords if you want to use it in command line, like ts-pwgen which has many options to generate custom password.](https://hashnode.com/posts/confused-about-password-choice-build-a-random-password-generator/600d49873b349540feb9e8e9/comment/600dcf063b349540feb9f392)

Comment · Article · Jan 24, 2021 · [Confused about Password choice? Build a Random Password Generator](https://hashnode.com/posts/confused-about-password-choice-build-a-random-password-generator/600d49873b349540feb9e8e9)

[Nice article Madza. shortid is now deprecated and they suggest the amazing Nano ID as an alternative. The title concept is not future proof! What if you need to add more tools to that list? You'll have to rename and change 73 for both the title and the slug url, which will lead to lose the SEO of the article and direct links to it will be broken! Also, you should not hardcode counters like you do from 1 to 73, you can use CSS counters to have automated and customized counters and don't have to re-arange the numbers each time you remove or add something. I have copied your article to my blog and I wrote a mention to this page and your blog at the very beggining https://lytrax.io/blog/dev/awesome-npm-packages-for-productivity. Thanks for collecting all of the packages and the short descriptions into one article.](https://hashnode.com/posts/73-awesome-npm-packages-for-productivity/5fa12ffcad30887ef1e16915/comment/600c331f3b349540feb9d960)

Comment · Article · Jan 23, 2021 · [73 Awesome NPM Packages for Productivity 🚀🌱](https://hashnode.com/posts/73-awesome-npm-packages-for-productivity/5fa12ffcad30887ef1e16915)
