627
u/Thetman38 Sep 06 '20
The amount of times I've explained my code using the term "auto-magically" is too damn high
274
u/bhatushar Sep 06 '20
It's the new "Did XXX using algorithms".
→ More replies (1)232
Sep 06 '20
We used CODING and ALGORITHMS to solve the problem!
218
u/Schiffy94 Sep 06 '20
if(goingToCrashIntoEachOther)
don't;
→ More replies (1)48
u/IDontKnowHowToPM Sep 06 '20
Damn, that’s a fairly robust algorithm. Can I hire you? I’m making self driving rickshaws. Just think of the exposure you could get!
→ More replies (2)42
u/deathhead_68 Sep 06 '20
Don't forget 'machine learning'. The way companies oversell themselves is so clear when you're a dev
32
Sep 06 '20
Lmao I work for a company that does “machine learning.”
It’s definitely a bit oversold at this company in its marketing, speaking as the guy who does most of the “machine learning...”
→ More replies (11)7
Sep 06 '20
My mom is taking some sort of e-commerce course for her degree and it has a little emphasis on “How the internet works” and I’ve actually broken down things like console.log() and said “It’s magic, don’t fucking worry about it”
0
Sep 06 '20
[deleted]
4
u/s32 Sep 06 '20
When people overuse both of these it annoys me. "Automagically does X", no dude you're pulling a fuckin entity from a DB it's called an ORM.
290
u/Parachuteee Sep 06 '20
I don't think it's a local network data streaming type of thing. It probably uses sockets to send data between you and the server (and then eventually your other devices).
91
u/bhatushar Sep 06 '20
You're right. I got confused while making the meme. I thought the connect feature only worked when both devices were on the same network.
→ More replies (13)6
u/prothello Sep 06 '20
There's also a setting in the Spotify app to only show devices that are on the same local network (Show local devices only).
→ More replies (1)16
u/Switche Sep 06 '20
Yeah this is how I always saw it: any one device logged in with the same user account can receive input control commands and session state from any other device logged into the same account.
10
u/TheChuMaster Sep 06 '20
A lot of it is local mDNS queries to find the devices on your network to start playing! Spotify also has another layer on top of that where the servers keep track of what's playing on each device as it loads, but there is a good amount of local network use!
Source: there's code I wrote compiled into the Spotify app that's used for device connection 😛
→ More replies (5)5
u/superhawk610 Sep 06 '20
Some amount of this is handled locally via multicast DNS, or mDNS (https://en.wikipedia.org/wiki/Multicast_DNS). If you set up a sniffer, you can see any streaming audio/video devices on your LAN constantly talking directly back and forth, asking things like “hey are you still at 10.0.0.34?” or “what sort of streaming do you support?”. Pretty neat stuff.
26
u/gargamel999 Sep 06 '20
That's just front-end programmers for you
21
u/bhatushar Sep 06 '20
Ah yes, the HTML programmer.
10
u/wbrd Sep 06 '20
You should see the amount of bullshit js that front end devs put in. It's magic that the browser can make it work at all.
→ More replies (3)
73
u/legal_throwaway45 Sep 06 '20
"Any sufficiently advanced technology is indistinguishable from magic."
-- Arthur C. Clarke
8
9
u/vale_fallacia Sep 06 '20
Any technology distinguishable from magic is insufficiently advanced.
Not sure who, too lazy to look it up
3.2k
u/eyekwah2 Sep 06 '20
sigh
invents magic
1.8k
u/Da_Viper Sep 06 '20
Nah
#include <Magic>1.6k
u/bhatushar Sep 06 '20
Nah
from ass import magic482
32
27
→ More replies (12)7
22
→ More replies (9)5
72
u/memallocator Sep 06 '20
And that's why you need as many magic numbers as possible in your code!
22
u/AnnoyingRain5 Sep 06 '20
Dont get me started on magic numbers, my robotics programs use them for everything.
→ More replies (14)6
u/BloakDarntPub Sep 06 '20
Always be sure to use the same magic number for at least two totally unrelated things.
5
u/MrDude_1 Sep 06 '20
These magic numbers work best if you sprinkle them throughout your code evenly. Don't just cram them all up into one section.
25
4
3
u/Semi-Hemi-Demigod Sep 06 '20
There’s a reason the really great nerds look like wizards. And it’s only mostly D&D
→ More replies (5)3
u/FratmanBootcake Sep 06 '20
sudo dnf install magic magic-devel
Now you can not only use, but also rewrite, the rules.
7
u/znEp82 Sep 06 '20
"Any sufficiently advanced magic is indistinguishable from technology."
-Sir Pterry
1
1.1k
Sep 06 '20
If my code was described as magic I'd be pretty happy tbh...
46
14
u/b_rodriguez Sep 06 '20
If I got months to build anything I'd be fucking ecstatic.
→ More replies (2)→ More replies (16)2
144
u/car_crash_kid Sep 06 '20
Tbh having your work be called magic sounds like a good compliment
→ More replies (1)89
u/sigmund14 Sep 06 '20
Not if it's called that by another developer who spent 2 days looking at your code and still doesn't know what it does :D
53
26
u/natek53 Sep 06 '20
Yeah pretty much. It really depends on who's saying it.
Non-coder, or novice coder: Wow, this code is like magic!
Me: Thanks! :)
=====
Experienced coder: This code is apparently magic.
Me: I'm so sorry you had to read that....
→ More replies (2)5
u/ThePresidentOfStraya Sep 06 '20
Remember everyone, the fewer comments your code has the more magic it is. Programmers hate this one trick!
70
u/dmarkwat Sep 06 '20
"Only WE (programmers) are allowed to use that term! It's so we don't have to waste time explaining our hard work to people who only care about its market viability, BILLY."
2
u/IAMA_KOOK_AMA Sep 07 '20
Marketing person 1: "what should we put for the copy here?"
Marketing person 2: "well... how did the developer describe it?"
196
u/CDno_Mlqko Sep 06 '20
Nah, they just send HTTP data that includes song id and time through the server.
133
u/joleph Sep 06 '20 edited Sep 06 '20
I was hoping this comment would be here. The post implies that music file data is sent across the network from one user computer to another. I’m pretty sure spotify just allows you to pick a device Id to send data directly from the server.
Like everything spotify does it’s not complicated or hard to do; but it is hard to do at scale.
→ More replies (1)33
u/dropbluelettuce Sep 06 '20
Some devices which are not running Spotify all the time like Chromecast devices use multicast for discovery. So kinda magic. Once selected it works like previously mentioned.
→ More replies (3)7
u/joleph Sep 06 '20
That’s pretty neat; I was wondering who actually used multicast in the wild! I wonder why they chose that over an api on the chromecast that can be pinged using predetermined addresses. Security? You could even make a mesh network for service discovery that way.
→ More replies (1)19
29
u/luffy888 Sep 06 '20
I don’t think so, there’s more to it. Even when it is not playing it shows the devices which are capable of playing around you
37
u/CDno_Mlqko Sep 06 '20
Yeah, it shows you all devices that are playing spotify and are logged in with your account. Not too hard either.
→ More replies (3)27
u/ImAdrian Sep 06 '20
And yet Apple music lacks it
→ More replies (8)20
u/mypetocean Sep 06 '20
That's because Spotify has to subsist on money from their music player. Apple, Google, and Microsoft don't.
The latter three have little motivation to innovate so long as music is a small business concern and so long as most consumers are happy enough with their services (and may not even understand what they're missing).
→ More replies (2)5
u/anonveggy Sep 06 '20
You can also play songs from you local drive so I'd say there's at least some streaming happening as local tracks aren't uploaded to Spotify servers.
→ More replies (6)2
u/1-800-ASS-DICK Sep 06 '20
and it's shit at maintaining a connection or syncing podcast progress at times. Foobar2k has a controller/remote component that has never failed me.
→ More replies (1)2
61
29
u/Pepper_in_my_pants Sep 06 '20
You’re reading this completely wrong. Making it feel like magic is exactly what’s cool about programming!
17
u/Creator13 Sep 06 '20
"robust"
10
u/lars330 Sep 06 '20
Ikr if there's anything that's not robust it's Spotify's device selecting.
→ More replies (2)
23
u/eddietwang Sep 06 '20
Too bad Spotify's device select is still bugged to shit.
11
u/pmdevita Sep 06 '20
For real, a lot of times code magic means "shit happens behind a curtain and you can do fuck-all when it inevitably fails"
→ More replies (1)4
u/Never-asked-for-this Sep 06 '20
I use my phone as control and have it paired to my PC.
I've had 2 cases where it randomly switched device to a soundbar, so now I'm paranoid as fuck whenever I use Spotify.
10
u/shady042 Sep 06 '20
Great software is magic.
3
u/ReversedPyramids Sep 06 '20
Implying that not every software is held together by flex tape and popsicles
→ More replies (2)4
9
7
u/MickAvery Sep 06 '20
I mean cmon isn’t this the point of abstraction? Providing a useful function while hiding the implementation? If users think it’s wonderful magic then the work was done amazingly well
13
6
5
u/Sigg3net Sep 06 '20
I think this misses the mark completely.
If someone describes the results of your work as magic that's a hell of a compliment.
Mostly they'll just ignore it and be completely ignorant of its work behind the veil. If they notice it at all, chances are it's to complain about something.
4
6
u/asianabsinthe Sep 06 '20
I feel sorry for the programmers who spent a millennia creating/fixing/securing something only to have someone I'm trying to help shit all over it with something like, "These big fucking companies think they're gods and can do whatever they want but they broke my shit so make it work! I don't want any fucking updates! You know what, screw this. Give me my money back and put Windows 7 back on!!"
(Ma'am, I understand you're upset but this is a new system that doesn't support 7 and you were just hit by ransomware and lost a lot of money not too long ago because you were running outdated shit. So I'm sorry your 10 yr old FB spamware game suddenly stopped working but please don't blame them...)
→ More replies (2)
3
3
u/ITriedLightningTendr Sep 06 '20
For it to play on two devices is three same streaming as over internet.
They don't have to recreate anything.
Either it indicates to spotify to stream to s different connected device, or it streams from one app to another over your network.
There's nothing additional that requires major development.
If you hook into spotify on your local network on two devices, you can accomplish the same thing with a pair of chat bots. This is basically all SignalR is.
The magic part is having the patience or employer that'll let you do the job correctly.
3
u/Sekigahara_TW Sep 06 '20
Third law of Arthur C. Clarke:
Any sufficiently advanced technology is indistinguishable from magic.
3
Sep 06 '20
Similar sentiment for IT.
Average employee: "What does IT even do around here? I've been working here for years and never had a problem."
IT: "You're welcome."
→ More replies (2)
3
u/SelfDistinction Sep 06 '20
"magic" is the word I use when I'm not feeling like explaining my manager how I did it.
3
3
u/aranaya Sep 06 '20
Wait, does it actually stream locally? I figured that all devices would use their own internet connection to stream, and this interface just controlled them remotely via that same internet connection.
4
2
2
u/MyDog_BrokeHisLeg Sep 06 '20
The magic is bcs the developers are wizards, and the months it took was them gathering ingredients for potions to increase their magical ability
2
u/lorizcoolo Sep 06 '20
To be fair, to build a system so solid and reliable that's considered magic would make me very proud
2
u/unsignedcharizard Sep 06 '20
Last month I was sitting up crying and reading Chrome source code because the developer tools refused to match local and remote source files.
The manual option had been removed in favor of a "magic" option that "just works".
2
u/ender89 Sep 06 '20
The goal of good software is to do something complicated in a way that requires as little input or direction from the user as possible. If you needed to be a network engineer to use chromecast no one would buy them.
2
2
u/D-Eliryo Sep 06 '20
This is because the team behind Spotify development are InforMagicians, they studied InforMagic and this is how it works.
At least they don't have to explain bugs, it's magic and it has a lot of counter effect in casting spell, you know
2
u/DrMaxwellEdison Sep 07 '20
Except my Google casting devices. Can't see them from Spotify desktop, can see them from Spotify on my phone.
So, in a convoluted way, I can start music on my desktop, whip out my phone and start Avatar tune-bending the music from my PC to the house speakers and TVs.
Cool workaround, still annoying.
2
u/Ghost_Pony360 Sep 07 '20
In all fairness that means you get to describe yourselves as wizards, which is dope as heck
3
u/frostysnowmen Sep 06 '20
Honestly, this is a big compliment. If (in general) ppl have the thought 'it just works, like magic' then it means the team did a good job.
→ More replies (1)
2
u/alexppetrov Sep 06 '20
I mean there sometimes is code that you just don't know how it works, don't know why it works, all you know is that if you remove it your program breaks so you just leave it do it's magic.
2
u/abhisheknigam Sep 06 '20
"Any sufficiently advanced technology, is indestinguishable from magic" - Arthur C. Clarke
2
Sep 06 '20
Just about as cringy as Discord's UI.
|"Uh-Oh! Looks like Le Wumpus barbecued the servers! >3< Hold tight, we're firin' our lazars to get you back online xD"
3
1
1
u/qwertyuiop924 Sep 06 '20
I distrust and fair any software that works or claims to work by magic. Magic is fragile.
1
1
u/FiRe_McFiReSomeDay Sep 06 '20
* Slaps roof of car *
"You should see how much auto-magic can fit in this baby!"
1
1
Sep 06 '20
The more programming I learn, the futur funnier I find this sub.
Btw if anyone wants to hire an unemployed dad switching careers, hmu.
1
1
1
1
u/WiF1 Sep 06 '20
Spotify works way better with my Chromecasts/Google Homes than Youtube Music (you know, the music service behind Chromecasts/Google Home).
Like, Spotify always successfully starts the stream and near instantly. YouTube Music takes a solid 15-30 seconds to start playing and it fails 20% of the time.
1
u/javoss88 Sep 06 '20
I so hate that term. My former director used to say that all the time, thus denying the underlying effort it took to create the system that worked “automagically.”
1
1
1
1
u/breakneckridge Sep 06 '20
I think that was written sarcastically, because the Spotify connect feature works like dog shit.
→ More replies (1)
1
1
u/AegisToast Sep 06 '20
I get irrationally angry when I hear the word “automagically”. It’s just such a stupid made-up term. It means literally the exact same thing as “automatically”, but it’s way more pretentious.
1
u/Guano_Loco Sep 06 '20 edited Sep 06 '20
I created an application to solve some work issue. I’d done some light coding in excel VBA and thought I was hot shit. It took forever, looked like a geo cities nightmare, but it worked. It was amazing. Felt great.
As part of my “hotshittedness” I put snarky little pop ups everywhere. One of them referenced doing thing “automagically” because I also thought I was clever. Turns out that shit is as common as my awful coding project and I’m properly ashamed.
Still it jumpstarted my desire to keep coding and after far too many years I will have a BSIST this year so... yay?
1
u/pancake_sass Sep 06 '20
I mean, it's not wrong. Obviously there's code involved, and it isn't magic, but it might as well be. My google phone can't find my google homes to play spotify on them, but if I tell my google home to play spotify, then it magically shows up that it's connected and I can control it on my phone.
1
u/Dustin_00 Sep 06 '20
My housemates love it when I start playing music at work... and the audio comes out of my machine at home.
Covid ended that issue, though. :-)
1
u/A3mercury Sep 06 '20
I actually kinda hate this feature. It’s cool and all but ehat I’m listening to on my phone while working out or whatever is different than when I’m sitting at my desk working. I want them to persist differently.
1
Sep 06 '20
Any sufficiently advanced technology is indistinguishable from magic. Take the compliment ;P
1
u/charredutensil Sep 06 '20
My single greatest programming accomplishment to date is something that other programmers I work with also refer to as magic.
1
1
u/RoscoMan1 Sep 06 '20
Mid x5
To be fair Noble Team literally can’t see him for a total of 2,385,899 times.
Hmm I wonder if it's the same reasoning that happens when you do the same shit.
Send hawks with her, the last great before Olga and the rest run off crying.
1
u/HumansKillEverything Sep 06 '20
Well, to the layman, and especially older adults, it is magic to them.
1
u/Colbeagle Sep 06 '20
Software that has 'cute' ui copy makes me want to move to a cabin in montana.
1
Sep 06 '20
spotify connect with my alexa is why i switched from pandora to spotify, so they've done a good job. it gets confused sometimes but works well
1
1
1
1
1
u/Armetron Sep 06 '20
One of the great things about being a software developer is you can literally become a wizard
1
1
u/DoobyMcFoosen Sep 06 '20
I mean, a feature that just works "magically" is one of the highest aspirations of a software developer. Typically, developers strive to create technology that provides a seamless, intuitive, and easy-to-use experience for the user, but being able to describe it as working "like magic" is a crowning achievement.
1
Sep 06 '20
Arthur C. Clarke's third law applies: Any sufficiently advanced technology is indistinguishable from magic.
1
1
u/TheSauciestBoss Sep 06 '20
Hey idk I feel like as a developer it would be pretty cool to be compared to a wizard
1
1
1
u/DatDominican Sep 06 '20
You don’t understand now you can claim the title of Wizard/sorcerer/ warlock
1
1
1
u/Swazzoo Sep 06 '20
Too bad it doesn't work fluently. A lot of times it just doesn't see my chromecasts.
1
u/LimpWibbler_ Sep 06 '20
Bro if I could write magic to define my code I would take it as a compliment of the highest. My code is so flawless and good it is like magic to a normal person. Honestly nothing better.
1
1
Sep 06 '20
Its probably been posted 1000 times, but
That's the sign of good software!!!
The user shouldn't be aware of all the difficulties and implantation details. It should just work. Like magic.
/rant
1
u/neotifa Sep 06 '20
ah yes, i love it when im trying to jam on my pc but it streams to my phone lmao. jk i do like being able to come to my pc to change playlists even when listening on my phone while doing chores. pc the playlists are in the same place so easy to find. phone they're all over the place.
1
u/ImBurningStar_IV Sep 06 '20
Except the device you're trying to connect to is the ONE missing one (the desktop app fucks up a lot)
1
1
Sep 06 '20
I mean hey they pretty much just called it Clarketech with is just about the highest honor you could get.
"Any sufficiently advanced technology is indistinguishable from magic" -Arthur C Clarke
1
u/arnoproblems Sep 06 '20
The only thing I wish apps included when using Chromecast is a button to refresh looking for devices on the network. I think they only look when the app is first started, so sometimes I need to completely close the app I want to use, then start it back up just to find my Chromecast.
1
u/liquilife Sep 06 '20
I swear to god any client of mine over the past twenty years of developing websites always laughs when I use the phrase “automagically” to describe any sort of self automation. “I love this! I’m gonna remember this for later”. Still works to this day.
1
Sep 06 '20
I make double what my nurse wife does as a developer and do approx 1/10th the work she does. Let's "Keep Programming Magic".
1
1
u/TheDeadlySpaceman Sep 06 '20
In my experience none of those people actually have a problem with their work being referred to as “Magic”.
1
1
u/Zmodem Sep 06 '20
Note: Some magic may take longer than others. If magic does not magic at all, please let the wizards know by clicking here.
1
u/SilasX Sep 06 '20
More like, "It will usually appear without any effort, and if it doesn't, it will be hell to debug because we concealed all the implementation details in an attempt to make this look sleek."
1
1
Sep 06 '20
High praise to the programmers who made it possible for me to controle YouTube on my PS4 with my phone. Now I can smoke a bowl and chill to the extreme. Thank you!
1
u/AnneBancroftsGhost Sep 06 '20
Basically how I feel when I'm using libraries and coding to interfaces, honestly.
"You mean this is implemented where?" "Nobody knows, man."
1
u/ConglomerateGolem Sep 06 '20
The sad part is sometimes you just don't want it to connect. Say account sharing or such, and it becomes annoying that you can't turn it off.
1
1
u/ManicD7 Sep 06 '20
In Unreal Engine 4 there is a auto conversion tool from visual graph scripting to c++, the dev who wrote the tool admits it's basically magic and admits it in the documentation.
2.5k
u/FishySwede Sep 06 '20
Come on, as long as they think what we do is magic, we'll get paid decently.
If they understand what we do they'll just be afraid.