|
tef posted:Yeah, and a lot of distributed system stuff is tied up with protocol design, along with topology, and well, handling recovery/ failure. also this https://www.amazon.com/dp/0671819100/_encoding=UTF8?coliid=I1APO59D04D8X6&colid=2CWLM9OCL7GUZ
|
# ? Jun 3, 2017 06:38 |
|
|
# ? May 23, 2024 09:58 |
|
yesterday evening whilst coding and drinking beer (ffffriday night! muthafucka) i hand encoded some html snippets in java. today i replaced the code with jsoup
|
# ? Jun 3, 2017 09:32 |
|
MALE SHOEGAZE posted:well today i found out that equality in scala is garbage which part of it? we've just had some fun with week-year vs actual year but that's java's datetimeformatter, can't blame scala for that one
|
# ? Jun 3, 2017 10:05 |
|
god Dapper is so fuckin good i feel like a wizard binding up split objects in a single line of code instead of 25 lines wrapped into a reader if id known about this a year ago i could have saved so much typing
|
# ? Jun 3, 2017 11:09 |
|
gonadic io posted:which part of it? did someone miscapitalize a y
|
# ? Jun 3, 2017 13:20 |
|
pokeyman posted:did someone miscapitalize a y yuuuuuuuuup
|
# ? Jun 3, 2017 14:18 |
|
the talent deficit posted:re: alternatives to message queues probably relevant reference for sagas: https://www.cs.cornell.edu/andru/cs711/2002fa/reading/sagas.pdf
|
# ? Jun 3, 2017 14:21 |
|
gonadic io posted:yuuuuuuuuup hmm, you seem to be trying to render the year multiple times. and what is up with that padding specifier?
|
# ? Jun 3, 2017 14:24 |
|
https://np.reddit.com/r/cscareerquestions/comments/6ez8ag/accidentally_destroyed_production_database_on/quote:Today was my first day on the job as a Junior Software Developer and was my first non-internship position after university. Unfortunately i screwed up badly.
|
# ? Jun 3, 2017 15:03 |
|
im the ability for a junior dev to delete the production database
|
# ? Jun 3, 2017 15:09 |
|
gonadic io posted:which part of it? the part where the signature of equals is code:
Since we use mongo (yaaay) all of our domain objects look like this: code:
code:
So I'm trying to add a simple reference wrapper to fix this problem: code:
code:
So anyhow I thought I'd just be able to add my nifty type wrapper and then I'd get lots of useful compiler errors in all of the places the code was now wrong, but I didn't realize that equality works the way it does so now I have many instances of this: code:
DONT THREAD ON ME fucked around with this message at 15:15 on Jun 3, 2017 |
# ? Jun 3, 2017 15:10 |
|
AggressivelyStupid posted:im the ability for a junior dev to delete the production database yeah that poor dev carries zero blame for that fuckup imo
|
# ? Jun 3, 2017 15:19 |
|
raminasi posted:yeah that poor dev carries zero blame for that fuckup imo yeah the horror there is the CTO for sure
|
# ? Jun 3, 2017 15:20 |
|
jesus christ
|
# ? Jun 3, 2017 15:28 |
|
MALE SHOEGAZE posted:the part where the signature of equals is oh yeah i loving hate that poo poo. don't forget that pattern matching and even scalaTest's "shouldBe" are all non-typesafe too. what's the loving point of being in a static lang if you're going to throw away all of the benefits at least the first two have warnings in intellij for using them with different types, but the last doesn't even have that. the number of times i've been writing tests and refactoring as i go and getting a "TEST FAILED: 5 was not equal to Some(5)" because i forgot and was given no assistance in editing my test cases
|
# ? Jun 3, 2017 16:11 |
|
gonadic io posted:oh yeah i loving hate that poo poo. don't forget that pattern matching and even scalaTest's "shouldBe" are all non-typesafe too. what's the loving point of being in a static lang if you're going to throw away all of the benefits yeah this is the first time I've been really let down by the language. I was very excited to put my little documentation wrapper to use but instead of being trivial to refactor existing classes it is now a minefield so I guess i'll just have to settle for strings.
|
# ? Jun 3, 2017 16:30 |
|
Two or three times a day my production system is gobbling up memory and being killed by a supervisor process. I ask the team looking after the message queue library for some instrumentation on thei memory usage. I receive the following reply:quote:The dbcapi uses the heap from the call process so there’s no separate heap for the dbcapi itself. Idk, I cannot use Valgrind in production and haven't reproduced the issue despite running the same system without restarts for weeks. The app does barely anything: pops a message off a queue, converts to JSON using a popular C++ header library that has a tonne of tests, then posts it via Boost ASIO to Beast WebSockets. I also have fun every morning because there are two cables from NYSE to IDC and sometimes one is faster than the other and that breaks things for everyone. People scream because they hit a button and the message has to go through a dozen systems around the Americas and back to be displayed on the monitor above their head. My diagnostic input is basically no different from watching MSNBC or Fox News in the morning: I can see numbers flag on the TV but cannot get any additional detail. Awesome sauce. No wonder no one else tendered for this project, lol
|
# ? Jun 3, 2017 16:34 |
|
MALE SHOEGAZE posted:yeah this is the first time I've been really let down by the language. I was very excited to put my little documentation wrapper to use but instead of being trivial to refactor existing classes it is now a minefield so I guess i'll just have to settle for strings. but what if you some Set[A] with the same elements as some Set[B] and A and B were not related. how would you know that Set[A] == Set[B]?
|
# ? Jun 3, 2017 16:45 |
|
the talent deficit posted:re: alternatives to message queues why do you say the implementation is terrible?
|
# ? Jun 3, 2017 16:48 |
|
Brain Candy posted:but what if you some Set[A] with the same elements as some Set[B] and A and B were not related. how would you know that Set[A] == Set[B]? i hope you're being sarcastic
|
# ? Jun 3, 2017 16:48 |
|
NewForumSoftware posted:https://np.reddit.com/r/cscareerquestions/comments/6ez8ag/accidentally_destroyed_production_database_on/ how much do you want to bet that the database in question is mongodb
|
# ? Jun 3, 2017 18:31 |
|
gonadic io posted:i hope you're being sarcastic that's actually the reason it is the way it is, and yes i am
|
# ? Jun 3, 2017 19:06 |
I like the response that starts with "Hey so I'm the guy who made gitlab die, remember that?"
|
|
# ? Jun 3, 2017 19:27 |
|
Arcsech posted:how much do you want to bet that the database in question is mongodb Reading through comments on CouchDB I think that previously defaulted to no password at all, wonder how many systems were wide open on the Internets like that.
|
# ? Jun 3, 2017 19:44 |
|
Arcsech posted:how much do you want to bet that the database in question is mongodb it was postgres based on a later comment. the type of database doesnt matter here (except that mongo would have deleted the data without his help)
|
# ? Jun 3, 2017 20:06 |
|
scala's equality is a lovely holdover from java. they're looking to improve the situation in a future version: http://www.scala-lang.org/blog/2016/05/06/multiversal-equality.html in the meantime if you use scalaz or cats, both of them support an Equal/Eq typeclass and === operator to use instead of the default equality.
|
# ? Jun 3, 2017 20:58 |
|
kugutsu posted:scala's equality is a lovely holdover from java. they're looking to improve the situation in a future version: http://www.scala-lang.org/blog/2016/05/06/multiversal-equality.html yeah i'm really tempted to just find+replace every '==' in the codebase with '===' and then figure things out. but also i looked spent an hour last night trying to figure out how to use '===' and i couldn't. the cats documentation is total garbage.
|
# ? Jun 3, 2017 21:10 |
|
you can get at the === operator in cats by importing cats.implicits._ to actually use it for types that aren't built in you'll need to provide an instance of the Eq typeclass for that type. this would usually be done for a case class you define by placing an implicit in the companion object for that type, e.g: code:
|
# ? Jun 3, 2017 22:23 |
|
if you use scalaz then you are irredeemably hosed and there is nothing anyone can do to help you
|
# ? Jun 4, 2017 01:21 |
|
BiohazrD posted:also this found some samples of it and it looks p. good. Managed to find a not-too-expensive used version and ordered it. Thanks for the recommendation.
|
# ? Jun 4, 2017 02:21 |
|
kugutsu posted:you can get at the === operator in cats by importing cats.implicits._ Thanks a lot. I knew it would be something like that but I couldn't get there. I'm going to try this just for fun and maybe for real. e: it works! DONT THREAD ON ME fucked around with this message at 03:17 on Jun 4, 2017 |
# ? Jun 4, 2017 02:30 |
|
NewForumSoftware posted:https://np.reddit.com/r/cscareerquestions/comments/6ez8ag/accidentally_destroyed_production_database_on/ mega lol
|
# ? Jun 4, 2017 06:21 |
|
the talent deficit posted:all the scala programmers i work with were like 'this is amazing! let's rewrite everything!' yep, you've got scala programmers alright
|
# ? Jun 4, 2017 06:54 |
|
BiohazrD posted:also this - the systems bible / systemantics ugh i think the systems bible is the 3rd ed https://www.amazon.com/Systems-Bible-Beginners-Guide-Large/dp/0961825170 https://en.wikipedia.org/wiki/Systemantics 'General Systemantics (retitled to Systemantics in its second edition and The Systems Bible in its third) is a systems engineering treatise by John Gall in which he offers practical principles of systems design based on experience and anecdotes.' it's kinda wheezy in places and suffers from that 'everything is hard so it's time for big words and clever aphorisms' smug posting i do but worse tef fucked around with this message at 06:58 on Jun 4, 2017 |
# ? Jun 4, 2017 06:56 |
|
hmm, I got CodeWarrior installed on my iMac. I can't seem to locate a C version of the Mac Toolbox reference though, just a mirrored copy of Apple's old references which are all in Pascal. it does not include a Pascal compiler. it does have a dinky console that you can use as a framework for standard C applications though so that's something
|
# ? Jun 4, 2017 07:03 |
|
JewKiller 3000 posted:if you use scalaz then you are irredeemably hosed and there is nothing anyone can do to help you should that really be an if…then? I thought there was a custom operator for that my reaction when I first saw someone propose a "swiftz" was "NOOOOOOOOoOoOoooo!"
|
# ? Jun 4, 2017 07:06 |
|
tef posted:- the systems bible / systemantics Oh yeah I bought the "Systems Bible" on your recommendation without realizing that the other two Systemantics books are previous editions of the same book but with different titles
|
# ? Jun 4, 2017 07:49 |
|
Luigi Thirty posted:hmm, I got CodeWarrior installed on my iMac. I can't seem to locate a C version of the Mac Toolbox reference though, just a mirrored copy of Apple's old references which are all in Pascal. it does not include a Pascal compiler. what you're looking for is called "Macintosh Toolbox Programmer's Assistant" and it should actually be included with "newer" versions of CodeWarrior (look in an extras folder, MPW should be there too) don't be put off by Pascal API descriptions though, systems Pascal on the Mac is isomorphic to C and it should be trivial to just pick up and use virtually any APIs, your main "difficulty" will just be including the right header (not library, almost all the APIs are in InterfaceLib on PowerPC) and CodeWarrior's batch find is super fast also grab yourself ObiWan from Stairways Software (Peter N Lewis), it's primarily a handy API quick-reference that comes up at a keystroke, and only takes a couple MB of disk, and runs lightning fast even on a 68030 I should see if Peter will release the source
|
# ? Jun 4, 2017 08:19 |
|
I have CodeWarrior 7.1. I'll poke around the ISO and see what I can find
|
# ? Jun 4, 2017 09:21 |
|
|
# ? May 23, 2024 09:58 |
|
whois john gall
|
# ? Jun 4, 2017 13:04 |