Click here to Skip to main content
15,914,608 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Nostalgia ain't what it used to be... Pin
OriginalGriff21-Dec-14 5:56
mveOriginalGriff21-Dec-14 5:56 
GeneralRe: Nostalgia ain't what it used to be... Pin
Kornfeld Eliyahu Peter21-Dec-14 6:01
professionalKornfeld Eliyahu Peter21-Dec-14 6:01 
GeneralRe: Nostalgia ain't what it used to be... Pin
Sander Rossel21-Dec-14 6:56
professionalSander Rossel21-Dec-14 6:56 
GeneralRe: Nostalgia ain't what it used to be... Pin
Fran Porretto22-Dec-14 2:08
Fran Porretto22-Dec-14 2:08 
GeneralRe: Nostalgia ain't what it used to be... Pin
Peter Shaw22-Dec-14 14:07
professionalPeter Shaw22-Dec-14 14:07 
GeneralRe: Nostalgia ain't what it used to be... Pin
mngerhold22-Dec-14 23:43
mngerhold22-Dec-14 23:43 
GeneralRe: Nostalgia ain't what it used to be... Pin
Antonino Porcino24-Dec-14 5:04
Antonino Porcino24-Dec-14 5:04 
GeneralThe things you learn writing your own web server PinPopular
Marc Clifton21-Dec-14 3:28
mvaMarc Clifton21-Dec-14 3:28 
For example:

When you start typing a link into Chrome (like, the first letter even!), if it can resolve from your history what that link is, it pre-loads the page behind the scenes so that when you select the link, in all likelihood, most, if not all of the page has already been loaded. Firefox doesn't do that. I have no idea what IE does.

Yes indeedy, because I'm logging the HTTP Get stuff (I'm using .NET HttpListener) you can in fact see this behavior of Chrome's.

You also learn other things, more on the mundane level, but it gives one a real appreciation of what tags and attributes like "form", "submit", and "name" do and their interaction with regards to actually emitting a POST HTTP method. Or, another example, responding with the correct encoding of images vs text files.

It's quite fun stuff, and while I know that there's been a lot of work that others have put into the finer devilish details of writing a web server, it sure is nice to do something at the bare metal level which doesn't depend on IIS, doesn't use the bloated dog slow crap that I discovered is MVC Razor, or, in the *nix world, isn't a morass of arcane configuration files (Apache, nginx, etc) or involves yucky ducky languages/frameworks like Ruby on Rails.

Oh, and after several hours of hair pulling and teeth gnashing last night, I also learned that you do not (I was using an example, so I sadly copy&pasted the code) create buttons with and id of "submit" because this breaks, not just jQuery but the DOM itself, with something like $('#form').submit(); Go figure.

And of course the bug I found the most amusing is that (and it may have been fixed now, but according to SO it has been like this for like, you know man, forever) in Firefox, you can't programmatically submit a form unless the form actually has a button of type "submit". Wow.

What a f***ed up world the web is. And I was just reading on LinkedIn on some group post where someone said that XAML is more complicated and desktop UI is moving towards web-forms, which is much simpler. Laugh | :laugh:

Marc

GeneralRe: The things you learn writing your own web server Pin
OriginalGriff21-Dec-14 3:42
mveOriginalGriff21-Dec-14 3:42 
GeneralRe: The things you learn writing your own web server Pin
Marc Clifton21-Dec-14 4:22
mvaMarc Clifton21-Dec-14 4:22 
GeneralRe: The things you learn writing your own web server Pin
Afzaal Ahmad Zeeshan21-Dec-14 4:19
professionalAfzaal Ahmad Zeeshan21-Dec-14 4:19 
GeneralRe: The things you learn writing your own web server Pin
Marc Clifton21-Dec-14 4:23
mvaMarc Clifton21-Dec-14 4:23 
GeneralRe: The things you learn writing your own web server Pin
Afzaal Ahmad Zeeshan21-Dec-14 4:34
professionalAfzaal Ahmad Zeeshan21-Dec-14 4:34 
GeneralRe: The things you learn writing your own web server Pin
BillWoodruff21-Dec-14 4:56
professionalBillWoodruff21-Dec-14 4:56 
GeneralRe: The things you learn writing your own web server Pin
David Lormor22-Dec-14 3:40
David Lormor22-Dec-14 3:40 
GeneralRe: The things you learn writing your own web server Pin
bantling22-Dec-14 5:35
bantling22-Dec-14 5:35 
GeneralRe: The things you learn writing your own web server Pin
bantling22-Dec-14 5:42
bantling22-Dec-14 5:42 
GeneralRe: The things you learn writing your own web server Pin
Mustafa Ismail Mustafa22-Dec-14 6:08
Mustafa Ismail Mustafa22-Dec-14 6:08 
GeneralRe: The things you learn writing your own web server Pin
crazedDotNetDev22-Dec-14 9:10
crazedDotNetDev22-Dec-14 9:10 
GeneralRe: The things you learn writing your own web server Pin
Peter Shaw22-Dec-14 13:53
professionalPeter Shaw22-Dec-14 13:53 
GeneralRe: The things you learn writing your own web server Pin
Marc Clifton22-Dec-14 15:21
mvaMarc Clifton22-Dec-14 15:21 
GeneralRe: The things you learn writing your own web server Pin
Peter Shaw22-Dec-14 23:27
professionalPeter Shaw22-Dec-14 23:27 
GeneralRe: The things you learn writing your own web server Pin
Marc Clifton23-Dec-14 2:48
mvaMarc Clifton23-Dec-14 2:48 
GeneralRe: The things you learn writing your own web server Pin
AspDotNetDev22-Dec-14 19:18
protectorAspDotNetDev22-Dec-14 19:18 
NewsWork in progress on my MenuRibbon.WPF Pin
Super Lloyd21-Dec-14 3:17
Super Lloyd21-Dec-14 3:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.