Timeline for Add a console to Stack Snippets
Current License: CC BY-SA 4.0
27 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 29, 2020 at 7:35 | history | edited | T.J. Crowder | CC BY-SA 4.0 |
added 117 characters in body
|
Jul 29, 2020 at 7:33 | comment | added | T.J. Crowder | @JourneymanGeek - Yeah, GitHub yanked those URLs. :-| But we have a snippets console these days, so... (I've been slowly working my way through the ~340 SO answers I had using that link to switch to the snippets built-in console...) | |
Jul 28, 2020 at 18:39 | comment | added | Journeyman Geek Mod | looks like the link to your stack snippet's broken | |
Dec 2, 2018 at 11:13 | comment | added | T.J. Crowder | @canon - Cool. (Yes, I prefer a dark background for coding as well.) | |
Dec 2, 2018 at 9:16 | comment | added | T.J. Crowder | @canon - Interesting! FWIW, I wouldn't use the dark background, doesn't fit with SO's design and of course for the demo part it's not what browsers do by default... Do you have any SE engagement on this, or is this just your own project? | |
May 18, 2016 at 20:33 | comment | added | Josh Crozier | @T.J.Crowder -- Quick heads up, a console has finally been implemented. | |
May 5, 2016 at 21:48 | history | bounty ended | Josh Crozier | ||
Apr 24, 2016 at 10:01 | comment | added | T.J. Crowder | @canon: LOL! Get this: I never upvoted yours, either. Crikey. | |
Apr 19, 2016 at 13:25 | history | bounty ended | canon | ||
Mar 9, 2016 at 14:53 | history | bounty ended | canon | ||
Feb 4, 2016 at 21:33 | history | bounty ended | canon | ||
Sep 4, 2015 at 4:06 | comment | added | jfriend00 |
Yep, in the absence of any built-in snippet behavior, I'm usually using document.write() just because it's simplest and seems the least complicated to viewers. in jsFiddles, I use my own off-site script resource because that script resource can be added to the jsFiddle, yet not complicate the code display. Since that is not the case with snippets, I just use document.write() and live with that 80's feel to it. There really should be something built into StackOverflow snippets. It doesn't need to be much (perhaps 5 lines of code to expose a log() function.
|
|
Aug 15, 2015 at 16:53 | comment | added | T.J. Crowder |
@NinaScholz: At the time, I wasn't sure that was specified behavior. Now, I'm pretty sure it is. Still, the check prevents converting null to "null" and then parsing "null" back to null , so...
|
|
Aug 15, 2015 at 16:50 | comment | added | Nina Scholz |
msg = msg === null ? "null" : JSON.stringify(msg); vs msg = JSON.stringify(msg); ? JSON.stringify returns null if null. or do i miss something?
|
|
Jun 18, 2015 at 12:21 | history | edited | T.J. Crowder | CC BY-SA 3.0 |
Fix stoopid bug in snippet.js, and use a text node, not string replacement
|
May 18, 2015 at 22:51 | history | bounty ended | canon | ||
May 15, 2015 at 14:13 | comment | added | T.J. Crowder | I'd prefer to see us detect and handle that, which is trivial. But it's just my view. Also, given the complete absense of any kind of meaningful development on Stack Snippets in the last eight months, I think smaller = slightly more likely to actually happen. | |
May 15, 2015 at 14:11 | comment | added | hugomg | Another alternative would be adding a tab titled "snippet.log output". I just think its important to get "in the way" somehow to avoid the common problem of trying console.log and it just showing a blank result tab. | |
May 15, 2015 at 13:41 | comment | added | T.J. Crowder |
@hugomg: Very easy to detect /\bconsole\./ and show a fadeover message saying what to do. Whenever you take over something like that, you immediately open yourself up to getting in the way of improvements/innovations for it, special features it has on some platforms, questions like this one today about the console itself, etc., etc., etc. Or we could try to fully emulate console , but if so, I'd want an opt-out option (like var console = realConsole; ), but I think it would be much better just not to get in the way in the first place.
|
|
May 15, 2015 at 13:27 | comment | added | hugomg | I'm not sure if having a separate snippet object is very discoverable. Right now I think the first thing most people will do is try to use "console.log" and then wonder why its not working. | |
May 6, 2015 at 13:16 | history | edited | T.J. Crowder | CC BY-SA 3.0 |
update to v1.1 of the temporary(??) script
|
Mar 21, 2015 at 13:09 | history | bounty ended | KyleMitStaffMod | ||
Feb 11, 2015 at 8:13 | comment | added | T.J. Crowder |
@canon: I've been using the snippet object above, loading the script from github.
|
|
Nov 3, 2014 at 11:36 | history | edited | T.J. Crowder | CC BY-SA 3.0 |
added 5 characters in body
|
Nov 3, 2014 at 11:16 | history | edited | T.J. Crowder | CC BY-SA 3.0 |
fix stoopid mistake in snippet.log
|
Nov 3, 2014 at 8:36 | history | edited | T.J. Crowder | CC BY-SA 3.0 |
add github pages snippet object
|
Oct 16, 2014 at 8:44 | history | answered | T.J. Crowder | CC BY-SA 3.0 |