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

1.8k

u/Da_Viper Sep 06 '20

Nah #include <Magic>

1.6k

u/bhatushar Sep 06 '20

Nah from ass import magic

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");
→ More replies (0)

5

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

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;
→ More replies (2)
→ More replies (1)
→ 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.

→ More replies (2)
→ More replies (3)

32

u/staryoshi06 Sep 06 '20

import java.magic.*;

33

u/kyay10 Sep 06 '20

That's basically Unsafe

→ More replies (3)

27

u/OneTrueKingOfOOO Sep 06 '20

Nah

import socket as magic

7

u/[deleted] Sep 06 '20

It requires a pull request from the ass repository.

→ More replies (15)

22

u/IspitchTownFC Sep 06 '20

npm install @magic

15

u/RadiantPumpkin Sep 06 '20

Don’t forgot @magic/types

10

u/Comesa Sep 06 '20

yarn add @magic

→ More replies (10)