New around here? Register your SA Forums Account here!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
brand engager
Mar 23, 2011

Saw something spooky in our repo: theres a class named AES (already a red flag right there), most of the methods have 'throws Exception' instead of specific execption types, all the catch blocks are just catch Exception, and the error state branches in some of the methods just end in "return null;"

Adbot
ADBOT LOVES YOU

redleader
Aug 18, 2005

Engage according to operational parameters
ssis is great if you like versioning a huge, unreadable xml blob that you can only change using a shithouse gui tool

NihilCredo
Jun 6, 2011

iram omni possibili modo preme:
plus una illa te diffamabit, quam multæ virtutes commendabunt

redleader posted:

<literally every professional tool that isn't a programming language> is great if you like versioning a huge, unreadable xml blob that you can only change using a shithouse gui tool

Shaggar
Apr 26, 2006

redleader posted:

ssis is great if you like versioning a huge, unreadable xml blob that you can only change using a shithouse gui tool

xml versions just fine, the ssis xml is actually quite readable, and even if it wasn't it doesn't matter because you will never need to read it. also the ui works fine

Janitor Prime
Jan 22, 2004

PC LOAD LETTER

What da fuck does that mean

Fun Shoe
gently caress SOAP UI

Zlodo
Nov 24, 2006

Shaggar posted:

xml versions just fine, the ssis xml is actually quite readable, and even if it wasn't it doesn't matter because you will never need to read it. also the ui works fine

if a xml file can be modified by different people, you'll end up having to read it at some point to resolve a merge conflict

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

Janitor Prime posted:

gently caress SOAP UI

DROP TABLE SOAP

animist
Aug 28, 2018

Luigi Thirty posted:

uh... I got the GNU runtime working, this is quite possibly the most cursed thing I have ever made




:eyepop:

Luigi Thirty
Apr 30, 2006

Emergency confection port.

it’s way too slow to be practical for much (1/10th the speed of C) but it should be fun to experiment with, optimizing the MIPS assembly

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

Luigi Thirty posted:

it’s way too slow to be practical for much (1/10th the speed of C) but it should be fun to experiment with, optimizing the MIPS assembly

you are psychotic and I love it

mystes
May 31, 2006

If you stuck to one platform you could have made TempleOS by now.

Luigi Thirty
Apr 30, 2006

Emergency confection port.

mystes posted:

If you stuck to one platform you could have made TempleOS by now.

I have legit add and end up bouncing between lots of projects

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?
you do so much cool poo poo with each one though

The MUMPSorceress
Jan 6, 2012


^SHTPSTS

Gary’s Answer

Luigi Thirty posted:

I have legit add and end up bouncing between lots of projects

when are you making a hymn generator Slash oracle

AggressivelyStupid
Jan 9, 2012

I would trust Luigi to remove the Gutenberg text from the Bible before she added it to the oracle :colbert:

Slurps Mad Rips
Jan 25, 2009

There's No Guarantee

eschaton posted:

you do so much cool poo poo with each one though

seriously, I wish I had half the motivation she does to work on stuff.

instead I’m over here writing cmake so no one else has to suffer

redleader
Aug 18, 2005

Engage according to operational parameters

Slurps Mad Rips posted:

seriously, I wish I had half the motivation she does to work on stuff.

instead I’m over here writing cmake so no one else has to suffer

same, but i don't do any sort of computer touching outside of work

HoboMan
Nov 4, 2010

redleader posted:

same, but i don't do any sort of computer touching outside of work

bob dobbs is dead
Oct 8, 2017

I love peeps
Nap Ghost
I do math touching when i have a computer touching job, i think it's a deec compromise

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope

CPColin posted:

Ignore what the ORM puts out until a new query floats to the top of your database monitor's "Bad Queries" report, imo.

it's this.

just code. the quality doesn't matter, until it does and then you profile and improve the worst code.

Soricidus
Oct 20, 2010
freedom-hating statist shill

Wheany posted:

it's this.

just code. the quality doesn't matter, until it does and then you fake your death and move to belize

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope
things i've learned: it's far faster to do a single List<Butt> = buttRepository.findAllByButtIdIn(List<Long> ids), than it is to do a foreach loop on the id list and fetch each Butt individually.

but last summer, when i wrote the original code, it didn't matter

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope

Wheany posted:

List<Butt> = buttRepository.findAllByButtIdIn(List<Long> ids)

BuT i DoN't KnOw WhAt SqL tHaT rUnS

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Wheany posted:

it's this.

just code. the quality doesn't matter, until it does and then you profile and improve the worst code.

i see you haven't produced code for restricted systems!

"why hello there 2000 points of requirements for security how are you doing?"

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Wheany posted:

BuT i DoN't KnOw WhAt SqL tHaT rUnS

optimizing sql will never get you friends, or a pat on the back

best I've ever received was mild indifference, worst was "why are you wasted your time its running" for a minutes long operation that business required run in seconds. thanks previous boss

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope

Boiled Water posted:

i see you haven't produced code for restricted systems!

"why hello there 2000 points of requirements for security how are you doing?"

just write the worst code that fulfills those requirements until you run into a problem.

Aramoro
Jun 1, 2012




Boiled Water posted:

i see you haven't produced code for restricted systems!

"why hello there 2000 points of requirements for security how are you doing?"

Just write it all in Spark Ada, then follow the maxim of the worst code that fulfils the requirements and it's still pretty good.

HoboMan
Nov 4, 2010

so this is my first new app in several years. can anyone recommend a logging or error handling framework for a angular.net project?

in my experience so far error handling and logging has been "none, but maybe make a bespoke thing if you need it" so i would like to do better now that i have the chance.

TheFluff
Dec 13, 2006

FRIENDS, LISTEN TO ME
I AM A SEAGULL
OF WEALTH AND TASTE
front end or back end? we use sentry for error reporting on both frontend and backend, it's okay I guess?

speaking of it though, I discovered the other week that we've had it misconfigured so it just never reported errors in our legacy angularjs components at all. i fixed that got a coworker to fix that, which led to the weekly error rate increasing by 1721%

:qq: ~our metrics~ :qq:

(tbf it's pretty much exclusively issues that are invisible to users, just terrible programming going on in the background)

HoboMan
Nov 4, 2010

i guess back end for now. for all i know about angular right now it might already have a built-in logging service.

i see that .net core has a logging thing, it any good? it looks extremely basic

Aramoro
Jun 1, 2012




HoboMan posted:

i guess back end for now. for all i know about angular right now it might already have a built-in logging service.

i see that .net core has a logging thing, it any good? it looks extremely basic

Nothing built in for Angular but things like ngx-logger are fine.

NihilCredo
Jun 6, 2011

iram omni possibili modo preme:
plus una illa te diffamabit, quam multæ virtutes commendabunt

HoboMan posted:

i see that .net core has a logging thing, it any good? it looks extremely basic

it is. but if you don't need actual analytics and just want to ctrl-f for a stack trace, it's more than good enough.

if you want to go further, serilog is great. structured logs, good api, and it can interface with every storage / analytics medium under the sun.

the only pain point I ever encountered with it is that async logging is in a separate nuget package, and without it the console output was bottlenecking my webapi

Finster Dexter
Oct 20, 2014

Beyond is Finster's mad vision of Earth transformed.

HoboMan posted:

i guess back end for now. for all i know about angular right now it might already have a built-in logging service.

i see that .net core has a logging thing, it any good? it looks extremely basic

Yeah, the basic .net logger is "fine" and probably needs suiting for the most part. I've used Serilog a fair amount, which has some decent configuration where you can control the log level for lots of system level stuff in addition to your own poo poo.

e: hurrdurr not sure why I didn't even see NihilCredo's post, but yeah, what he said.

elite_garbage_man
Apr 3, 2010
I THINK THAT "PRIMA DONNA" IS "PRE-MADONNA". I MAY BE ILLITERATE.
ctps: implementing design patterns using c macros

animist
Aug 28, 2018
https://github.com/orangeduck/Cello

why would anyone make this

elite_garbage_man
Apr 3, 2010
I THINK THAT "PRIMA DONNA" IS "PRE-MADONNA". I MAY BE ILLITERATE.

pls don't give me ideas

HoboMan
Nov 4, 2010

thanks i will check out serilog

in other baby's first modren project news i have now made 8 files for a simple get endpoint so everything is nice and decoupled with services and interfaces but i don't know what to actually unit test.
i mean i could verify my service correctly returns my object from the mock data service but like this feels roughly equivalent to having
code:

var foo = 2 + 2;
asset.eq(foo, 4);
as a test

gonadic io
Feb 16, 2011

>>=
i'm having increasing amount of issues with discord's formatting especially on mobile. how dumb is it for my bot to dynamically generate a png or svg instead of responding in discord's half-assed markup?

I lose: copy/pasting, any links to web or other users. bandwidth maybe??
I gain: columns stay even on mobile, dynamic text scaling to the size of the user's screen.

Shaggar
Apr 26, 2006
I use nlog for most things and it works pretty well. I connected it to application insights and wrote a thing to send nlog context variables and it makes error reporting actually useful.

Adbot
ADBOT LOVES YOU

NihilCredo
Jun 6, 2011

iram omni possibili modo preme:
plus una illa te diffamabit, quam multæ virtutes commendabunt

HoboMan posted:

thanks i will check out serilog

in other baby's first modren project news i have now made 8 files for a simple get endpoint so everything is nice and decoupled with services and interfaces but i don't know what to actually unit test.
i mean i could verify my service correctly returns my object from the mock data service but like this feels roughly equivalent to having
code:

var foo = 2 + 2;
asset.eq(foo, 4);
as a test

apis aren't really unit testable except for a few purely functional aspects like input validation

wait until you have multiple endpoints that form a story. eg. register -> verify -> shitpost -> ban -> can't post anymore. then test as many variations as you care to come up with. when you get tired of it, go down the fuzz testing / property based testing rabbit hole

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply