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
DaTroof
Nov 16, 2000

CC LIMERICK CONTEST GRAND CHAMPION
There once was a poster named Troof
Who was getting quite long in the toof

Wheany posted:

as time goes by, the number of quotation marks around the word developers increases

there must be some reason that happens, but i haven%E2%80%99t figured it out yet

Adbot
ADBOT LOVES YOU

HoboMan
Nov 4, 2010

are there any legal or ethical issues with just copy-pasting a function out of an open source project with no explicit license?

gonadic io
Feb 16, 2011

>>=

HoboMan posted:

are there any legal or ethical issues with just copy-pasting a function out of an open source project with no explicit license?

legally, no licence = 100% copyrighted even if you can view the code. They might sue you I guess?

DaTroof
Nov 16, 2000

CC LIMERICK CONTEST GRAND CHAMPION
There once was a poster named Troof
Who was getting quite long in the toof

HoboMan posted:

are there any legal or ethical issues with just copy-pasting a function out of an open source project with no explicit license?

the law generally assumes that all rights are reserved by default, so without a license it might as well be closed/proprietary

HoboMan
Nov 4, 2010

welp

got this broken-rear end js library that just so happens to have a function that does exactly what I need, but the rest of the library is garbage

DaTroof
Nov 16, 2000

CC LIMERICK CONTEST GRAND CHAMPION
There once was a poster named Troof
Who was getting quite long in the toof

HoboMan posted:

welp

got this broken-rear end js library that just so happens to have a function that does exactly what I need, but the rest of the library is garbage

you can always ask the developer to clarify. if you're lucky they just forgot to specify it or whatever

i had a developer contact me for something like that once. the code was licensed mit but he wanted to know about the logo, so i just made it cc-by-sa

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 wrote a zsh completion once that was pretty basic but someone asked me to throw a license on it so they could include it some collection of completions in the zsh-users repo. seemed like a trivial thing at the time but i can understand why they'd want it explicitly stated that i didn't give a gently caress.

FlapYoJacks
Feb 12, 2009

by vyelkin
It's me, I like chef. I am a terrible person.

But god drat is it nice once it's all setup.

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

ratbert90 posted:

It's me, I like chef. I am a terrible person.

But god drat is it nice once it's all setup.

chef is miserable and, like all dsls, should be destroyed and all its creators rounded up and executed

Soricidus
Oct 20, 2010
freedom-hating statist shill

ratbert90 posted:

It's me, I like chef. I am a terrible person.

But god drat is it nice once it's all setup.

most things are nice when they’re all set up. the differentiation is about how horrible it is to get them to that state (and what happens when the requirements change)

Bloody
Mar 3, 2013

I spent my day flattening ridiculous abstract hierarchies it was a good day

mystes
May 31, 2006

HoboMan posted:

are there any legal or ethical issues with just copy-pasting a function out of an open source project with no explicit license?
Being able to view the source code does not make it open source.

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
puppet > chef

Plorkyeran
Mar 21, 2007

To Escape The Shackles Of The Old Forums, We Must Reject The Tribal Negativity He Endorsed

crazypenguin posted:

ah, yeah

wasn't there an old C++ or C# developer wisdom about how when language features are new programmers are like "make it loud and weird and obvious" and then when the language feature becomes commonplace and well understood programmers are like "ugh, why does this have such a bizarre syntax, i wish it were more regular with everything else."

i wonder if that applies here

stroustrup brings it up a lot when talking about c++ template/concept syntax. originally c++ didn't have the template<typename T> boilerplate but it was added because people were worried that it wouldn't be obvious that a function was a template and that'd be a big problem for some reason. no language since which has generic syntax inspired by c++ has included similar boilerplate and it's never been an issue, and now that templates aren't a new exotic thing everyone wishes we could get rid of the boilerplate.

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
what boilerplate except the word "template"?

Plorkyeran
Mar 21, 2007

To Escape The Shackles Of The Old Forums, We Must Reject The Tribal Negativity He Endorsed
most languages manage to make due with void foo<T>(T arg) rather than template<typename T> void foo(T arg); and c++ could have as well

Aramoro
Jun 1, 2012




Plorkyeran posted:

most languages manage to make due with void foo<T>(T arg) rather than template<typename T> void foo(T arg); and c++ could have as well

Developers are giant babies.

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Aramoro posted:

Developers are giant babies.

Feisty-Cadaver
Jun 1, 2000
The worms crawl in,
The worms crawl out.

Aramoro posted:

babies are giant developers.

gonadic io
Feb 16, 2011

>>=
Just got told that work is paying 2k/mo for 30mb of data in cosmos lol

E: plans to change this have just been pushed to 2020

gonadic io fucked around with this message at 10:20 on May 8, 2019

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


gonadic io posted:

Just got told that work is paying 2k/mo for 30mb of data in cosmos lol

E: plans to change this have just been pushed to 2020

lmao

HoboMan
Nov 4, 2010

gonadic io posted:

Just got told that work is paying 2k/mo for 30mb of data in cosmos lol

E: plans to change this have just been pushed to 2020

ask for a 24k/yr raise since wasting that much money apparently don't matter to them

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

mystes posted:

Being able to view the source code does not make it open source.

being open source doesnt necessarily mean you can c/p code into your fart app, either

gonadic io
Feb 16, 2011

>>=

HoboMan posted:

ask for a 24k/yr raise since wasting that much money apparently don't matter to them

This is the same place that gave me a 5k raise. I gave my notice, and the hiring for my replacement is at 30k above what I'm on.

Going to go do rust, can't wait to encounter exactly the same stupid choices but in a new different lang

Sagacity
May 2, 2003
Hopefully my epitaph will be funnier than my custom title.
at least it will be fearless zero-cost stupidity

HoboMan
Nov 4, 2010

anyone dealt with nested objects in dapper before?

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

gonadic io posted:

Just got told that work is paying 2k/mo for 30mb of data in cosmos lol

E: plans to change this have just been pushed to 2020

lpl

Shaggar
Apr 26, 2006

gonadic io posted:

Just got told that work is paying 2k/mo for 30mb of data in cosmos lol

E: plans to change this have just been pushed to 2020

how?

gonadic io
Feb 16, 2011

>>=

Storing telemetry messages one per document with a short TTL. Lots of reads, lots of writes, just not much data held at rest.

Shaggar
Apr 26, 2006
if ur doing telemetry application insights is probably cheaper and its also built for it.

gonadic io
Feb 16, 2011

>>=

Shaggar posted:

if ur doing telemetry application insights is probably cheaper and its also built for it.

For our other stuff we use iot with its underlying eventhub and it works great, it's just this rear end backwards legacy system that does it the dumb way and nobody wants to take responsibility for fixing it

necrotic
Aug 1, 2005
I owe my brother big time for this!
yeah any of those document stores as a service are not cheap for high write throughput. we looked at it for something and it would have cost easily 10x more than anything else we looked at.

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
yeah even amazon's dynamodb is ridiculously expensive for what it gives you

Powerful Two-Hander
Mar 9, 2004

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



HoboMan posted:

anyone dealt with nested objects in dapper before?

yes. I think so anyway, do you meant like "returning an object of type Butt that has a property output of type Fart" in one query? If so you can do it by adding a lambda split into the dapper query, I'll see if I can find an example because I've only used it once before thinking "this was dumb I should have returned multiple sets"

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

edit: example here https://stackoverflow.com/questions/7472088/correct-use-of-multimapping-in-dapper

tbh if i was using it now id probably have used the multiple result set functions and bound to separate objects then glued them together or something because it avoids a "wtf is this expression doing here" when you look at it later

edit 2: modified example to use consistent butt/fart syntax

Powerful Two-Hander fucked around with this message at 20:00 on May 8, 2019

HoboMan
Nov 4, 2010

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

Sapozhnik
Jan 2, 2005

Nap Ghost

HoboMan posted:

gently caress angular by the way

Sapozhnik
Jan 2, 2005

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

Powerful Two-Hander
Mar 9, 2004

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



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


i dont know how far you can chain the split if you have multiple child objects....i guess maybe you can nest it idk.

QueryMultiple (https://dapper-tutorial.net/querymultiple) works though as well, so instead of returning one row with all the data (or splitting into multipel calls you just split into multiple return results and map them in order.

that assumes you have control over your db code though!

Arcsech
Aug 5, 2008

CRIP EATIN BREAD posted:

yeah even amazon's [any AWS product] is ridiculously expensive for what it gives you

fixed

Adbot
ADBOT LOVES YOU

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

dynamo really is exceptionally expensive in comparison to many of the other services. writes are charged in 1kb blocks (same as cosmo). we spend less than $1k/mo on rds for this and it would have cost nearly $30k/mo using dynamo.

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