Drops3

Check out the latest posts

Organizing Django and React with Yarn Workspaces

Django and React can be daunting to put together. One recipe I like for monorepos is using Yarn workspaces. [https://classic.yarnpkg.com/en/docs/workspaces/] The folder structure provided by create-react-app encapsulates all the frontend, and it doesn't feel connected or aligned to the Django project. Workspaces...

Changing the Default Debugger in Python

Python comes with a built in debugger called pdb. You drop the line below at any part or your code, and a debugger will show up: import pdb; pdb.set_trace() Python 3.7 introduced the debugger() keyword, allowing you to simplify the code above and initiate a debugger with...

Checking if an Object Exists in an Array

The includes() method in JavaScript allows you to check if a value exists in an array. For primitive types, you can do: const primitiveArray = [1,2,3,4,5] primitiveArray.includes(3) > true You can also pass a second optional argument to includes() defining the first index of the...

You’ve successfully subscribed to Writing Codes
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.