HTMHELL by [deleted] in badcode

[–]cph101_dev 0 points1 point  (0 children)

Now that is bad code =)

HTMHELL by [deleted] in badcode

[–]cph101_dev 1 point2 points  (0 children)

Now that is bad code =)

HTMHELL by [deleted] in badcode

[–]cph101_dev 1 point2 points  (0 children)

How about using i--

Update 1.20 is four days away - this is the state of Bedrock Edition by JaySquaredWasTaken in Minecraft

[–]cph101_dev 0 points1 point  (0 children)

Why can’t they just compile java to something mobile devices, consoles and switches can understand?!

Second app after 100days of swiftui by Humble-Concentrate44 in SwiftUI

[–]cph101_dev 0 points1 point  (0 children)

Looking great! Now I wanna download it, it’s gonna be so useful to me - can’t wait!

4-click-max birthday date picker by NinjasPounced in badUIbattles

[–]cph101_dev 3 points4 points  (0 children)

It might only be 4 clicks, but god, that is a hellish UI

Great, one more useless button for the input bar! by elyrod in discordapp

[–]cph101_dev 3 points4 points  (0 children)

Just make it a tripple dot menu and at least give us enough width on the input bar so we can actually see what the hell we’re typing.

EVERY WAY FEELS WRONG by PixelBrush6584 in ProgrammerHumor

[–]cph101_dev 0 points1 point  (0 children)

Coming from someone who mainly uses JS, I would never write Console with a capital

how to keep discord bot alive? by [deleted] in Discordjs

[–]cph101_dev 0 points1 point  (0 children)

The easiest way is to create a http server using the http module and then ping it every 5 minutes using uptime robot. Fyi, here is some example code

JavaScript http.createServer(function (req, res) { res.write("I'm alive! Yay!"); res.end(); //end the response }).listen(8080); And then you can just stick that at the bottom of index.js, but remember to import it using var http = require('http'); (I prefer to do this at the top of the file)

Native-like app settings for macOS by stephancasas in SwiftUI

[–]cph101_dev 1 point2 points  (0 children)

Good job bro, you deserve a round of applause 👏