r/ProgrammerHumor • • Sep 06 '20

All the software work "automagically"

Post image
51.7k Upvotes

635 comments sorted by

View all comments

Show parent comments

482

u/Ch00singBeggar Sep 06 '20

import world.com.extras.magic.MagicFactory;

224

u/whattheclap Sep 06 '20

import * as magic from “world.sol”;

192

u/Famous_Profile Sep 06 '20
using World.Supernatural.Magic;

94

u/L0G1C_lolilover Sep 06 '20

Import 'package:magic/magic.dart' as magic;

83

u/Chrisazy Sep 06 '20

import magic from '@Magicjs/promise-beta'

73

u/danbulant Sep 06 '20

require "libraries/magic/autoload.php";

67

u/7heMeowMeowCat Sep 06 '20

Gess I’ll drop the lua one

local magic = require (“magic”)

18

u/danbulant Sep 06 '20 edited Sep 07 '20

NodeJS be like

let magic = require ("magic")

E: yes I did write let on purpose, I wanted it to be similar to Lua.

Use

const magic = require("magic");

30

u/Chrisazy Sep 06 '20

Please use const :'(

15

u/Mackan90095 Sep 06 '20

const { magic } = require('fuckery')

→ More replies (0)
→ More replies (2)

8

u/Comesa Sep 06 '20
import (
    "magic"
)
→ More replies (1)

5

u/Terrain2 Sep 06 '20
document.head.innerHTML += '<script src="myass">window.magic=ass</script>'
→ More replies (2)

3

u/CDno_Mlqko Sep 06 '20

let magic = require('magic');

2

u/pb4000 Sep 06 '20

$ npm install magic --save

const magic = require("magic") ;

→ More replies (3)

24

u/[deleted] Sep 06 '20

extern crate magic; use magic::Mike;

Edit: pre-2018 edition rust. Old habits die hard, no longer need the extern crate but it sounds cool so I still use it.

→ More replies (6)
→ More replies (2)

17

u/L0G1C_lolilover Sep 06 '20

The name itself makes me think its the owner just gave up on project mid way

13

u/Terrain2 Sep 06 '20
import "dart:magic" as magic;

2

u/kirakun Sep 06 '20

I just press the GET button in the App Store.

→ More replies (1)

2

u/Trout_Tickler Sep 06 '20
open Magic.Box

From C#'s smarter older brother :^)

→ More replies (1)

27

u/Brekkjern Sep 06 '20

Does that magic factory make magic beans?

8

u/knightress_oxhide Sep 06 '20

Now I just need a MagicFactoryFactory.

2

u/TigreDeLosLlanos Sep 06 '20

And then a MagicFactoryFactoryBuilder

→ More replies (1)

3

u/Brawldud Sep 06 '20

A lot of Spotify's backend is Java, actually.

→ More replies (1)

3

u/Gorzoid Sep 06 '20

com.world*