Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.
4 votes

Create a Penrose tiling

Use for loops. Your draw functions do basically the same thing, if you simplify and you can make a drawShape: ...
depperm's user avatar
  • 1,072
3 votes
Accepted

Implement a simple image captcha test yourself in Java and JS

Is this implementation theoretical secure? No. In particular: java.util.HashMap is not thread-safe. The moment you start accessing it from multiple threads (and ...
Jannik S.'s user avatar
  • 305
3 votes

Runtime agnostic WebSocket server

Some of the code is not very readable for no reason that I can discern, beyond maybe saving a few bytes, but if that is the goal there are other things that can be shortened/minimized ...
depperm's user avatar
  • 1,072
2 votes
Accepted

openprocessing.org program - After screen tap, erase red circle, pause and lastly draw new white circle

A few minor tweaks EraseStart isn't needed, it's basically InitialframeCount (you could also then get rid of the ...
depperm's user avatar
  • 1,072
1 vote

Function to reduce dead band when reading a pressure transducer that has calibration device under test information

Bear with me, because TypeScript is not a customary language for me. How can I determine which range segment of calibration data the output voltage is with in, without a for loop each fetch? The ...
Reinderien's user avatar
  • 70.4k

Only top scored, non community-wiki answers of a minimum length are eligible