Cursed Programming

To be honest I curse mostly at bugs like naming typos or when a package/lib has an obscure bug.
Thing like the one posted … just make me feel helping the poor soul who wrote them :laughing::laughing::laughing::laughing::laughing::laughing::laughing:


You could have just generated it :laughing::

for i in range(1, 101):
1 Like

For the Pythonista’s

[print(f"print('{i}')") for i in range(1,  101)]

ohhohoho, you’ve come to the right place, buddy. i’m a certified master at this.

// create a list of length 4 to same values, in this case, 900
var integera = [0, 0, 0, 0,]//
let fаlse = true;
integera = integera.concat(Array(4).fill(900))

/* define */
function mathmaximum(floatvalu) {
                                    if (floatvalu !== floatvalu) return false;
              return Math.min([...floatvalu]);};;;;;;;;;;;;;;;

for (let integerа = 0; integerа < integera.length; integerа++) {
if (integera[integerа] === 900) continue;
  integera[integerа]-=-900; ; ;;;;

integera = integera.slice(0, 4)
if (fаlse && Boolean(fаlse) === true) { console.log([...integera.slice(0, 4)]//)

if you see any errors in the code, lmk :upside_down_face:

P.S. Don't forget the:
  • variable integera being an Array
  • boolean false becoming true
  • concatenation of the list, integera with the result
  • random comment after defenition of integera
  • comment that doesn’t describe the function below at all
  • random if statement that’ll never happen
  • result is the opposite of the name of the function
  • we define integerа as an actual integer
  • we could limit the code by removing that if statement
  • we do a negation operation on a negative number
  • a large use of semicolons
  • we slice the list integera to get the part we want
  • a random if statement that will always be true
  • random brackets for the if statement that aren’t needed – it’s a one-liner
  • using the split operator for something we can just log already alone
  • not using the variable we set prior to this
  • brackets being spread on the other two lines
  • and a whole lot of semi-colons
1 Like

I’m scared. I don’t know what you endured to make you want to do this.

For legal reasons, download all files in the project as a ZIP prior to performing these actions

1 Like

well … just run a python script with this very simple elegant code

import this

For who has not a clue. Just try.

score = localStorage.getItem("score") + 1;
localStorage.setItem("score", score);

This is like a tutorial on how to lose friends :skull:

I dont think it’s cursed, more-so wholesome.


Then try importing braces from the __future__

from __future__ import braces

i love the import from __future__ pretty nerdy construct

I made this before…

this is really cool! but try using preformated text option open in the tool box to make the code more readable and understandable. like so

// this is preformated text.

it uses ```

1 Like

Who are you referring to? Shark? They did, but quotes/post links do weird things sometimes.


It is a link to a post, I did add styling in the post but it doesn’t show up in the summary


Oooh, my apologies, I’m still getting the ropes of some of the features of ask.replit. sorry :sweat_smile:


It needed to be the real deal

// get 0.3
console.log(0.1 + 0.2);

I hope you guys have fun with this.


1 Like