Creating an updating FlatList in React Native with TextInputI took far too long to figure out how to do this. Say you want to make a list in React Native that updates upon you pressing a button. This is very easy to do in Vanilla JavaScript and HTML, but since in React and React Native there is no DOM object,...Mar 7, 2023 · 4 min readmimsydev.hashnode.dev
Learning animations in JavaScript with a marching antFirst steps First I had to draw the ant. I made a very basic ant using SVG circles and lines. Here is the little fella. Next, I needed to figure out the logic for making him zig-zag up and down the page. No ant goes in a straight line, after all. So...Jan 21, 2023 · 4 min readmimsydev.hashnode.dev
Using 2D arrays to randomly position "ships" in BattleshipsI think I'll write a Battleships game... Here’s an interesting problem: when writing a console application version of “Battleships” in Java, how do you make the ships appear in a random position on the board every time you start a new game? I had thi...Jan 5, 2023 · 3 min readmimsydev.hashnode.dev
Relative or Absolute position? I made that mistakeThis brief article is about the problems I faced getting <span/> containers to sit on top of a <div/> container in the same place regardless of screen size, aspect ratio, or orientation. It was a beginner's problem, but I hope it helps somebody in th...Dec 30, 2022 · 3 min readmimsydev.hashnode.dev