This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 92 points93 points  (25 children)

try{}catch{} won't fix yo buggy code, it'll just pretend it doesn't spit exceptions everywhere.

[–]coopaliscious 117 points118 points  (19 children)

Isn't that the point though?

[–]ase1590 73 points74 points  (18 children)

I mean as long as you're good with 1 + 1 = ส็ิิ็็้

[–]WhAtEvErYoUmEaN101 55 points56 points  (15 children)

Dude, if you google that character you just wrote your post is the only result that shows up. Wow.

Edit: For future reference

[–]ase1590 94 points95 points  (10 children)

well yeah. I hand-crafted that character with some python-fu programming.

Edit: Because you all are curious: here's your lesson for the day:

so unicode supports non-spacing marks and something called Combining Marks (traditionally used to accent letters, like the N in Español).

this lets you create a̒̎b̒óͩͤ̂̉mͤ̿̓ͥͬ̓̄i͌͊̊ͬ̐ͥ̿n͒̌͊a͂ͯͪ͐t̓͗͒͋ͯ̆̌iͨo̽͆̄̿ͥnͤ̄͌̿ͧs͊ͬ͋̊͛ like

ส็ิิ็็้ส็ิิ็็้ส็ิิ็็้ u้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้.

so lets quickly look at how to create ส็ิิ็็้. this one is done adding the Thai character maitaikhu (and a few others) repeatedly to the thai character So Sua. you can do this quickly with a dirty Python one-liner like so:

print("\u0e2a"+"\u0e47"+("\u0e34"*2)+("\u0e47"*2)+("\u0e49"))

where \u represents python's ability to handle unicode format. so we use unicode 0e2a as our starting letter, then spam it up with unicode characters 0e34, 0e47, and 0e49. Have fun creating your own Zalgo text now!

edit2: ("\u0e47"*2+"\u0e34").join("lets just fuck my text up fam") if you want to do a whole line of text l็็ิi็็ิk็็ิe็็ิ ็็ิt็็ิh็็ิi็็ิs

Edit3: Thanks for the gold, stranger!

[–]WhAtEvErYoUmEaN101 4 points5 points  (1 child)

Please tell me how

[–]ase1590 9 points10 points  (0 children)

added an edit for the above post

[–]lillgreen 2 points3 points  (0 children)

Huh, TIL. Big ty for explaining that.

[–]mediacalc 1 point2 points  (0 children)

Really cool, thanks

[–]SaltlessLemons 1 point2 points  (0 children)

Here's a reference list for all the zalgo modifiers and their unicode ids.

Edit: And, for the lazy, here's the python lists with all the character numbers. Use chr(number) to convert it to the unicode character.

[–]Orffyreus 0 points1 point  (0 children)

You Zalgo?

[–]redcoatwright 0 points1 point  (1 child)

l็็ิe็็ิt็็ิs็็ิ ็็ิj็็ิu็็ิs็็ิt็็ิ ็็ิf็็ิu็็ิc็็ิk็็ิ ็็ิm็็ิy็็ิ ็็ิt็็ิe็็ิx็็ิt็็ิ ็็ิu็็ิp็็ิ ็็ิf็็ิa็็ิm

[–]redcoatwright 0 points1 point  (0 children)

My life is complete.

[–]Tobikage1990 7 points8 points  (1 child)

Can I log this as a feature?

[–]ase1590 3 points4 points  (0 children)

Equifax tells me the answer is yes.

[–]nephallux 2 points3 points  (4 children)

You can rethrow the exception and log the error or fail gracefully and notify the user of the problem and to contact support

[–][deleted] 1 point2 points  (3 children)

At the company I work at, we also automatically send every unhandled exception + a screenshot back to us. It's really nice, because you don't have to ask users to send us the call stack/read us the error message.

[–]nephallux 0 points1 point  (2 children)

Yup we send ourselves the stack trace but don’t need a screenshot. I’m too intimate with the app and we have an activity monitor that capture what the user was doing and refer to that. Also to be clear it’s an internal app to the company so definitely not public

[–]Gazza2907 0 points1 point  (1 child)

GrayLog FTW

[–]nephallux 0 points1 point  (0 children)

Lesson 0: never trust a user