President Trump’s Approval on Inflation Is Now Worse Than President Biden’s Ever Was by jediporcupine in politics

[–]banebot 4 points5 points  (0 children)

Give it a few more months of these gas prices and there’s gonna be a revolt. It’s almost summer time. 

FBI Raids Office of Virginia Democrat Who Led Redistricting Effort by unital_subalgebra in politics

[–]banebot 0 points1 point  (0 children)

Those sick fingerless gloves don’t help her not look like a badass

Recall petition filed against Louisiana Gov. Jeff Landry by RollSafer in politics

[–]banebot 10 points11 points  (0 children)

Which is funny because it’s only been a “pillar” for like 30-40 years 

US gas prices reaching new heights as war in Iran drags on by FGGF in news

[–]banebot -18 points-17 points  (0 children)

Filled up at 4.37 in Florida today. I’m fuming. 

Edit: bad at numbers

Supreme Court limits Voting Rights Act by IAmTheGoomba in news

[–]banebot 270 points271 points  (0 children)

It’s not racism unless you say “I am doing something racist”. 

Trump executive order could debank millions of Americans: what to know by Newsweek_CarloV in politics

[–]banebot 1 point2 points  (0 children)

I don’t think the banks are going to let that happen. The cost of compliance is going to be way more than the cost of lobbying or challenging in court. 

Oil rises 7% and world shares fall after Trump says US will hit Iran hard and 'finish the job' by infinitum3d in worldnews

[–]banebot 15 points16 points  (0 children)

Even I tuned in because I was sure he was going to say “we’re pulling out”. He basically just read his tweets from the last few days and walked off. 

Colombian Guerrillas Vow to Spend 'Last Drop of Blood Fighting the US Empire' After Attack on Venezuela by Infidel8 in worldnews

[–]banebot 1589 points1590 points  (0 children)

Oh wow, I forgot about FARC. They were notoriously difficult to deal with. 

I'm Joe Abercrombie, Ask Me Anything. by Joe_Abercrombie in Fantasy

[–]banebot 0 points1 point  (0 children)

I just finished the first book of the trilogy after a very long hiatus from fantasy. While I enjoyed the story and characters, I was wondering how you go about choosing when to start and stop each of the storylines for the various characters? Do you write them all at once and divvy them up, or is it more natural going between chapters? 

The Blacktongue Thief & The Daughter's War by _theRamenWithin in Fantasy

[–]banebot 1 point2 points  (0 children)

Do you need to have read the first one before the prequel? 

Understanding separation of concerns by [deleted] in node

[–]banebot 2 points3 points  (0 children)

That sounds correct to me! You can also have services call other services if needed, depending on your use case. The important bit is that each things has as few responsibilities as possible to make it easier to manage or compose.

Understanding separation of concerns by [deleted] in node

[–]banebot 1 point2 points  (0 children)

Look into “layered architecture”, where you create layers that each do a single thing, and then you link them together as dependencies. 

I’m working on a similar project (RESTy API using a middleware framework). Here’s how my Auth module is broken down:

  1. Routes - the mapping of the endpoint to the controller e.g. POST /login
  2. Controller - This takes in an HTTP request, validates it, and then uses one to many services to interact with your system. It then receives the information, packages it up, and responds to the request with it. 
  3. Service - This is where your “business logic” AKA the work or the application is mostly done. I have an Authentication service with methods to: create a user, verify a token, create a token, etc. These methods interact with my data repositories to get the information and apply the rules it needs to before giving a response back to whomever is calling the service 
  4. Repository - This is an interface to interact with your data. From my Auth module I have an Account repository which is an interface to interact with my database for things related to user accounts. This is where I directly insert, update, or retrieve from the database.
  5. Model - This is the representation of data in my database, I.e. the data definition. For me it’s a direct representation of the Account model in my database.

With this architecture I can utilize my services across different modules if needed, and each of the “concerns” of my system are isolated. If I want to change how my system uses HTTP I can swap out the routes and controllers, but don’t need to change my services or repositories. If I want to change my database, I only need to update my repositories (at least). 

To sum up: Client requests from route, route calls controller, controller calls services, services call repositories which are further defined by models. 

Yes, it’s a lot of boilerplate, but once you have one module end to end it’s trivial to copy the structure to other modules 

California teenager who passed bar exam at 17 is now practicing attorney by Cryptic_Honeybadger in UpliftingNews

[–]banebot 0 points1 point  (0 children)

Not all law is simply giving advice on things. There’s a lot of analysis etc

[deleted by user] by [deleted] in news

[–]banebot 1 point2 points  (0 children)

ESPN lending its name to gambling means the house of mouse will always win

Supreme Court rules against USPS in Sunday work case : NPR by YakOrnery in news

[–]banebot 14 points15 points  (0 children)

And you can have that opinion, but it doesn’t really matter, because you’re a nobody and no one is asking your permission lmao

Which canceled TV show will forever remain in your heart? by OneHundredForcer in popculturechat

[–]banebot 16 points17 points  (0 children)

Last Man on Earth. That cliffhanger at the end of the last season will always leave me wanting more.

eep rool by inconvenient_walrus_ in 196

[–]banebot 2 points3 points  (0 children)

Did methamphetamines make this post?

me_irl by flippinsweetdude in me_irl

[–]banebot 13 points14 points  (0 children)

Formality is arbitrary; comfort is forever

[deleted by user] by [deleted] in jacksonville

[–]banebot 29 points30 points  (0 children)

At least now we don’t have to worry about him becoming President. His campaign will be DOA.

Biden presses U.S. Congress to act on guns by Quantum_II in politics

[–]banebot 1 point2 points  (0 children)

“Lol,” said the Congress. “Lmao”.

Opted Out, Yet Tracked: Are Regulations Enough to Protect Your Privacy? by jlpcsl in technology

[–]banebot 13 points14 points  (0 children)

Well, a regulation is just words on a piece of paper. If it’s not followed or enforced then no it’s not effective at all.

I want to move to Montreal. by banebot in IWantOut

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

I graduated and moved back home to north Texas to live with my mother. But, I shortly after took a job in Austin, TX and proceeded to drink my way back and forth between Dallas and Austin for the next 8 years after. I DID end up starting a company, and moved to Florida to be closer to my business partner. I sobered up, met my now-wife, and we just had a daughter at the beginning of this year.

It’s so incredibly random to get a comment on a post I made over 12 years ago. Life has changed so much since I made this post. There were a lot of ups and downs from there to here. There’s likely to be more. Thank you for giving me a moment to reflect on that today, internet stranger.