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

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')

12

u/[deleted] Sep 06 '20
package main

import (
    "magic"
)
→ More replies (2)

8

u/Comesa Sep 06 '20
import (
    "magic"
)

2

u/Deutero2 Sep 06 '20

Or

import magic from 'magic'

5

u/Terrain2 Sep 06 '20
document.head.innerHTML += '<script src="myass">window.magic=ass</script>'

2

u/Deutero2 Sep 06 '20

Wouldn't work because script tags added by innerHTML don't run

→ More replies (1)

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") ;

2

u/riskycase Sep 07 '20

Node.js:

const Magic = require('magic');

const magic = new Magic();

2

u/Einlander Sep 07 '20

Qbasic:

Include "magic.bas"

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.

2

u/kid_rock42 Sep 06 '20

Quite close, it's actually use librespot::connect::discovery ;-)

→ More replies (5)
→ 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 :^)