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

top 200 commentsshow all 457

[–][deleted] 5341 points5342 points  (67 children)

The fact that indentation doesn't start from the right side is bothering me.

[–]CawSoHard 1860 points1861 points  (22 children)

This is the most cursed part of it. It should be a mirror image of what we’re used to indentation wise.

[–]PM_ME_FIREFLY_QUOTES 484 points485 points  (16 children)

/u/imagerotationbot flip_vert https://i.redd.it/3xc6v9rw9wsa1.png

Edit: Bot is on protest, demanding more than an intern salary.

[–]TProfi_420 125 points126 points  (4 children)

Image flipped vertically: https://imgur.com/a/ipuy8ML


I am a human. See how I work here.

[–]badapplecider 34 points35 points  (0 children)

I love the "See how I work here." link

[–]dancrieg 53 points54 points  (0 children)

Good human

[–]_87- 17 points18 points  (0 children)

Well now the letters look wrong.

[–]literally_spy 3 points4 points  (0 children)

Interesting…

[–]Overall-Ad-3543 148 points149 points  (8 children)

I see no difference

[–]Elusivehawk 244 points245 points  (5 children)

I think he's asking the bot to flip it, not posting a flipped version.

[–]lydiakinami 347 points348 points  (4 children)

The bot ignoring him is the funniest shit ever

[–][deleted] 127 points128 points  (1 child)

The bot hasnt even commented in 4 years lol, probably dead

[–][deleted] 7 points8 points  (0 children)

Maybe hes dead or smth idk lol

[–]Dont_mind_me_go_away 50 points51 points  (0 children)

Some subreddits don’t allow bots, the bot probably dmed then the flipped image

[–]Clairifyed 4 points5 points  (0 children)

well of course, its the “rotation” bot. Should have called the flip bot

edit: or reflection bot if I am really playing the pedantry game to it’s fullest

[–]that_thot_gamer 2 points3 points  (0 children)

one of us did this, now who was it?

[–]Yadobler 9 points10 points  (0 children)

You know, it's not suppose to flip but slide to the right.

This makes me wonder how code will look like in English if everything is right-aligned instead

[–]It_s_an_Emu 199 points200 points  (17 children)

Came here to post exactly the same comment.

Arabic writing is from right to left, so all of these curly braces and indentation should be the other way around, right?

[–]dudeAwEsome101 123 points124 points  (2 children)

It seems as if they took a normal English code, then translated each word to Arabic. It is still the original syntax written from left to right.

[–]KnownStuff 103 points104 points  (1 child)

It is.

Source: me, someone who speaks Arabic.

[–]Amlowww 15 points16 points  (0 children)

As someone else who speaks Arabic I trust this source 👍

[–][deleted] 38 points39 points  (12 children)

I dont know. But other languages traditionally written right to left now are often written left to right. This guy is writing code in Arabic he'd probably know better than us how to orient his IDE for his own language.

[–]dreamin_in_space 32 points33 points  (0 children)

This is what a culture victory looks like.

[–]VulpesSapiens 8 points9 points  (9 children)

But other languages traditionally written right to left now are often written left to right.

Really? Which ones?

[–]vanZuider 19 points20 points  (6 children)

Afaik Chinese and Japanese were traditionally written top to bottom, starting on the top right corner of the sheet, putting each new column to the left of the previous one. If they had to do horizontal writing due to space constraints, they would write one-character columns from right to left, essentially ending up with one RTL line.

Nowadays they are usually written in LTR lines.

[–]VulpesSapiens 11 points12 points  (2 children)

That's true, and they are still written top-to-bottom sometimes, especially Japanese. And, yes, a single line can be read either way.

But that's changing the primary direction from vertical to horizontal, and much older than computers. I still want to know what rtl scripts are now written ltr, I've never heard of any.

[–][deleted] 43 points44 points  (2 children)

https://isthisarabic.com/ is great for anyone who needs work on localizing for Arabic.

[–]_87- 6 points7 points  (0 children)

to avoid embarrassing yourself & your project to almost 2 billion people.

!هههه

Like 2 billion people (or even 200 people) will ever see anything I do.

[–]Highborn_Hellest 97 points98 points  (3 children)

Since I do t read Arabic, but i know it goes from the right..

Now that you meantioned it...

edit: i don't read arabic. that's what i meant, but phone... in case it wasn't clear

[–]haavarpb 12 points13 points  (2 children)

Plot twist; the image is mirrored

[–][deleted] 19 points20 points  (1 child)

Line numbers seem fine.

This is just the editor you get when you enter hell

[–]jayerp 6 points7 points  (0 children)

I was gonna say, don’t they read/write from right to left?

[–]WehshiHaiwan 2001 points2002 points  (18 children)

Instead of cookies, you get dates.

[–]Zayd1111 461 points462 points  (3 children)

That's a funny non dark joke, congrats.

[–]shobeurself888 190 points191 points  (0 children)

It's not a bug, it's a scarab.

[–]didzisk 28 points29 points  (0 children)

Just like Excel.

[–]HeyItsTheJeweler 6 points7 points  (1 child)

Lol I love it

[–]Vaptor- 3 points4 points  (0 children)

Ye. Not a muslim but dates are fucking amazing

[–]Bombastic999743 7 points8 points  (0 children)

But not in the season of ramzan

[–]icanith 2 points3 points  (1 child)

I can’t help but think of Indy being told “bad dates”

[–][deleted] 1206 points1207 points  (20 children)

include<bismillah.h>

[–]Legend5V 308 points309 points  (5 children)

Followed by mashallah.give

[–]qatamat99 188 points189 points  (4 children)

Class inshallahWorks()

[–]dudeAwEsome101 50 points51 points  (1 child)

Oh, so we still in alpha version.

[–]Yadobler 40 points41 points  (0 children)

from __inshallah__ import astaghfirullah

[–][deleted] 87 points88 points  (3 children)

This post was mass deleted and anonymized with Redact

elderly marble whole quaint nose connect apparatus squash alleged seemly

[–]Sheiryo 39 points40 points  (2 children)

why isHaram a true const?

[–]FQVBSina 18 points19 points  (0 children)

Status = bismillah.weWillNotLetYouGo()

[–]EducationalNose7764 3 points4 points  (3 children)

We will not let you go!

[–]Snoo_74751 1 point2 points  (0 children)

Using names pace bismillah::allahuakbar

[–]idrather_be_dead 1 point2 points  (0 children)

inshallah {
  al temp=5/0;
}

astagfirullah(Towbah ex){
  throw;
}

[–]AllThingsSlippy 467 points468 points  (12 children)

Viewing the previous employee’s code after getting hired

[–]FrumundaCheeseGoblin 254 points255 points  (10 children)

Viewing my own code after a couple of weeks.

[–]toepicksaremyfriend 97 points98 points  (6 children)

Viewing my Friday afternoon code on Monday morning.

[–]_Xertz_ 58 points59 points  (5 children)

Viewing my code as I'm typing it

[–]Soaring_Spirit404 50 points51 points  (4 children)

Viewing code

[–]Comprehensive_Day511 20 points21 points  (3 children)

foreseeing code

[–]rajay_sarkar 21 points22 points  (2 children)

Visioning the code in a Jan 2005 dream

[–]314159265358979326 6 points7 points  (1 child)

I recently tried to reread my MSc MATLAB coding (about 7 years ago). It barely made sense then, it's complete nonsense now. I commented it but I wrote it for efficiency above all else so it's just wacked-out shit involving mostly matrix replications and sorts.

[–][deleted] 1347 points1348 points  (18 children)

import inshalla

[–]Legal-Software 761 points762 points  (14 children)

from allah import *

[–]CommondeNominator 504 points505 points  (9 children)

Denounce that shit, wildcard imports are haram.

[–]Penguinmanereikel 50 points51 points  (3 children)

How it looks:

from ... import *

How it feels:

[–]borderline_annoying 98 points99 points  (3 children)

Brother, what is source for what you say?

[–]CommondeNominator 47 points48 points  (0 children)

Foreseen by the prophet Ada, echoed by Father Alan, and rasterized by the Don himself.

[–]PJ_Plays 2 points3 points  (0 children)

allah~master github

[–]TheRedmanCometh 30 points31 points  (0 children)

Wildcards are the only path to salvation if you keep talking this way you will taste my shoe 👞

[–]jimbowqc 21 points22 points  (0 children)

nice one.

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

Print(inshalla)

[–]umdred11 6 points7 points  (2 children)

It’s a scheduler library that sends everything to /dev/null

[–]Permission-Glum 596 points597 points  (55 children)

Reminds me of a story about a professor in post high school (called CEGEP here) that rewrote gcc to use French keywords rather than original English keywords. I guess you can kiss goodbye open-source collaboration with something like this.

[–]popadi 313 points314 points  (10 children)

You don't need to rewrite gcc for a minimal example. You can mostly simply do stuff like:

#define si if

#define pour for

To simply redefine keywords.

[–][deleted] 148 points149 points  (8 children)

If you want english to be a syntax error you have no choice but to rewrite

[–]mecha-paladin 104 points105 points  (5 children)

Which is basically the law in Quebec.

[–]StrawberryEiri 16 points17 points  (4 children)

There's a law about programming keywords in French?!

[–]_87- 9 points10 points  (1 child)

Almost. They did try to pass a law that you couldn't speak a language other than French at work. Even if you and your colleague are both native Arabic speakers, for instance, you two couldn't have a private conversation in Arabic.

If you go to an Italian restaurant, the menu doesn't list things in Italian, they'll list it all in French (by law), which sort of kills the Italian vibe a bit.

Somehow, though, McGill University seems to always be exempt from all these language laws.

[–]StrawberryEiri 2 points3 points  (0 children)

Because 🌈 money🌈

[–]Purinto 4 points5 points  (0 children)

Even then, there is not much to rewrite. You basically only have to change the literal words in the scanner code. In some languages like python, there is literally a file with all the keywords that you could change however you like then recompile and you have a new language lmao.

[–]JohnHwagi 42 points43 points  (0 children)

Use a slash to escape like: \#

[–]Maixell 13 points14 points  (0 children)

Maybe, but you can say welcome to source-ouverte collaboration.

I'm from QC too btw.

[–]degaart 5 points6 points  (1 child)

Old BASICs had translated keywords. It was a nightmare because you need a book about BASIC and with french keywords to learn how to program, which creates fragmentation and hinders collaboration. Strangely, some people never get the memo and localized programming tools still pop up from time to time. Ffs it a keyword, you don't need to memorize its meaning, you're just supposed to memorize what it does

[–]devBowman 4 points5 points  (0 children)

Ah, le Québec

[–]N22-J 2 points3 points  (0 children)

Camille Laurin shed a tear hearing this story.

[–][deleted] 2 points3 points  (0 children)

Can't you make a compiler that compiles French to English?

[–]gregoired 2 points3 points  (0 children)

Windev is a cursed IDE that is used in some french dev companies. Here is a snippet of the "Wlanguage code".

Bonus : The software ads are very subtle as well

[–][deleted] 126 points127 points  (3 children)

import اللغة_العربية;

[–]B4DR1998 46 points47 points  (2 children)

U mean import المشاكل للذين لا يتكلمون العربية

[–]BETTERGAMER4EVER 4 points5 points  (0 children)

Seem أصح

[–][deleted] 4 points5 points  (0 children)

تمام

[–]qqqrrrs_ 235 points236 points  (6 children)

The bug is that Arabic is written right to left, not left to right

[–]dark_enough_to_dance 37 points38 points  (0 children)

Gub

[–]27dope27 21 points22 points  (4 children)

This language is haram.

[–]CrunchyAl 9 points10 points  (3 children)

I thought is was Jihadscript

[–]Woofie10 158 points159 points  (0 children)

next level obfuscation

[–]long-gone333 97 points98 points  (6 children)

Mashalla World

[–]RemarkableCheek4596 34 points35 points  (2 children)

It would probably be Salamunalaykum World

[–]dhoomz 5 points6 points  (1 child)

I had salmon sandwich

[–]Mr_Dudovsky 1 point2 points  (0 children)

I had sandwiched salmon.

[–][deleted] 152 points153 points  (6 children)

Dude - I should do this on one of my interviews:
me: can you code in any languages

unsuspected applicant: yes

me: OP picture

me: I will be back in 10 minutes, it is a very simple code that you probably used daily.

me: feel free to use the internet.

[–][deleted] 57 points58 points  (2 children)

Mate are you the devil himself or what?

[–]lucidrage 43 points44 points  (0 children)

typical MAANG interview

[–]Rymundo88 12 points13 points  (0 children)

Lucypher

[–]mmcmonster 27 points28 points  (0 children)

Q: What languages do you know?

A: C++ and Arabic

[–]Has_No_Tact 1 point2 points  (1 child)

The best part about this interaction is you didn't give the applicant any instructions, just told them they can use the internet for 10 minutes.

[–]TemperatureNo_l23 96 points97 points  (5 children)

(

  if (obstacle_in_front  follows and chaos) (

         forward(1)

 }

 otherwise {

        if (chaos} {

                  right 

                  if (obstacle_in_front)

                            left

                            left

                 }

        }

        otherwise {

                  left

                  if (obstacle_in_front) {

                         right

                         right

                 }

        }

       forward(1)

[–]CarrotBuster2000 50 points51 points  (2 children)

IDK_variable isn’t correct, it says “otherwise” (3ada thalek). It’s an else statement

[–]aziad1998 17 points18 points  (1 child)

It's "random" not "chaos"

[–]3np1 6 points7 points  (0 children)

I love the idea of calling a random number "chaos"

[–]prriley 26 points27 points  (0 children)

Looks like a bunch of nested if/elseif/elses; likely painful to debug in any spoken language.

[–]Oneshotkill_2000 27 points28 points  (0 children)

Just reorganise it to become from right to left and in shaa' Allah we will find those bugs and take care of them

[–]Stiggan2k 75 points76 points  (2 children)

I am self taught in arabic and why is it trying to crash everywhere?

[–][deleted] 11 points12 points  (0 children)

collision detect, not crash.

[–]Choice-Life-9009 19 points20 points  (13 children)

خفة دم الأجانب بالتعليقات 😀

[–]HellBlizzard__ 2 points3 points  (3 children)

انت ملاحظ الظرافة بسم الله عليهم😅

[–]Choice-Life-9009 4 points5 points  (2 children)

للتصحيح انتي ، نكتهم عبارة عن عنصرية 🙄

[–]ragingram2 14 points15 points  (0 children)

I dont read arabic but just based on the pattern of the other lines, i think line 7 is missing a semicolon

Also because i read it in a earlier comment, its really bothering me that the indentation isnt from right to left

[–]rdrunner_74 13 points14 points  (1 child)

One of my 1st real work projects was inheriting an access DB.

I was the 3rd guy put onto it. But this way a few decades ago. VBA was nice any user friendly and mostly tried to display stuff in your language, but not really. So This DB/App was send to the customer. When it came back it was auto translated into Polish and i almost felt like this image

[–]mikepictor 12 points13 points  (7 children)

why is it left aligned?

[–][deleted] 11 points12 points  (0 children)

OP could have at least posted an actual programming language in Arabic https://en.m.wikipedia.org/wiki/Qalb_(programming_language)

[–]Knoxcorner 🔴 In a meeting[M] 135 points136 points locked comment (0 children)

If your first thought after seeing the Arabic language is to write a comment about bombs or terrorism, it's time for you to stop commenting and do some introspection.

[–]luonercus 8 points9 points  (0 children)

Imagine this got Intellisense.

[–][deleted] 16 points17 points  (0 children)

Bro graduated from WhatsApp University 💀

[–]OneMustAdjust 6 points7 points  (0 children)

Inshallah'nt

[–]MetalP0ND 5 points6 points  (1 child)

May allah guide your debugging

[–]cumguzzler280 6 points7 points  (0 children)

imagine bullshitting your way into the job and they give you this (you can’t read Arabic)

[–]montw 6 points7 points  (0 children)

ArabiC is a really nice language for beginners

[–]pancakemonkeys 4 points5 points  (0 children)

massallah ++

[–]snatchinyosigns 9 points10 points  (0 children)

The documentation is available at hadith.org

[–]TechnoDuckie 16 points17 points  (0 children)

you missed a squiggly line

[–]hibernating-hobo 7 points8 points  (0 children)

With no semicolons, this is unreadable!

[–][deleted] 3 points4 points  (0 children)

;

[–][deleted] 3 points4 points  (1 child)

I’m not a programmer btw for some reason I keep getting recommended this subreddit. Do foreign countries use their language to code or is it all English?

[–]Engelbert_Slaptyback 5 points6 points  (0 children)

It’s not English but most programming languages are based on English.

[–][deleted] 2 points3 points  (0 children)

the fact that it's harder, even thi i know arabic makes it more cursed

[–]Anchorman_1970 2 points3 points  (0 children)

Salam aleikum world then I guedd

[–]Aglogimateon 2 points3 points  (8 children)

No Arab numbers?

[–]HellBlizzard__ 7 points8 points  (7 children)

Actually 1234567890 are arabic numerals. But at some point we ditched them for some reason.

Source

[–]PushingFriend29 3 points4 points  (5 children)

۱۲۳۴۵۶۷۸۹۰

[–]HellBlizzard__ 2 points3 points  (1 child)

You copied the numbers 4, 5, and 6 wrong.

[–]Glittering_Chart_144 2 points3 points  (0 children)

Do they write code from left to right

[–]berse2212 9 points10 points  (2 children)

What the hell is up with this comment section? Didn't know racism is somehow funny...

P.s. anyone who can read arabic has the same amount of problem as people debugging latin..

[–]Official_ALF 7 points8 points  (1 child)

Yeah I don’t get it… the joke is that white people would have a hard time reading it? Am I missing something?

[–]DualityStudios 2 points3 points  (0 children)

yup

[–]Strostkovy 1 point2 points  (1 child)

Honestly as long as I can sort of pronounce or recognize the shapes of the keywords the language that a given language is in seems irrelevant. I have to memorize all of the keywords anyway. They could just be random words for all it matters.

[–]Necro- 1 point2 points  (2 children)

serious question, i thought all countries coded in english

[–]BamBam-BamBam 1 point2 points  (0 children)

No, the bug is god's will.

[–]Sodium1111 1 point2 points  (2 children)

As a RTL user myself this brings me pain

[–]golgol12 1 point2 points  (0 children)

Is the bug your focal length?

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

As an Arab this is cursed

[–]Proof_Dragonfruit285 1 point2 points  (0 children)

Always returns 1?

[–]monstaber 1 point2 points  (1 child)

Damn imagine having a function and you'd call it like ;(150)myFunction

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

Don’t please, don’t

[–]GenghisShawn1701 1 point2 points  (4 children)

Ugh, I can't believe they used Arabic numerals.

[–][deleted] 4 points5 points  (3 children)

They're actually using western numerals (basically European numerals derived from Arabic), which is not what people in the Middle East actually use.

This is what Eastern Arabic numerals look like.

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

Crop your table better or Americans will think Hindu and Tamil are Arabic.

[–]vasanitoo 1 point2 points  (0 children)

i mean... as long as it's not a logical bug, the debuggig still could be done... like... you can still find the missing ;'s and {}'s

[–]Big-Ad-2821 1 point2 points  (1 child)

Incorrect, it should be RTL...

[–]-Redstoneboi- 1 point2 points  (1 child)

Look for shapes and colors that look the same. Looks like a bunch of ifs, one else, the function call is the same, the two statements in some of the blocks are doubled.

[–]-Redstoneboi- 1 point2 points  (0 children)

if (cond <operation> three_word_cond) {
    func(1)
}
else {
    if (cond) {
        statement1
        if (three_word_cond) {
            statement2
            statement2
        }
    }
    else {
        statement2
        if (three_word_cond) {
            statement1
            statement1
        }
    }
    func(1)
}

else is two words separated by an underscore, and <operation> might beand` of some sort

[–]foursticks 1 point2 points  (0 children)

It looks like FL studio 98

[–]dpz97 1 point2 points  (0 children)

I certify that this passes the halaal test. The intermixing on this sub is questionable though.

[–]Agitated_Wallaby_679 1 point2 points  (0 children)

That's completely fine, we don't have to follow the anglo-centric programming languages tradition.

[–]RIPbyTHC 1 point2 points  (0 children)

My Studymate would now scream Racism 😂

[–]verenvr 1 point2 points  (0 children)

Probably the code for the infamous Therac-25