Timeline for Shortest Sorted Hello World
Current License: CC BY-SA 3.0
33 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17, 2020 at 9:04 | history | edited | CommunityBot | Commonmark migration | |
| Apr 13, 2017 at 12:39 | history | edited | CommunityBot | replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/ | |
| Mar 31, 2015 at 11:55 | comment | added | Ismael Miguel | @skagedal Thank you. Sadly, I only saw your python code 20 minutes ago. Kinda late on the run, but surelly helped me to check once again if I had screwed again or if everything was well ordered. | |
| Mar 31, 2015 at 11:49 | comment | added | skagedal | @IsmaelMiguel Good job! :) | |
| Mar 31, 2015 at 11:10 | comment | added | Ismael Miguel | @skagedal You are correct once again. The fix was easy: Just swapped quotes! Since the order is "#$%&, this now is correct. | |
| Mar 31, 2015 at 11:09 | history | edited | Ismael Miguel | CC BY-SA 3.0 | Fixed answer 2 |
| Mar 31, 2015 at 11:07 | comment | added | skagedal | @IsmaelMiguel The first solution now has correctly sorted lines! :) Line 6 of the second still doesn't work. | |
| Mar 31, 2015 at 8:17 | comment | added | Ismael Miguel | @skagedal Now they are correct. I've managed to reduce 2 lines from the first answer. The last one will be harder, but it was also just meant as an alternative. The idea was to use as many newlines as possible. But once again, thanks for pointing that out. It was a bit late when I made the edit, so, I kinda expected to mess up somewhere. | |
| Mar 31, 2015 at 8:10 | comment | added | Ismael Miguel | @skagedal Thanks for pointing out. Now they are fixed. But I'm not happy with the fix. I'll look for a better one. | |
| Mar 31, 2015 at 8:09 | history | edited | Ismael Miguel | CC BY-SA 3.0 | Fixed first answer, shortened it 2 lines. |
| Mar 31, 2015 at 6:06 | comment | added | skagedal | @IsmaelMiguel I'm sorry, but no. Line 7 of the first suggestion is not sorted. Lines 5 and 7 of the second suggestion are not sorted. | |
| Mar 30, 2015 at 23:09 | comment | added | Ismael Miguel | @skagedal I've rewritten the whole answer and it is clean now. I'm sorry for the delay. | |
| Mar 30, 2015 at 23:08 | history | edited | Ismael Miguel | CC BY-SA 3.0 | Complete rewrite! |
| Mar 30, 2015 at 15:02 | comment | added | Ismael Miguel | @skagedal It is indeed badly sorted... I'm trying to find a fix for it and I'm preparing an update, 'cause this answer is getting a mess with so many edits. | |
| Mar 30, 2015 at 14:27 | comment | added | skagedal | The top two solutions in this answer do not follow the rules. The top one has, as line 8, ."!<br - this is not sorted. The second one has as line 10: ."! - not sorted. | |
| Mar 30, 2015 at 11:31 | comment | added | Ismael Miguel | @CJDennis I can put there the 'long' tags if you wish. Or I can go crazy and use the <script language="php"></script> tag (Yes, it works too!). But I'm happy with the result. Actually, I could drop the echo entirelly, if instead of <=>? the order had the ? between < and =. Also, I can't drop the <br>. If I leave the <br> out, the browser will render a space at the end, instead of a new line. According to the rules, that is invalid. The errors generated are because the constants Hello, Wor, l and d don't exist and PHP is warning that it is assuming them as a string. | |
| Mar 30, 2015 at 11:01 | comment | added | CJ Dennis | You can save 5 characters and one line in your browser version by removing the <br> as the newline is optional. | |
| Mar 30, 2015 at 10:45 | comment | added | CJ Dennis | Nice abuse of the language! Since the errors it generates technically go to stderr and not stdout, your code is now valid even though in my case I see a lot of errors in my browser! And, incredibly nit-picky, my PHP setup has short tags off so the first line on my computer is <?php which is invalid! However, I'll forgive you for this! OK, just tested <?Php which works, so I've just learnt that the start tag is case-insensitive! | |
| Mar 30, 2015 at 9:21 | comment | added | Ismael Miguel | @MartinBüttner I've reduced your code. If you want to update the pastebin, feel free to do so. | |
| Mar 30, 2015 at 9:20 | history | edited | Ismael Miguel | CC BY-SA 3.0 | added 501 characters in body |
| Mar 30, 2015 at 9:15 | history | edited | Ismael Miguel | CC BY-SA 3.0 | added 501 characters in body |
| Mar 30, 2015 at 9:07 | comment | added | Ismael Miguel | @MartinBüttner I may sound like a stubborn child, but there is nothing saying that the output can't be the rendered output. Also, I make it explicit that it only works in a web-browser. And the rendered output matches exactly what is required. I really appreciata a lot your solution and I will add it as an alternative answer ans suggestion with the due credit. | |
| Mar 30, 2015 at 8:47 | history | edited | Ismael Miguel | CC BY-SA 3.0 | added 236 characters in body |
| Mar 30, 2015 at 8:38 | comment | added | Ismael Miguel | @CJDennis I've fixed it now. It's a monster, but works as expected. I'll call it frankencode (after Frankenstein). | |
| Mar 30, 2015 at 8:38 | history | edited | Ismael Miguel | CC BY-SA 3.0 | added 309 characters in body |
| Mar 30, 2015 at 8:37 | comment | added | CJ Dennis | Tested in Firefox 36, IE 8, Opera 12.17 & Opera 28 (Chromium) on Windows XP. All rendered the output identically. Since any number of whitespace characters are rendered as a single space character (barring no break space, etc.) each newline gets converted to a space. I would be interested to know if any browser renders your output without spaces! | |
| Mar 30, 2015 at 8:25 | comment | added | Ismael Miguel | @CJDennis Can you tell me the browser you used? | |
| Mar 30, 2015 at 8:13 | comment | added | CJ Dennis | The output in the browser is Hello , Wor l d !. Note the extra spaces! This is not a valid answer, unfortunately. | |
| Mar 27, 2015 at 16:15 | history | edited | Ismael Miguel | CC BY-SA 3.0 | added 241 characters in body |
| Mar 27, 2015 at 13:42 | comment | added | Ismael Miguel | @MartinBüttner I call that bizarre, since browsers usually remove the newlines. | |
| Mar 27, 2015 at 13:02 | comment | added | Ismael Miguel | @n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ Thank you a lot for that. I totally forgot to check a 8th time. I've fixed it now. | |
| Mar 27, 2015 at 13:01 | history | edited | Ismael Miguel | CC BY-SA 3.0 | added 324 characters in body |
| Mar 27, 2015 at 12:21 | history | answered | Ismael Miguel | CC BY-SA 3.0 |