Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's a weird one I ran into, and I for the life of me do not remember which project it was under, but if I open dev tools, the style changes for an element, then if I close dev tools, the style goes back to normal. I never could figure out what the heck is going on. I almost want to blame the viewport size changing just slightly, but I couldn't find a single CSS rule that would make it make sense, and I think even popping it out, it behaved exactly the same. It was frustrating, but I felt like I had to ignore it since no normal user would ever see it, it just made debugging with dev tools confusing.

Edit: In your case, that's where I start print debugging LOL



This reminds me of finding out (the Hard Way) that Perl’s sort used internally[0] the same $a or $b that I happened to be using.

[0] https://perldoc.perl.org/functions/sort

If the subroutine's prototype is ($$), the elements to be compared are passed by reference in @_, as for a normal subroutine. This is slower than unprototyped subroutines, where the elements to be compared are passed into the subroutine as the package global variables $a and $b (see example below).


println(“1”);

println(“2”);

println(“wtf”);




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: