|
HDFS and Spark
|
# ? Dec 5, 2015 19:52 |
|
|
# ? May 25, 2024 13:26 |
|
Shaggar posted:you can create maps like $aThing = @{ SomeProp="fffff", whatever="guuuuhhhhh" } and then $aThing.SomeProp or $aThing.whatever. I haven't done much diving into the syntax cause I was doing something pretty simple. Also, if you specifically need a PSObject for some reason: New-Object PSObject -Property @{SomeProp="fffff"; whatever="guuuuhhhhh"} In Powershell 3 you can also cast to a pscustomobject: [pscustomobject]@{SomeProp="fffff"; whatever="guuuuhhhhh"} So it should be safe to use the latter syntax by the year 2025. Of course, by then everyone will probably be using something instead. I kind of like powershell but it has too many warts and having different stuff in different versions on different computers (and different os versions since lots of the commandlets aren't even part of the actual language!) is a pain. Microsoft has too many languages and they probably should have tried to make c# work for scripting instead. mystes fucked around with this message at 20:41 on Dec 5, 2015 |
# ? Dec 5, 2015 20:37 |
|
mystes posted:I think you need a semicolon instead of a comma for whatever reason. lol it's like they made objective-c flavored bash but it's still just as bad as bash
|
# ? Dec 5, 2015 20:40 |
|
MALE SHOEGAZE posted:lol it's like they made objective-c flavored bash but it's still just as bad as bash Powerhell is pretty powerful, and I feel like I can use it in situations where I would be reaching for something like python on linux. On the other hand, a lot of stuff is still way to verbose, and it still has a lot of gotchas. Also, if you write something sufficiently complicated it's like you're ducktaping different weird Microsoft programming ecosystems together (.net, COM, WSH, the cmd interpreter, mmc, probably other stuff), to the point where it might get easier to just write it in some other language directly (it's easy to end up literally having to embed c# code in your powershell script for COM and .net stuff, or even writing what's effectively an IDL file embedded in c# in powershell). This may be because I keep using powershell for stuff it's not really intended for, just because it's preinstalled everywhere now and has an interpreter, though. It mainly seems to be officially billed as a language to automate system administration tasks, rather then the default tool for everything, like bash on linux. mystes fucked around with this message at 20:55 on Dec 5, 2015 |
# ? Dec 5, 2015 20:46 |
|
mystes posted:Microsoft has too many languages and they probably should have tried to make c# work for scripting instead.
|
# ? Dec 5, 2015 21:09 |
|
microsoft language research is giving us good languages and good ideas (also microsoft is giving us good ides but thats not in the research dept) google language research is giving us golang and dart hm
|
# ? Dec 5, 2015 21:21 |
|
FamDav posted:microsoft language research is giving us good languages and good ideas (also microsoft is giving us good ides but thats not in the research dept) And that's why Microsoft is cool again.
|
# ? Dec 5, 2015 21:24 |
|
yeah i'd be pretty interested in what microsoft could produce if they like, were ever able to start fresh on something.
|
# ? Dec 5, 2015 22:07 |
|
How do people decide which distributed-out-of-the-box nosql db to use? There's so many. We've been using elasticsearch at work and you can do that stuff with it too it seems.
|
# ? Dec 5, 2015 22:43 |
|
Opulent Ceremony posted:How do people decide which distributed-out-of-the-box nosql db to use? There's so many. We've been using elasticsearch at work and you can do that stuff with it too it seems. They look at its syntax and pick the one with the most modern web design and the slickest examples that works in the only programming language they know, Javascript, which means they pick the one with the most ambiguous syntax that doesn't have schemas or require that you name tables before using them.
|
# ? Dec 5, 2015 22:48 |
|
Valeyard posted:HDFS and Spark they are both extremely needs suiting for us, a company that cares abt data integrity
|
# ? Dec 5, 2015 22:56 |
|
we use a massive cassandra ring and a bunch of elasticache clusters for log processing
|
# ? Dec 5, 2015 23:04 |
|
there are a lot of cases where you really only care that your data be mostly correct and so that's a great case for any kind of mongo thing.
|
# ? Dec 5, 2015 23:08 |
|
MALE SHOEGAZE posted:yeah i'd be pretty interested in what microsoft could produce if they like, were ever able to start fresh on something. Everything about that Midori research project sounds pretty rad
|
# ? Dec 5, 2015 23:11 |
|
MALE SHOEGAZE posted:there are a lot of cases where you really only care that your data be mostly correct and so that's a great case for any kind of mongo thing. e.g. the forums run on mongo now
|
# ? Dec 5, 2015 23:11 |
|
Soricidus posted:e.g. the forums run on mongo now appropriate as they were written by a mongo
|
# ? Dec 5, 2015 23:14 |
|
Luigi Thirty posted:appropriate as they were written by a mongo lmbo
|
# ? Dec 5, 2015 23:14 |
|
i think radium might have actually been one of the races that mongo is potentially a slur for, so
|
# ? Dec 5, 2015 23:15 |
|
don't use mongo. don't even talk about that in an even remotely neutral manner lest it be construed as an endorsement for that garbage
|
# ? Dec 5, 2015 23:36 |
|
don't use mongo here is mongo pictured with a murderer
|
# ? Dec 5, 2015 23:40 |
|
mystes posted:Microsoft has too many languages and they probably should have tried to make c# work for scripting instead. f# interactive is a good scripting language. it woulbe a great shell language as well if they just dropped the drat case sensitivity, it's the only freaking annoying part about using it for quick hacks or alternatively, take visual basic, add a pipe operator and improve its type inference a bit. vbscript was the old Windows scripting language so that might be an easier sell to blub sysadmins
|
# ? Dec 5, 2015 23:44 |
|
mystes posted:I think you need a semicolon instead of a comma for whatever reason. Yeah it is semicolons. It's real stupid cause you can see where they did things very c# like (for example typed parameters with validation attributes) but they didn't just use c# because... Reasons? A c# PowerShell would probably be too good
|
# ? Dec 5, 2015 23:47 |
|
St Evan Echoes posted:Oracle and mssql MSSQL and oracle are only for people who care about their data.
|
# ? Dec 5, 2015 23:49 |
|
Also lol @ the web administration powershell module not being signed.
|
# ? Dec 5, 2015 23:52 |
|
Luigi Thirty posted:don't use mongo hey la hey la also arn anderson is the absolute best wrestler ever imo
|
# ? Dec 5, 2015 23:56 |
|
St Evan Echoes posted:hey la hey la I met JJ Dillon at a con recently and he looked exactly the same as he did on TV in 1988
|
# ? Dec 6, 2015 00:28 |
|
wait f# as a shell scripting language?
|
# ? Dec 6, 2015 00:54 |
|
Luigi Thirty posted:I met JJ Dillon at a con recently and he looked exactly the same as he did on TV in 1988 i didnt buy his book either
|
# ? Dec 6, 2015 01:09 |
|
Luigi Thirty posted:wait it has a pipe operator, which is more than most languages can say
|
# ? Dec 6, 2015 03:57 |
|
mystes posted:powershell these are correct opinions powershell could be so good. piping actual objects around is objectively better than munging text output, but the language itself is just so awkward in practice. it might be easier if i used it every day, but i'm a casual
|
# ? Dec 6, 2015 04:16 |
|
JawnV6 posted:we just started using cassandra woah same
|
# ? Dec 6, 2015 05:38 |
|
JawnV6 posted:we just started using cassandra :popcorn:
|
# ? Dec 6, 2015 05:58 |
|
Shaggar posted:A c# PowerShell would probably be too good so like csh but with c#? lol part of what's both right and wrong with PowerShell is that it's implemented atop POSIX sh syntax but it's more intended for scripting than for interactive use please watch this demo of Kalman Reti using Symbolics Genera again to see what an interactive command line should be; this sort of thing (command tables and presentations) actually isn't that hard to build and yet is way better for interactive use than any UNIX-style shell and for scripting on a system like that you have a real language available that works with all the same objects in a way that's pretty trivial to wire up to the shell (just define a command)
|
# ? Dec 6, 2015 06:50 |
|
i'm using mongo for a project right now because i'm doing some js based stuff where it doesn't matter at all if the data is lost and/or replaced. down the line it could be something else but for now it works and idgaf
|
# ? Dec 6, 2015 07:36 |
|
Luigi Thirty posted:wait type inference for concise syntax. active patterns for really easy, really concise flow control. pipe operators for, uh, piping. I use it with the notepad++ plugin for quick text processing when a regex doesn't cut it and it works drat well. the thing you'd really need to turn it into a shell language are case insensitivity, like I said, and an auto-loaded script file with a bunch of aliases for sysadmin stuff (file system, registry... don't want to type "open Microsoft.Win32.Registry" every time) and probably a couple of ad-hoc pretty printers (which you can already add to the current repl). it would be better than c# at the job, no question
|
# ? Dec 6, 2015 11:46 |
|
at work we're replacing Oracle with Postgres. i couldn't be more pleased. someone briefly suggested mongo but was mostly laughed away. mongo is entertainment scale
|
# ? Dec 6, 2015 14:35 |
|
triple sulk posted:i'm using mongo for a project right now because i'm doing some js based stuff where it doesn't matter at all if the data is lost and/or replaced. down the line it could be something else but for now it works and idgaf you should have just used postgres 9.4+
|
# ? Dec 6, 2015 20:32 |
|
Sagacity posted:mongo is entertainment scale
|
# ? Dec 7, 2015 00:10 |
|
Sagacity posted:at work we're replacing Oracle with Postgres. i couldn't be more pleased. someone briefly suggested mongo but was mostly laughed away. mongo is entertainment scale we're doing the same thing, considered using enterprisedb for oracle compatibility but may go with straight postgres and do translations with ora2pg or by hand instead
|
# ? Dec 7, 2015 02:00 |
|
|
# ? May 25, 2024 13:26 |
|
speaking of terrible databases, my current project is a 100% client side development tool that creates a local database to store information about different kinds of hardware the user is developing with. i'd designed a sql schema and had happily and successfully using it until the main stake holder set his hair on fire saying "the data is in one file!?!? no no no no we need to be able to copy and paste items from the database between computers!!!!" all alternatives to copying/pasting were shot-down, so now we're using a "database" of my own devision which meets the c/p requirement but is worse in almost every other way that i know of and surely many that i don't
|
# ? Dec 7, 2015 02:15 |