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
SAVE-LISP-AND-DIE
Nov 4, 2010

HoboMan posted:

thanks for the reply, yeah we got an object that has other objects as properties and wanted to know what the best way to get that in and out of the database using dapper.
i just spent the last 3 hours trial-and-error learning about undocumented angular lifecycle hook behavior though so my brain hurt and i'll look at this dapper stuff later.

gently caress angular by the way

Try using Slapper.Automapper with a denormalised query result. Don't bother with the Dapper nested object expression poo poo.

e: like this https://stackoverflow.com/a/30080951

SAVE-LISP-AND-DIE fucked around with this message at 23:19 on May 8, 2019

Adbot
ADBOT LOVES YOU

Schadenboner
Aug 15, 2011

by Shine

strange posted:

Try using Slapper.Automapper with a denormalised query result. Don't bother with the Dapper nested object expression poo poo.

I legitimately cannot tell if this is a joke post or not.

:(

dick traceroute
Feb 24, 2010

Open the pod bay doors, Hal.
Grimey Drawer

Powerful Two-Hander posted:


be aware:it splits on a certain return value name iirc so if your column order ever changes you're hosed.

I mean, column order won't just change

Unless your dapper query is select * from butts

Don't select star

SAVE-LISP-AND-DIE
Nov 4, 2010

Schadenboner posted:

I legitimately cannot tell if this is a joke post or not.

:(

The .net ecosystem is Not Good at names

Powerful Two-Hander
Mar 9, 2004

Mods please change my name to "Tooter Skeleton" TIA.



dick traceroute posted:

I mean, column order won't just change

Unless your dapper query is select * from butts

Don't select star

yeah true but you do get some people that will only ever append a column to the end of a resultset rather than change the order due to a legacy of doing raw reads referenced by column id (we still have some!!)

An orm gets rid of that coupling dependency normally but the split function sort of reintroduces it if you're not careful

brand engager
Mar 23, 2011

Gradle is gonna make me lose my mind. It's started intermittently failing on a merge[BuildFlavor]resources task. It just kinda works sometimes without me changing anything, and the stacktrace when it fails is a NullPointerException that doesnt have our gradle files anywhere in the trace. I dont think anyone else in the office is having this problem :rip:

duz
Jul 11, 2005

Come on Ilhan, lets go bag us a shitpost


Sapozhnik posted:

if you think angular is bad imagine how bad angularjs (angular 1) was. i still have nightmares about that poo poo

ug, one of our products is in an early version of angular 1 and code was/is just sort of forced into it so an update would require tossing pretty much the entire thing out and starting over

Kazinsal
Dec 13, 2011

brand engager posted:

Gradle is gonna make me lose my mind. It's started intermittently failing on a merge[BuildFlavor]resources task. It just kinda works sometimes without me changing anything, and the stacktrace when it fails is a NullPointerException that doesnt have our gradle files anywhere in the trace. I dont think anyone else in the office is having this problem :rip:

this poo poo is why I write C and build with bsdmake

modern programming is bullshit

Shaggar
Apr 26, 2006

brand engager posted:

Gradle is gonna make me lose my mind. It's started intermittently failing on a merge[BuildFlavor]resources task. It just kinda works sometimes without me changing anything, and the stacktrace when it fails is a NullPointerException that doesnt have our gradle files anywhere in the trace. I dont think anyone else in the office is having this problem :rip:

use maven like you're supposed to

FlapYoJacks
Feb 12, 2009

by vyelkin

Shaggar posted:

use maven like you're supposed to

brand engager
Mar 23, 2011

Someone already said that before. It's not like I, junior dev who got hired this year, can dictate what build system we use. And "someone on a forum said maven good" isnt really gonna sway anyone who decides that stuff

pokeyman
Nov 26, 2006

That elephant ate my entire platoon.

Kazinsal posted:

this poo poo is why I write C and build with bsdmake

modern programming is bullshit

ah yes, C. no bullshit here officer

Soricidus
Oct 20, 2010
freedom-hating statist shill

pokeyman posted:

ah yes, C. no bullshit here officer

well actually i think you'll find there's a very important distinction between bullshit and dogshit

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

pokeyman posted:

ah yes, C. no bullshit here officer

I kinda agree with the general feeling that there's a lot less bullshit with good old C but oh boy not when it comes to managing its build process

like I avoided learning C for many years because the building process was absolutely inscrutable to me

Bloody
Mar 3, 2013

brand engager posted:

Someone already said that before. It's not like I, junior dev who got hired this year, can dictate what build system we use. And "someone on a forum said maven good" isnt really gonna sway anyone who decides that stuff

have you tried

brand engager
Mar 23, 2011

lmao I figured out a workaround. Something about our build config makes using the 'Clean Project' option in the build dropdown menu of android studio break future builds. I went to 'Edit Configurations' and added one that just runs the "clean" gradle task and now it works if I use that.

like this

brand engager
Mar 23, 2011

build systems were a mistake. can't have bugs in the code if it's never executed

HoboMan
Nov 4, 2010

brand engager posted:

android studio

found your problem

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat

Shaggar posted:

use maven like you're supposed to

HoboMan
Nov 4, 2010

ask me about the time andriod studio updated in the background and caused my build to break and i spent two days trying to figure out how i hosed up my build

HoboMan
Nov 4, 2010

Sapozhnik posted:

if you think angular is bad imagine how bad angularjs (angular 1) was. i still have nightmares about that poo poo

any time im looking stuff up and i think to myself "man this code is really ugly and confusing" i check the tags and realize im accidentally reading an angularjs tutorial

brand engager
Mar 23, 2011

I think this one is on our build config and not studio this time. I've looked at all our .gradle stuff before, and whoever wrote it was trying to be waayyy too clever.

brand engager
Mar 23, 2011

I know at least one spot where they wrote a task that connects to some internal server and fetches some stuff. Definitely a cool unkown you want to account for when troubleshooting

animist
Aug 28, 2018
why does every button press in google cloud console take 15 seconds

Bloody
Mar 3, 2013

Java script

HoboMan
Nov 4, 2010

i was looking up a bug in angular and there was a ticket for it on thier github already. someone even has a pull request to fix it, but they marked it as wontfix because "fixing it would break too many things over here at google"

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?

Symbolic Butt posted:

I kinda agree with the general feeling that there's a lot less bullshit with good old C but oh boy not when it comes to managing its build process

like I avoided learning C for many years because the building process was absolutely inscrutable to me

what build process, C itself is almost entirely without build process except textual inclusion via preprocessor

now, any particular environment for C…






yes I know :thejoke:

Private Speech
Mar 30, 2011

I HAVE EVEN MORE WORTHLESS BEANIE BABIES IN MY COLLECTION THAN I HAVE WORTHLESS POSTS IN THE BEANIE BABY THREAD YET I STILL HAVE THE TEMERITY TO CRITICIZE OTHERS' COLLECTIONS

IF YOU SEE ME TALKING ABOUT BEANIE BABIES, PLEASE TELL ME TO

EAT. SHIT.


I still prefer CMake to Maven, might be because my experience with maven was with OpenHab which uses some sort of ultra-bastardised version and has like 300 separate nested projects

Carthag Tuek
Oct 15, 2005

altid pamo når du går
veje du burd' kende
overleved' barneår
lig' til livets ende

Flat Daddy posted:

just saw a typo of dotnet on a jira ticket, “dontnet” and it made me picture Bizarro Shaggar

ages ago but just remembered that i used to always accidentally type sourceforget.net which is pretty apt tbh

necrotic
Aug 1, 2005
I owe my brother big time for this!

animist posted:

why does every button press in google cloud console take 15 seconds

try using services in the au region from the us. I have to occasionally and its really bad in the web console

animist
Aug 28, 2018
cmake is the php of build systems

Private Speech
Mar 30, 2011

I HAVE EVEN MORE WORTHLESS BEANIE BABIES IN MY COLLECTION THAN I HAVE WORTHLESS POSTS IN THE BEANIE BABY THREAD YET I STILL HAVE THE TEMERITY TO CRITICIZE OTHERS' COLLECTIONS

IF YOU SEE ME TALKING ABOUT BEANIE BABIES, PLEASE TELL ME TO

EAT. SHIT.


animist posted:

cmake is the php of build systems

now that's just mean

e: how well does Maven work with c++ and python anyway, I've only used it with java

Private Speech fucked around with this message at 16:54 on May 9, 2019

Private Speech
Mar 30, 2011

I HAVE EVEN MORE WORTHLESS BEANIE BABIES IN MY COLLECTION THAN I HAVE WORTHLESS POSTS IN THE BEANIE BABY THREAD YET I STILL HAVE THE TEMERITY TO CRITICIZE OTHERS' COLLECTIONS

IF YOU SEE ME TALKING ABOUT BEANIE BABIES, PLEASE TELL ME TO

EAT. SHIT.


okay I admit maybe it does remind me of php a little, in the way you put a long list of unscoped commands into files

Aramoro
Jun 1, 2012




You should do what an old colleague of mine did when faced with our ant build files. Instead of writing an ant build he used ant to bootstrap a gradle build. So now our ant build starts doing gradle builds part way through.

Wait no, the opposite, do the opposite of what he did.

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat
I always love when I see some useful tool for Java only have an Ant task available and the official docs say to use the maven ant runner to use it.

love balancing that house of cards

Bloody
Mar 3, 2013

i like developing c# because i just open the solution in visual studio and click build and thats the whole build process

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat
also this great little thing: https://issues.apache.org/jira/plugins/servlet/mobile#issue/XERCESJ-1454/comment/12881865

The Fool
Oct 16, 2003


Bloody posted:

i like developing c# because i just open the solution in visual studio and click build and thats the whole build process

I also like that my build pipeline in Azure Devops is a single stage and has like two checkboxes for configuration.

akadajet
Sep 14, 2003

I kind of want to try Azure Devops and see if it's any better than the bamboo/octopus setup we use at work right now

Adbot
ADBOT LOVES YOU

HoboMan
Nov 4, 2010

"just toss an xml blob at the database and let the sql devs figure it out" guy technically has final say in this project's design but since we are also doing the sql dev i think it would be faster an easier to just not.

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