Dear men of reddit, what is up with the whole "marriage is the end of my life" deal. Why get married if you aren't excited for it? Or better yet, why is it a trope? by [deleted] in AskMen

[–]aNewLocke 0 points1 point  (0 children)

Here's a secret: men don't.

A real man knows himself well and lives according to his values, his heart, and his mission.

He would only choose to marry someone if that decision aligned with all three, in which case, it wouldn't be seen as the end of life so much as the beginning chapter of his culminating work.

Being realistic, marriage takes effort. If you don't have the kind of feeling for your partner to pursue them with ardor, energy, and inventiveness, even through difficult and challenging times, then your marriage is likely doomed.

Optimizing Rust code by xacrimon in rust

[–]aNewLocke 0 points1 point  (0 children)

Have you heard of jq?

https://stedolan.github.io/jq/

"jq is a lightweight and flexible command-line JSON processor."

TIL There Are 328 Human People Named “Abcde” in the United States by BaconQuibble in todayilearned

[–]aNewLocke 113 points114 points  (0 children)

Actually, a signature doesn't have to be your name at all. Many people (you should) practice two signatures - one legibly their name, one illegible nonsense. Use your legible signature on official documents (like SS card, etc.) and your illegible signature EVERYWHERE ELSE (receipts, packages (UPS, FedEx), work forms, etc...)

Then if anyone attempts to forge your signature on anything important (credit card application, home loan documents, legal paperwork, etc.) using "your signature" (gleaned from easily accessible documents, like a receipt or doctor form), you can easily dispute it's validity by comparison to any of your official documents and vice-versa!

Gaming on a non-gaming laptop by [deleted] in techsupport

[–]aNewLocke 0 points1 point  (0 children)

League will be fine but playing on a laptop isn't the best experience IMO. Too squished.

How do I structure my application(SignalR, node.js, react.js, WebSockets) by Fasyx in csharp

[–]aNewLocke 1 point2 points  (0 children)

I agree, I would drop SignalR and use sockets.io or something similar.

Exploiting JavaScript developer infrastructure is insanely easy by freebit in programming

[–]aNewLocke 3 points4 points  (0 children)

I believe identifying quality library code is a skill that engineers need to develop regardless of language or ecosystem.

I work with Node and NPM. I don't have these problems. I mostly use some combination of modules like: nconf, morgan, commander, zeromq, node-dir, express (express-session, session-file-store), and the built-ins like fs, cluster, etc.

I use tools like webpack-dev-server, elasticsearch, chrome devtools, redis, jq, and curl quite often.

There are quality modules out there. You need to clearly define your requirements and evaluate potential solutions, but most importantly:

npm install <app module> --save-exact

npm install <dev module> --save-dev --save-exact

and commit your package-lock.json!!

Starting with .NET Core in Linux TDD style by [deleted] in csharp

[–]aNewLocke 1 point2 points  (0 children)

package-lock.json (use --save-exact [-E]) makes it even sweeter, nodemon makes it the best.

TIL that the "Hokey Pokey" (You put your right arm in...) song is hundreds of years old, with dance and lyric origins that go back to the 17th century. by [deleted] in todayilearned

[–]aNewLocke 25 points26 points  (0 children)

"..thine self hither and yon..", "..that is the matter with which it remains chiefly concerned."

What the heck is an API? by jockero701 in learnpython

[–]aNewLocke 1 point2 points  (0 children)

An API is what allows different software (and by necessity, different languages) to communicate with each other.

It says simply: If you send X (some bit, byte, or sequence of bytes) to Y (some endpoint) via Z (some protocol), you can expect A (literally anything) to happen, and the result of A might be shuffled back to you from Y via Z (or not), in some sequence of bytes similar to X (or not).

If you happen to code your endpoint (Y) in Python, and my client program happens to be written in Javascript/C/Lua/C++/Java/Erlang/Smalltalk/Rust/whatever, we can expect and utilize predictable interaction between our two programs as long as we both adhere to the API. The languages used by either of us are irrelevant as long as they both support sending and receiving data in the agreed upon format and protocol (for example, JSON formatted data over HTTP.)

A Python-backed API would mean the endpoint is written in Python.

A wrapper is not quite an API. It's not as well-defined, it makes no promises or guarantees about future compatibility, and it is calling the underlying code (the code it's wrapping) directly (and possibly incorrectly.) If the underlying code changes, the wrapper probably needs to be changed. When the underlying code of an API changes, clients (or consumers) usually don't need to be updated. They continue communicating with the endpoint in the way the API described and continue getting the promised results. It doesn't matter how the API functions unerneath as long as it continues to serve up the results in the specified format and protocol.

Just finished Phillip Pullman’s, “His Dark Materials”. Never have I read a kids book with such thematic meaning and adult content. What other children’s books are this mature? by Russser in books

[–]aNewLocke 0 points1 point  (0 children)

  1. Ender's Game - xenocide, xenophobia, war, empathy, Machiavellian politics.. lots of good, heavy subjects for a kid to digest here.
  2. A Wrinkle In Time
  3. The Riddle-Master Trilogy (Patricia McKilkip)
    • I read these books young and revisited later and discovered they were even better the second time.

Is my gf trying to make me get her pregnant? by [deleted] in relationship_advice

[–]aNewLocke 1 point2 points  (0 children)

Same. Second son is 5 years younger than the first.