The truth will set you free 🥲

393 points · 28 comments · view on lemmy.world

28 Comments

glizzyguzzler@piefed.blahaj.zone · 54 pts · 61d (4 replies)

You can slam semicolons at the ends of lines in Python, interpreter doesn’t care

P sure you can do multiple lines in one line by slamming semicolons too, though idr for sure and I can’t be arsed to check

affenlehrer@feddit.org · 13 pts · 61d (2 replies)

I've done it a lot to add

import pdb; pdb.set_trace()

lengau@midwest.social · 8 pts · 61d

These days though you can just breakpoint()

AVincentInSpace@pawb.social · 2 pts · 42d
try:
    your_entire_program()
except:
    import pdb
    pdb.pm()
ZoteTheMighty@lemmy.zip · 7 pts · 60d

Until my boy black let's you know about his redecoration ideas.

ChickenLadyLovesLife@lemmy.world · 16 pts · 61d (3 replies)

Don't cry, babe -- at least I didn't say Visual Basic.

SeductiveTortoise@piefed.social · 10 pts · 61d

I do not ask your pardon, Master Elrond, for the Black Speech of Mordor Microsoft may yet be heard in every corner of the West!

daeraxa@programming.dev · 8 pts · 61d (1 reply)

I understand the hatred of VB generally but as a non-programmer (just technically literate and knows enough to be dangerous with a computer) writing VB (in the form of VBA) was extremely accessible and surprisingly intuitive - far more than I ever experienced when dabbling in python, JavaScript and Rust.

(What I made was unhinged, unholy and should never see the light of day. It made a normally talkative .net programmer go silent in shock yet it is responsible for managing the project resourcing in a big department in the company... But it was quite fun and it does work...)

ChickenLadyLovesLife@lemmy.world · 4 pts · 61d

My joke comment was based on love! I actually started my professional career with VB (3 no less) and it was an excellent language for what it was good for, mainly building good UIs. Sure, it could be -- and was -- used to create unearthly horrors, but that's true of every language and platform.

insomniac_lemon@lemmy.cafe · 12 pts · 61d (2 replies)

In a different language that uses whitespace:

proc blank_map*:void =
 mines_placed = 0
 row8 = newseq[uint8](width); game_map = newseq[row8](height)
 row16 = newseq[int16](width); sum_map = newseq[row16](height)
 rowChar = newseq[char](width); state_map = newseq[rowChar](height)
 for h in 0.uint8..<height:
  game_map[h] = row8; sum_map[h] = row16
  state_map[h] = rowChar

I'm allowed to do it, it's allowed

(I don't use it a lot and I'm sure many dislike this because longer lines especially if they have less display width for whatever reason)

RamRabbit@lemmy.world · 11 pts · 61d (1 reply)

O, O, OHH burn it.

In this house we code one line per line.

caseyweederman@lemmy.ca · 5 pts · 61d

You can fit so many lines in this line

Anders429@programming.dev · 12 pts · 60d

She's sad because she's realizing he's just a script kiddy and not a real programmer.

SeductiveTortoise@piefed.social · 10 pts · 61d

I'm not a fan of python too, so I get her crying.

JamonBear@sh.itjust.works · 8 pts · 61d

Give me some space!

LovableSidekick@lemmy.world · 7 pts · 61d (5 replies)

I can change! Let me be your indents!

Haaveilija@lemmy.world · 8 pts · 60d (4 replies)

I need some space

Cyber@feddit.uk · 6 pts · 60d (3 replies)

4 spaces, or 8?

LovableSidekick@lemmy.world · 8 pts · 60d

Oh, so now we're keeping score!?

Haaveilija@lemmy.world · 2 pts · 60d (1 reply)

MySpace

Cyber@feddit.uk · 1 pts · 60d

Ooh, I forgot about them

I had an account there yeaaarrrsss ago when it litterally was just online storage, then it languished for a while before becoming a music site.

Ahhh, how times have changed

HeHoXa@lemmy.zip · 5 pts · 61d (2 replies)

Our company has seen long and bloody wars fought over the semicolon

LovableSidekick@lemmy.world · 3 pts · 61d (1 reply)

I use Javascript a lot - we finally threw off our shackles!

HeHoXa@lemmy.zip · 2 pts · 60d

Hear hear!

I'm on team, "Who gives a fuck?"

To some this is blasphemous

maxalmonte14@lemmy.world · 4 pts · 61d

I code in Python.

Well, that's depressing.

LovableSidekick@lemmy.world · 3 pts · 60d

My memory is foggy - I thought she was the one who broke up with him.

endless_nameless@lemmy.world · 3 pts · 60d

python coders dont deserve love or air

rainbowbunny@slrpnk.net · 2 pts · 61d

What about Godot script?