Jan 12, 2026, 12:16 pm

News:

StoryBB - Just Installed!


[OT] Tale As Old As Time

Started by yamikuronue, Oct 21, 2017, 03:08 pm

Go Down

accalia

probably dinner, or just after, if you don't have anything interesting to talk about at dinner.



accalia

without further input i fastforwarded to dinner and assumed that between Echo and Rosanna they managed to finish the meal Siegfried started.



yamikuronue


accalia

if that's not good i' can rewind? we're only one post in.



yamikuronue

No, you're fine https://what.thedailywtf.com/plugins/nodebb-plugin-emoji-one/static/images/1f600.png" class="not-responsive emoji emoji-parsed" data-set-id="emoji-one" data-emoji-id="grinning" alt=":)" title=":)" />


(Node.js, on the other hand, is a piece of shit. But the thread's good!)



accalia

https://what.thedailywtf.com/uid/731">@Yamikuronue said:

Node.js, on the other hand, is a piece of shit.


hmm? are you insulting my favorite language little lady? thems fighting words they are.




seriously, what trouble is it giving you?



yamikuronue

I'm turning into a lawn guardian after a few hours, as usual.


"Damn kids with your pesky async-by-default and your razzle-frazzle callbacks, when I was your age we had objects and we liked them!"



accalia

ah. i too went through that phase. it took a long time to wrap my head around CPS



yamikuronue

What the fuck is the point? I mean, fucking really?


        insert: function () {
      var items = dao.getItems();
      assert.isArray(items, "Items was not an array");
      assert.isTrue(items.length < 1,"Items had 1 or more items.");

      dao.addItem("Test", "test", 0, function() {
         var items = dao.getItems();
         assert.isArray(items, "Items was not an array");
         assert.isTrue(items.length === 1,"Items did not contain one item.");
      });      
   }

What the fuck is wrong with doing database sync by default? When do you EVER want async inserts and retrieves? There isn't even a insertSync method in the fucking library!



accalia

https://what.thedailywtf.com/uid/731">@Yamikuronue said:

What the fuck is wrong with doing database sync by default?


well you only have the one thread.... you don't want it blocking on a webpage call, preventing other pages from rendering.


https://what.thedailywtf.com/uid/731">@Yamikuronue said:

When do you EVER want async inserts and retrieves?


well for a website where retrieves are way more common than writes and it's not the end of the world if the writes get misordered because there are not many foreign keys?


https://what.thedailywtf.com/uid/731">@Yamikuronue said:

There isn't even a insertSync method in the fucking library!


hmm.... you could write one.... maybe?



yamikuronue

I just want to do fucking unit testing *cries*


FATAL ERROR
Error: ETXTBSY, text file is busy 'unitTest.db'

createsDB: function() {
      exists = IsThere.sync("unitTest.db");
      assert.isFalse(exists);

      dao.createDB("unitTest.db", function() {
         exists = IsThere.sync("unitTest.db");
         assert.isTrue(exists);
      });

      
   },


accalia

wait.... what?


nooooooo!~



accalia

lance? obsidian? there's youre reentrance. I assume you are at dunner anyway. https://what.thedailywtf.com/plugins/nodebb-plugin-emoji-one/static/images/1f600.png" class="not-responsive emoji emoji-parsed" data-set-id="emoji-one" data-emoji-id="grinning" alt="=)" title="=)" />



yamikuronue

That's a good point... would Lance come to dinner. I assume they spent the afternoon training, so would Obsidian insist on it?



accalia

to me i would think so, but we'll need https://what.thedailywtf.com/uid/1727">@cloak15 to confirm



Go Up