News for hackers. Stuff that matters.
Re:Show HN: I Rebuilt MySpace from 2007 by 5986043handy on Sunday November 29, 2020 @12:23PM (#25246481)
What tech stack did you end up using for the backend?
Re:Show HN: I Rebuilt MySpace from 2007 by D_B_Koopa on Sunday November 29, 2020 @01:30PM (#25246922)
for it to be legitimate you need to use ColdFusion and then do a half assed port to .net.
Re:Show HN: I Rebuilt MySpace from 2007 by dhosek on Sunday November 29, 2020 @10:08PM (#25250387)
My wife worked there for the transition. Her very first .net page was the MySpace homepage (which was demoed by Steve Ballmer at CES, iirc). Microsoft was very unhappy with the decision to retain the .cf extension on web pages even after the transition to .net. There were some crazy levels of scaling happening behind the scenes—they had database requirements beyond the capabilities of sql server and there was code on the server side to route to different sql clusters based on the user's numeric id. They also had more page views than they could sell ads for. There was actually a pretty crazed level of new feature development happening at the same time—any time that friendster or some other site would release a new feature, Tom would insist that it be implemented on MySpace right away. At the same time, he was also requiring things like pixel-for-pixel identical output for existing pages/features through all of this.
Re:Show HN: I Rebuilt MySpace from 2007 by 411111111111111 on Monday November 30, 2020 @01:23AM (#25251205)
> to route to different sql clusters

That's called sharding and is pretty widely used nowadays. There is even readily available middleware that handles this for you, so no need to put it into the backend.

Re:Show HN: I Rebuilt MySpace from 2007 by yellowapple on Monday November 30, 2020 @03:20AM (#25251765)
Keep in mind this is more than a decade ago. Sharding was almost certainly state-of-the-art and exotic back then (hell, it's arguably pretty unusual in the wild even today, even if a lot more mature of a concept).
Re:Show HN: I Rebuilt MySpace from 2007 by 411111111111111 on Monday November 30, 2020 @03:54AM (#25251951)
Oh, of course! I did not wish to come of as arrogant. I just wanted to add the term (for easier googling if someone is interested) and a note that it's no longer necessary to modify your api to use that strategy.
Re:Show HN: I Rebuilt MySpace from 2007 by dhosek on Monday November 30, 2020 @10:52PM (#25262117)
IIRC, this was actually a step beyond the sharding that MS SQL supported. They were really the first people to do big data.
Re:Show HN: I Rebuilt MySpace from 2007 by DaiPlusPlus on Monday November 30, 2020 @12:13AM (#25250929)
> At the same time, he was also requiring things like pixel-for-pixel identical output for existing pages/features through all of this.

Break middle-school students' copypasta CSS rules for animated GIF backgrounds at your peril.

Re:Show HN: I Rebuilt MySpace from 2007 by 83457 on Sunday November 29, 2020 @01:46PM (#25247012)
I was at a CF conference with MySpace as a speaker and they talked about how often they went down but that they were switching to another CF engine with .net capabilities (BlueDragon). Their discussions and jokes about instability and going down due to bad code updates were really cringy and gave the impression that their platform was a mess.
Re:Show HN: I Rebuilt MySpace from 2007 by rmason on Sunday November 29, 2020 @02:55PM (#25247561)
Pretty certain we were at the same conference. There development practices horrified the group I was with in the audience. At a time that a new competitor appeared (Facebook) they made the fatal mistake of rewriting their software in dot Net. No new features for a year or more. Joel Spolsky wrote a pretty famous essay about the wisdom of doing that.

https://www.joelonsoftware.com/2000/04/06/things-you-should-...

Re:Show HN: I Rebuilt MySpace from 2007 by adrr on Sunday November 29, 2020 @04:43PM (#25248361)
Performance was the feature. Friendster should have been social network of that era but they couldn’t scale and had to shutdown new user registration. Same thing happened to Twitter but they had no competitor in short form social networking.
Re:Show HN: I Rebuilt MySpace from 2007 by lowcodetv on Sunday November 29, 2020 @05:06PM (#25248536)
Pownce?

"Twitter on steroids" [0]

[0] https://en.m.wikipedia.org/wiki/Pownce

Re:Show HN: I Rebuilt MySpace from 2007 by rkuykendall-com on Sunday November 29, 2020 @11:28PM (#25250746)
I remember when Kevin Rose of Digg made a lot of noise to launch this and then it very, very quickly died.
Re:Show HN: I Rebuilt MySpace from 2007 by conjectures on Sunday November 29, 2020 @04:22PM (#25248201)
Thanks for this one, it encapsulates a feeling I've had for a while but could never verablize so well.
Re:Show HN: I Rebuilt MySpace from 2007 by jeremycarter on Sunday November 29, 2020 @03:49PM (#25247952)
I live by that blog post.
Re:Show HN: I Rebuilt MySpace from 2007 by jjeaff on Sunday November 29, 2020 @05:17PM (#25248606)
I had an older friend that worked at CF when I was a teenager. He taught me a bit about relational databases and some other important stuff as he was one of the only developers I knew growing up.

I remember him telling me how I was wasting my time building in php/MySQL since CF was the future and serious companies wouldn't be looking for php developers. Glad I never pulled the trigger and bought their expensive IDE.

Re:Show HN: I Rebuilt MySpace from 2007 by 83457 on Sunday November 29, 2020 @05:36PM (#25248732)
No expensive IDE was necessary and there are open source servers now. Regardless, you made the right choice.
Re:Show HN: I Rebuilt MySpace from 2007 by kodah on Monday November 30, 2020 @03:39AM (#25251882)
> No expensive IDE was necessary

This is most certainly debatable

That said, that IDE was legit. It was comparable to IntelliJ. I want to say I used it over Komodo quite frequently.

Re:Show HN: I Rebuilt MySpace from 2007 by bigiain on Sunday November 29, 2020 @05:55PM (#25248859)
For proper early 2000s nostalgia, I reckon the backend should actually be Apache mod_perl, with the ".cfm" extension script aliased to Perl CGI scripts because management tell everybody "it's running on Adobe!"...
Re:Show HN: I Rebuilt MySpace from 2007 by hestefisk on Sunday November 29, 2020 @06:18PM (#25249031)
Aah yes, mod_perl. That brings back memories.
Re:Show HN: I Rebuilt MySpace from 2007 by peterwwillis on Sunday November 29, 2020 @09:57PM (#25250330)
If you had enough rack space, mod_perl+Apache2 could scale to anything you needed. Hundreds of Gbps, hundreds of thousands of RPS. Inefficient, sure, but seriously flexible+performant and really easy to deploy. I miss the old stacks, as Nginx and the other httpds really suck in comparison (feature-wise) and Java is still such a huge PITA. I'd honestly rather use modern PHP than today's Java webapps.
Re:Show HN: I Rebuilt MySpace from 2007 by jasonjayr on Sunday November 29, 2020 @10:51PM (#25250556)
Some of us still run mod_perl stacks .... :)
Re:Show HN: I Rebuilt MySpace from 2007 by cutler on Monday November 30, 2020 @06:24AM (#25252696)
PHP is pseudo-Java anyway so where's the win?
Re:Show HN: I Rebuilt MySpace from 2007 by zingermc on Sunday November 29, 2020 @01:34PM (#25246938)
<cfdump var="bad_memories"/>
Re:Show HN: I Rebuilt MySpace from 2007 by zingermc on Sunday November 29, 2020 @06:30PM (#25249124)
Hilariously, ColdFusion strikes again. I should have used pound signs around the bad_memories variable. The above code would dump the string "bad_memories".

Corrected:

<cfdump var="#bad_memories#"/>

Re:Show HN: I Rebuilt MySpace from 2007 by Grazester on Sunday November 29, 2020 @07:26PM (#25249487)
<cfdump var="#bad_memories#"/>

I don't believe that /> is needed anymore. You can just use >

I unfortunately work with coldfusion/cmfl on a daily basis at my company. I am moving the servers over to Lucee from Coldfusion 10 and trying to have any new systems built on C#/.net. The most difficult part is getting other people on board. My manager is fine with what I am doing. He saids he is too old to learn a new language so myself and the other programmer will have to support anything I built in .net

Let me tell you folks. Writing spaghetti code with no separation of concerns and no version control is not exclusive to php

Re:Show HN: I Rebuilt MySpace from 2007 by zingermc on Monday November 30, 2020 @03:04PM (#25258245)
> Let me tell you folks. Writing spaghetti code with no separation of concerns and no version control is not exclusive to php

Yowza. If I can give you some unsolicited advice: get some kind of version control in place! Even if it's just a local git repo at first.

There were two things that made working in ColdFusion almost tolerable. (1) The place I worked started using an MVC framework before I left. I was pleasantly surprised by how much it improved the experience. (2) Transitioning to CFScript instead of CFML tags made a big difference as well.

But at the end of the day, it's still ColdFusion, and it drove me bonkers.

Re:Show HN: I Rebuilt MySpace from 2007 by sim_card_map on Sunday November 29, 2020 @06:39PM (#25249183)
I still can't believe someone came up with this syntax and thought it was a good idea.
Re:Show HN: I Rebuilt MySpace from 2007 by rmason on Sunday November 29, 2020 @07:01PM (#25249319)
The guy who invented that syntax was J.J. Allaire. Bill Gates passed on his advisors recommendation and didn't buy Allaire because he thought the price was too high. Instead he bought a company in Hawaii building what became ASP.net. However he was quite impressed with J.J.

But years later when J.J. started a second company, it was only a few weeks old when Gates swept in and bought it for millions of dollars.. Shut it down and moved everyone to Seattle.. He immediately assigned J.J. and his team to build a new project called Azure.

Re:Show HN: I Rebuilt MySpace from 2007 by rmason on Sunday November 29, 2020 @07:09PM (#25249381)
J.J. Allaire's other brother and partner in ColdFusion was Jeremy. Jeremy has started two successful companies since leaving Macromedia. They are BrightCove and Circle. I don't know about Circle but at one time parts of BrightCove were running on ColdFusion.
Re:Show HN: I Rebuilt MySpace from 2007 by AndrewLaneX on Sunday November 29, 2020 @04:22PM (#25248200)