- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Offshore or even offsite teams are never in my experience worth anything which has any positive measure.
Admin
In my experience it's more like "Pay me a little now or pay me a lot more later."
Admin
Incidentally, I hate the
const foo = (bar) => { something; }style of function declaration. It's so ugly. Just use the good oldfunction foo(bar) { something; }style.Admin
blah.blah.blah.visibility="hidden";
blah.blah.blah.show(true);
Same thing????
Addendum 2026-05-13 09:12:
^^^ YES!! ^^^
Admin
I'm so glad I don't have to deal with React. Reading that snippet and the description of how it "works" (several times) has made me sad.
Also, I'm with Maia-Everett on the function declaration thing.
Admin
There are actual lexical differences between using arrow functions and traditional function definitions with how the bind to the
this. I foot-gunned myself over this for weeks trying to get callback functions for a 3rd party library working correctly. So there's a huge difference between.and
It's more than just being "ugly". And when writing things like array filters / sorts i think it's hard to argue that the "function" syntax is "prettier".
Admin
I don't think that will work, indeed, React does a diff on the state so it won't rerender if you set it to the initial value. But I wouldn't swear to that.
Admin
OMG, do I ever relate to this comment from the submitter:
The short form of this is, an American pair of developers had the bright idea to be low bidders on a project by having the fantasy of outsourcing all their work to India. Those of you who have been there and done that know that the end of the story is that the cost overruns blew so high as to be triple the cost of the 2nd highest bidder.
Remy, when you're ready for more WTFs from that story alone, sing out! :-)
Admin
I'm always ready for more stories like that!
Admin
And, to follow on to "arrow-functions are different from regular functions", the arrow-functions () => {...} will, 99% of the time, do exactly what you wanted. The "function" declaration leaves "this" as "whatever it was before, usually the global window object unless some caller above you bound 'this' to something else", which is not typically what you're thinking of, especially if you're writing a member function of a class.
VanillaJS has some really annoying conventions.
Admin
The WTFs just keep piling up.
Admin
I think
show(true)is a typo in the article; it should besetWidth(true). But there is a difference in CSS betweendisplay: noneandvisibility:hidden: the second one will lay out the page as though the item were there but leave that section blank.Admin
I'm not a web developer, but I have made mods to existing code. My only real experience with this type of thing is where multiple divs have the same absolute addresses, and an event causes one to be visible and all the others to be hidden - like clicking a tab on a form to display alternate sets of fields for an object. So, in my head, it does the same thing but I think you're saying the real estate consumed by the div would be "free" for other elements to write into.
... was so much easier in the days of blinking rainbow text :D
Admin
so... isn't the current generation of agentic AI just the next generation of (cheap) offshore dev teams? Seem to be plenty of companies out there treating it as such, and the quality is ...
Admin
It's rapidly becoming much more expensive. Who knew that corporations wouldn't want to offer services indefinitely at far below cost?