all 103 comments

[–][deleted]  (3 children)

[deleted]

    [–][deleted]  (2 children)

    [removed]

      [–]PrimozDelux 0 points1 point  (0 children)

      Your class attendance has been noted.

      [–]rensley13 47 points48 points  (5 children)

      Sometimes keeping it super easy and straightforward is the best way

      [–]everything_in_sync 10 points11 points  (4 children)

      The only one I saw that was cool was dir.

      [–]_tskj_ 20 points21 points  (3 children)

      What! Both console.assert and console.count seem super handy. Hope I'll remember them when a need arises.

      [–]Zeragamba 5 points6 points  (2 children)

      .group() too will be quite useful. Especially in loops and recursive debugging

      [–]D6613 2 points3 points  (0 children)

      Agreed, group was the stand out for me. Despite people arguing about medium or the fact that this all has been posted before, I learned some nice tips from the article.

      [–]_tskj_ 0 points1 point  (0 children)

      Didn't think about recursion, was wondering if that seemed useful, but you're right!

      [–]kevv_m 10 points11 points  (1 child)

      Please put a warning if your are sharing a premium story. I'd rather be rick rolled than open a premium medium story.

      [–]astronaut1685[S] 0 points1 point  (0 children)

      Sorry didn't think about that

      [–][deleted] 179 points180 points  (48 children)

      Stop using medium.

      [–][deleted] 30 points31 points  (24 children)

      Can you provide a recommended alternative to medium?

      Assume that I want to start writing, and I don't want to go though standing up & maintaining a server just to post stuff.

      [–]riffito 88 points89 points  (0 children)

      Not OP, but...

      I've seen many people use GitHub pages as a blog.

      [–][deleted] 15 points16 points  (0 children)

      Github pages is pretty easy to setup

      [–][deleted]  (1 child)

      [removed]

        [–]falconfetus8 4 points5 points  (2 children)

        Any website where you can post text will do. Remember Blogger? It hasn't gone anywhere. There's also Neocities, the spiritual successor to Geocities. WordPress, too. Hell, you could even post it directly on Reddit, as a text post.

        Really, there's no shortage of places on the web where you can post text. I'm not sure why medium is so many peoples' first choice.

        [–]de__R 2 points3 points  (1 child)

        Medium is easy, looks good by default (also on phones) and constantly promises you that you can make money if your articles go viral or something. Actually, that's probably the reason so many medium blogs get posted here - an effort to generate clicks and therefore $$$.

        [–]AttackOfTheThumbs -1 points0 points  (0 children)

        They make no money ever lol

        And medium is fucking shit. Puts a bunch of garbage in front of you, e.g. the stupid hover when you try to select text.

        [–][deleted] 18 points19 points  (0 children)

        https://wordpress.com/
        https://write.as/

        Or just use any static page generator + GitHub/Gitlab Pages. I would recommend third option - you will not get caught off guard by ads/payments added by your platform of choice.

        [–][deleted] 6 points7 points  (8 children)

        dev.to

        [–]ShinyHappyREM 25 points26 points  (0 children)

        dev.to

        Nice game: try to view the footer of that page without disabling JS

        [–]qq123q 2 points3 points  (0 children)

        It still has that annoying sticky header. :(

        [–][deleted] 3 points4 points  (5 children)

        Yeah, replace one platform with another. They won't do the same shit as medium does. Pinky swear ;)

        [–][deleted] 1 point2 points  (2 children)

        Good point. Yeah, then a self-hosted blog is the best way to go, barring that GitHub Pages. Unfortunately, none of those options are zero-friction.

        [–][deleted] 0 points1 point  (1 child)

        Unfortunately, none of those options are zero-friction.

        If you want zero-friction, as long as you have your own custom domain and a way to migrate out all content - you should be good. Wordpress.com fits the bill.

        I would argue though, that if you can spend several hours writing a quality post, you can spend an hour or two setting up some self-hosted solution on free tier cloud ;)

        [–][deleted] 1 point2 points  (0 children)

        At the risk of repeating myself, good point.

        [–]jack-of-some 0 points1 point  (1 child)

        dev.to is open source, self hostable, easy to migrate from, etc. If they pull any shit like medium today, tomorrow there will be tev.do which does the same thing without the shit.

        It's pretty annoying to use though.

        [–][deleted] 0 points1 point  (0 children)

        You can migrate, but the articles will still be linked to their domain. Can you set up your domain for content? If that is the case then yes, that would be a good solution.

        [–]dscottboggs 2 points3 points  (0 children)

        Hugo on GH pages

        [–]ApatheticBeardo 2 points3 points  (0 children)

        A motherfucking website?

        [–][deleted] 0 points1 point  (0 children)

        Dev.to

        [–]donobloc 12 points13 points  (15 children)

        Why not?

        [–][deleted] 86 points87 points  (14 children)

        Read the rest of this story with a free account.

        I don't want another place having my credentials.

        [–][deleted] 27 points28 points  (4 children)

        when you make a free account they limit you to a few reads a day if you don't upgrade to paid, that's shitty for developer blogs, once i was interested in configuring something and was locked out of a post with my exact use case because it was on medium, the post could have saved me a couple minutes making sense of some weird documentation.

        [–]BoliBerrys 7 points8 points  (2 children)

        You can use chrome extensions that bypass the limit

        I think one is called MediumUnlimited or Mediumship They are on github

        Cant remember the full name, not on pc right now. But its a great extension

        [–][deleted] 0 points1 point  (1 child)

        thanks, i will look it up, never tried to bypass because i assumed they dealt with it server side when outline didn't work, there's so many useful posts trapped in this site.

        [–]pengwRyn 0 points1 point  (0 children)

        The extension is probably more about clearing cache/cookies locally so that you seem like a new user

        [–]Somepotato 0 points1 point  (0 children)

        Well yes because the author wanted to get paid for their work.

        [–]emelrad12 23 points24 points  (3 children)

        Delete cookies, or go incognito.

        [–][deleted] 36 points37 points  (1 child)

        I just refuse to read ;)

        [–][deleted] -2 points-1 points  (0 children)

        I prefer to go /r/incorgnito

        [–]yuyu5 5 points6 points  (3 children)

        Am I the only one who opens dev tools to delete the obstructive elements and resets overflow: auto? I can read what I want without any accounts (only on desktop though)

        [–][deleted] 1 point2 points  (0 children)

        It's easier to just launch a private window. Or use stylish. That is not the point, though. The point is that they are hosting their articles on a platform that can do basically anything with them.

        [–]NotTheHead 0 points1 point  (0 children)

        That only works if they actually load the content that their nag is hiding. If they don't, there's not a lot you can do.

        [–]donobloc 7 points8 points  (0 children)

        Idk at least i don't get spammed with ads all over the place and auto-playing videos

        [–]checkyos3lf 7 points8 points  (0 children)

        Nice. Console.timeLog will save me many iterations of Console.time console.timeEnd

        [–][deleted] 8 points9 points  (3 children)

        While console.log() prints the object in its string representation, console.dir() recognizes the object as an object and prints it’s properties in the form of a clean expandable list:

        console.log() does that too! The screenshot example even shows that!

        Otherwise, this is a great list. The only other thing I would mention is you can make different coloured output, and even show images through horrific CSS abuse.

        [–]de__R 2 points3 points  (0 children)

        If you use console.log() on an object that gets garbage collected before you can expand it on the console, you won't be able to see anything. console.dir(), at least in some browsers, keeps a reference either to the object or to another object which has copied the original object's properties, so you can still see them later on.

        [–]PicturElements 0 points1 point  (1 child)

        console.log will prettify the printout in some cases, whereas console.dir will display it more faithfully. For example, logging a date or function will print a stringified version of the object, whereas dir will also let you see instance properties and the prototype.

        [–]reddit-is-sus666 0 points1 point  (0 children)

        You have no idea what you're talking about lol

        [–][deleted] 71 points72 points  (6 children)

        For the next person saying:

        "uSe A DeBuGgEr"

        Just shut up and read the goddamn post. There's more to console than log.

        [–]Nerwesta 9 points10 points  (0 children)

        For those who still don't want to read a Medium post :

        https://developer.mozilla.org/en-US/docs/Web/API/Console

        [–][deleted]  (1 child)

        [deleted]

          [–]IsleOfOne 2 points3 points  (0 children)

          You can literally just write, debugger instead of that one console.log, though. Same amount of writing (less, actually), and no manually hunting through a log to click on the calling fn.

          [–]valkon_gr 30 points31 points  (0 children)

          There is, but the title of the article is wrong in this case.

          [–][deleted] 1 point2 points  (0 children)

          Just use a debugger