Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

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.
 
  • Locked thread
gonadic io
Feb 16, 2011

>>=

fleshweasel posted:

+ to append to a list is fine but functional programmers go too far and start making up >>= and poo poo that is 1. unreadable 2. impossible to google and get documentation for

my nigga have you tried hoogle??

Adbot
ADBOT LOVES YOU

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

that is actually pretty cool and, i bet, useful

fart simpson
Jul 2, 2005

DEATH TO AMERICA
:xickos:

gonadic io posted:

my nigga have you tried hoogle??

:smugdog:

gonadic io
Feb 16, 2011

>>=

still though, the fp complete one is better than the haskell.org one

the haskell.org one has very few packages that it searches by default

fart simpson
Jul 2, 2005

DEATH TO AMERICA
:xickos:

prefect posted:

that is actually pretty cool and, i bet, useful

hoogle owns. you can search by type signatures and stuff, like say i have a list of maybe values and i want to get a new list of the unwrapped values. does that function exist? what's it called?
https://www.haskell.org/hoogle/?hoogle=[Maybe+a]+-%3E+[a]

fart simpson
Jul 2, 2005

DEATH TO AMERICA
:xickos:

gonadic io posted:

still though, the fp complete one is better than the haskell.org one

the haskell.org one has very few packages that it searches by default

yeah thats cool i've never seen that one before

fritz
Jul 26, 2003



stop it.

Share Bear
Apr 27, 2004

why would you use mongo when you could use ANY loving SQL THING EVER

sqlite is free and text based and very good for your poo poo project you will never show anyone

leftist heap
Feb 28, 2013

Fun Shoe
there is no hoogle to save scale tho

Share Bear
Apr 27, 2004

mongo has cost me more time and money than any piece of poo poo sql database you can think of, do not use mongo

Notorious b.s.d.
Jan 25, 2003

by Reene
it says everything about haskell that it needs its own search engine because google takes input as garbage

Notorious b.s.d.
Jan 25, 2003

by Reene

Share Bear posted:

why would you use mongo when you could use ANY loving SQL THING EVER

sqlite is free and text based and very good for your poo poo project you will never show anyone

even if you actually want a dumb document store, don't use mongo

postgres hstore and json extensions let you do k/v in a real database and mix document/json data w/ regular sql queries

fart simpson
Jul 2, 2005

DEATH TO AMERICA
:xickos:

of course the actual reason for hoogle's existence is searching for stuff by type signature, which it does really well and can even search for more general versions of what you want

Bhodi
Dec 9, 2007

Oh, it's just a cat.
Pillbug
<<

gonadic io
Feb 16, 2011

>>=

now that one's easy, it's the opposite of >> which is >>= without the =

Forums Terrorist
Dec 8, 2011

nice bitwise operator

Bhodi
Dec 9, 2007

Oh, it's just a cat.
Pillbug
oh it's much more than that in the magical land of ruby~

e: come to think of it it's just += in a string context why are you being so different in a dumb way ruby because += works just fine

Bhodi fucked around with this message at 18:04 on Apr 1, 2015

KidDynamite
Feb 11, 2005

Necc0 posted:

who's out there pushing mongo as a good db choice? why do newbies keep insisting on using it? same goes for node.js which you're also using iirc

wherever you're getting your info is bad and you should stop listening to them/it

my boss/ one of my professors preaches this poo poo HARD

every new hire has to get that mongo university intro cert :downs:

The Leck
Feb 27, 2001

Subjunctive posted:

"that story doesn't add up"

"OF COURSE IT DOESN'T IT'S A SERIES OF EVENTS AND NOT MEMBERS OF A CLOSED SET"
i never knew i wanted to see a gritty, adult-oriented reboot of mathnet until now.

tef
May 30, 2004

-> some l-system crap ->

Share Bear posted:

why would you use mongo

because you can load it up without doing much and dump poo poo in without thinking about it. as most people won't even put an index on a table, let alone write a migration or a schema, it performs just as well as mysql would do anyway

Valeyard
Mar 30, 2012


Grimey Drawer
mongoDB, named after its userbase

tef
May 30, 2004

-> some l-system crap ->

Valeyard posted:

mongoDB, named after its userbase

it's not called valeyard ???

MeruFM
Jul 27, 2010
:thurman:

kitten emergency
Jan 13, 2008

get meow this wack-ass crystal prison

tef posted:

it's not called valeyard ???

kitten emergency
Jan 13, 2008

get meow this wack-ass crystal prison
oh poo poo i didn't even realize tef burned you

tef, the nicest man on twitter

MeruFM
Jul 27, 2010
but seriously, my technical manager wanted me to switch from postgre to mongo because it was good for extending into the future as we add more columns/keys.

Iunno how I feel about it, because he has a ton of experience in enterprise SAAS stuff so I usually trust his judgement. And had really good calls when we were working on extending the db schema. All of them proving themselves 6 months later

maybe he's just tired of working with oracleDB or something.

we already have another system using sql and mongo so it doesn't seem to be for resume building

Bhodi
Dec 9, 2007

Oh, it's just a cat.
Pillbug
its fine as long as you never have to restore or migrate or replicate ever

DaTroof
Nov 16, 2000

CC LIMERICK CONTEST GRAND CHAMPION
There once was a poster named Troof
Who was getting quite long in the toof
there are use cases for document databases but if your postgre schema contains any relationships whatsoever replacing it with mongo is almost certainly a mistake

Deacon of Delicious
Aug 20, 2007

I bet the twist ending is Dracula's dick-babies

The Leck posted:

i never knew i wanted to see a gritty, adult-oriented reboot of mathnet until now.

oh I didn't realize Lisa Simpson and darth vader were in this, neat

Workaday Wizard
Oct 23, 2009

by Pragmatica
i am actually a good programmer

Notorious b.s.d.
Jan 25, 2003

by Reene

Bhodi posted:

its fine as long as you never have to restore or migrate or replicate ever

or read the data back

Notorious b.s.d.
Jan 25, 2003

by Reene

DaTroof posted:

there are use cases for document databases but if your postgre schema contains any relationships whatsoever replacing it with mongo is almost certainly a mistake

postgres is a perfectly competent document database on its own (hstore, json)

why would you deploy two databases just because you have two kinds of data

DaTroof
Nov 16, 2000

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

Notorious b.s.d. posted:

postgres is a perfectly competent document database on its own (hstore, json)

why would you deploy two databases just because you have two kinds of data

oh yeah, i forgot about the json data type

there's no good reason to switch to mongo at all

giogadi
Oct 27, 2009

gonadic io posted:

my nigga have you tried hoogle??

Why on earth didn't you choose the vastly superior username "gonadic j/o"?

gonadic io
Feb 16, 2011

>>=

giogadi posted:

Why on earth didn't you choose the vastly superior username "gonadic j/o"?

drat ur right. maybe next time

PleasureKevin
Jan 2, 2011

Share Bear posted:

why would you use mongo when you could use ANY loving SQL THING EVER

sqlite is free and text based and very good for your poo poo project you will never show anyone

mongodb is actually good

i went from SQL to mongo and there is basically nothing to learn

you just make javascript objects but now they have a .save() function

making a "schema" is as easy as making a javascript object, no signing in to phpmyadmin or SQL tools and making new DBs and tables and poo poo (or via command line if you're that cool)

i just learned about sub-documents which replace the need for many-to-many databases in many cases and are really easy to use

as far as usability and speed it seems amazing. the only complaint i've heard is people lost data due to bugs a couple years ago (well, more than once).

Arcsech
Aug 5, 2008

gonadic io posted:

my nigga have you tried hoogle??

hoogle is neat but it doesnt solve haskell being a giant mess of unreadable operators

BlockChainNetflix
Sep 2, 2011
ive to import a customers mongdob data into a sql db once a month. what's the best way of doing this without killing myself. would killing myself be preferable. what is the recommended way of killing oneself.

Bhodi
Dec 9, 2007

Oh, it's just a cat.
Pillbug
mongodb is actually good if all you know or care about is the application layer

doubly so if you get to throw your feces over the wall to operations

Adbot
ADBOT LOVES YOU

PleasureKevin
Jan 2, 2011

BLT Clobbers posted:

ive to import a customers mongdob data into a sql db once a month. what's the best way of doing this without killing myself. would killing myself be preferable. what is the recommended way of killing oneself.

why do you have to do that

Bhodi posted:

mongodb is actually good if all you know or care about is the application layer

doubly so if you get to throw your feces over the wall to operations

just put it in the :yaycloud:

  • Locked thread