Using Next.js and the JavaScript MongoDB driver as an alternative to Mongoose


When choosing a technology to allow your React app to interact with MongoDB, Mongoose always comes to mind. It allows you to create object references and model your database in code. However, this abstraction sacrifices query performance which renders it slower than JavaScript’s MongoDB driver. In this tutorial, I’ll be going through the process of using Next.js and its easy-to-use API routing system so you can use the driver in your React app, instead of having to rely on an external API.

Setting up Next.js

If you’re…

Have you ever wanted to get into AI and machine learning but you don’t know how to code, or wanted to streamline your computer vision pipeline into one platform? Fret not, as with the recently released Datature platform, you can create your own computer vision models that can detect objects in images, and much more!

Firstly, what exactly is computer vision?

Computer vision(referenced as CV from here on out) is a subset of artificial intelligence that deals with the visual aspect of the world, identifying patterns and recognising features from image and video data from cameras. Some examples of computer vision in real life are:

  • Face…

Secure your privacy while reaping the benefits!

Personal assistants on the market like Google Home and Amazon Alexa offer a lot of functionality for their value, but work (quite literally) inside a black box. The uncertainty of not knowing how your data is being processed is a genuine concern among many others that can cause users like me to avoid buying such products.

In this post, I will share with you how I used Raspberry Pi and Python’s requests library to construct my own voice-activated personal assistant. …

Making sense of IDA* Search and Thistlethwaite’s algorithm to solve the cube.


Being into speedcubing myself (solving a variety of twisty puzzles as fast as possible), I’ve always been fascinated with the 3x3x3 Rubik’s Cube and how one can reduce it from any of the 43 quintillion scrambled permutations down to its single solved state. While humans have developed various intuitive algorithms for speedsolving purposes, with some examples being CFOP and Roux. However, these human-solvable methods often yield far-from-optimal solutions, so a variety of machine-solvable algorithms have been developed with the goal of producing optimal or near-optimal solutions. In…

Isaac Chen

Stargazer, among other things.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store