|
Skyl3lazer posted:Is this some serverless specific thing? This seems like an awful rule for most coding scenarios. A serverless deployed function which is called via rest (which I'm talking about here) is very different from like a method in the code. It would be loving absurd to have this rule within a single codebase
|
# ? Sep 4, 2018 15:54 |
|
|
# ? Dec 5, 2024 20:09 |
|
prisoner of waffles posted:So serverless really seems like a cloud cost model leading to a different programming model, which makes sense and is kinda neat. Yes, but the main draw (for me) is that you don't janitor the server(s) it's running on or really care about them
|
# ? Sep 4, 2018 15:57 |
|
Progressive JPEG posted:brb figuring out how to do numerical formatting using streams If you can't figure out how to do a basic simple thing like numerical formatting in streams, you should not be a programmer.
|
# ? Sep 4, 2018 16:01 |
|
CRIP EATIN BREAD posted:its useful when you have something that will get called very infrequently, or is some sort of special endpoint that you dont want integrated into your applications. yup. At Job-2 we had 2 Lambdas that were run on a cron with long-rear end timer (one was ran hourly, the other once a day), whose job it was to run some queries against other AWS services and then optionally do some short-lived stuff. It was very needs suiting for that. We also had a crazy overengineered data pipelines on Lambda + S3 + SQS (I think?) so that the pipelines could in theory scale almost indefinitely. Last I heard, it never needed to serve more than 5 requests per second
|
# ? Sep 4, 2018 16:16 |
|
huh, that is mildly interesting. are there any provisions to just schedule them to run every X time? ive run into some annoying cloud use cases like that in the past when i had an app deployed to azure and i wanted to just run some code every 5 minutes that'd do some loving around that involved my database
|
# ? Sep 4, 2018 16:19 |
|
CRIP EATIN BREAD posted:especially if it just does stuff like call AWS API endpoints yep. what made serverless finally click for me was when someone called them cloud bash scripts. it's just the glue you need sometimes to make pre-existing services work together it's not really for actually building applications
|
# ? Sep 4, 2018 16:27 |
|
Bloody posted:huh, that is mildly interesting. are there any provisions to just schedule them to run every X time? ive run into some annoying cloud use cases like that in the past when i had an app deployed to azure and i wanted to just run some code every 5 minutes that'd do some loving around that involved my database yeah its trivial to just run them on a timed schedule
|
# ? Sep 4, 2018 16:28 |
|
ratbert90 posted:If you can't figure out how to do a basic simple thing like numerical formatting in streams, you should not be a programmer. 1) Don't do this. Just because somebody has never seen before some code you've done lots of (and so find easy) there's no need to be so condescending about it. This thread is a safe space. 2) nobody should be a programmer lol 3) yeah it is pretty straitforward you can basically copy/paste from the docs
|
# ? Sep 4, 2018 16:53 |
|
clearly you just do sout << "foo" << printf("%f", float) << "whatever" << endl;
|
# ? Sep 4, 2018 17:00 |
|
Bloody posted:huh, that is mildly interesting. are there any provisions to just schedule them to run every X time? ive run into some annoying cloud use cases like that in the past when i had an app deployed to azure and i wanted to just run some code every 5 minutes that'd do some loving around that involved my database For AWS Lambda it is super simple. When you set up a Lambda, you have to provide something called trigger -> when it should be launched, and what kind of data message should be passed to it when it starts (e.g. you can have a Lambda that runs when someone uploads a new file to an S3 bucket to a specific path). One of the possible triggers you can have is just scheduled notification.
|
# ? Sep 4, 2018 17:06 |
|
There's something I've run into a few times in slightly different forms, and I'm wondering if there's a name for it or common pattern for handing it. basically, there's some data at rest. A serving job loads some of that data and validates it in order to handle a request. Separately, there is code that loads all of the data and validates some of the same invariants. Conceptually it seems like a really good idea for the code that validates stuff to be completely shared. In practice, I have never seen it works out that way. Often, the serving job possesses additional context or privileges necessary for certain checks. Or perhaps the validation job is able to perform more checks because it operates on all the data rather than a subset. Or maybe in one context the data is in text form and you want line numbers + human actionable messages for every single issue, but in the other context the data is in a serialized binary format and you only want to know good/bad and fail quickly. So have y'all run into stuff like this? What kind of things do you consider when working on this problem?
|
# ? Sep 4, 2018 17:10 |
|
gonadic io posted:Yes, but the main draw (for me) is that you don't janitor the server(s) it's running on or really care about them you can do that with normal application deployment on azure paas or to a lesser extent aws ebs
|
# ? Sep 4, 2018 17:16 |
|
gonadic io posted:1) Don't do this. Just because somebody has never seen before some code you've done lots of (and so find easy) there's no need to be so condescending about it. This thread is a safe space. Hey, normally I wouldn't be a jerk, but he was a jerk first!
|
# ? Sep 4, 2018 17:19 |
|
Bloody posted:huh, that is mildly interesting. are there any provisions to just schedule them to run every X time? ive run into some annoying cloud use cases like that in the past when i had an app deployed to azure and i wanted to just run some code every 5 minutes that'd do some loving around that involved my database yea azure functions has multiple trigger types one of which is a scheduling.
|
# ? Sep 4, 2018 17:20 |
|
Hell yes, the ETL contractor that shot down every attempt of mine to teach him git just blew away 2-3 weeks of his own work.
|
# ? Sep 4, 2018 17:43 |
|
ThePeavstenator posted:Hell yes, the ETL contractor that shot down every attempt of mine to teach him git just blew away 2-3 weeks of his own work. Was he using SCM at all?
|
# ? Sep 4, 2018 17:46 |
|
ThePeavstenator posted:Hell yes, the ETL contractor that shot down every attempt of mine to teach him git just blew away 2-3 weeks of his own work. oh so he was using git.
|
# ? Sep 4, 2018 17:46 |
|
oh poo poo you got shaggar'd
|
# ? Sep 4, 2018 17:47 |
|
Finster Dexter posted:Was he using SCM at all? When he started here the first thing he worked on was an older VS solution that we have in a git repo. He then made new projects in this solution for everything he did because he didn't know how to create a new repo for a new solution (we use VSTS so this is easy as hell from Visual Studio even if you don't know git). He'd periodically (like once every week or so ) ask me to help him get his stuff "checked in" and every time I'd have to remind him that committing doesn't also push to remote. I'd also try to use this as an opportunity to teach him stuff about git but once he got his stuff committed, he brushed it off as a thing he'd worry about later. I made a change to the original code that belongs in this repo. He tried to merge my changes locally but instead of committing, or stashing, or branching, he did a reset. Since he has like 10 other unrelated projects in this repo with uncommitted changes, he lost all of it.
|
# ? Sep 4, 2018 17:58 |
|
ratbert90 posted:Hey, normally I wouldn't be a jerk, but he was a jerk first! plz don't gender my posting
|
# ? Sep 4, 2018 18:07 |
|
ThePeavstenator posted:When he started here the first thing he worked on was an older VS solution that we have in a git repo. He then made new projects in this solution for everything he did because he didn't know how to create a new repo for a new solution (we use VSTS so this is easy as hell from Visual Studio even if you don't know git). He'd periodically (like once every week or so ) ask me to help him get his stuff "checked in" and every time I'd have to remind him that committing doesn't also push to remote. I'd also try to use this as an opportunity to teach him stuff about git but once he got his stuff committed, he brushed it off as a thing he'd worry about later. git is trash.
|
# ? Sep 4, 2018 18:08 |
|
Shaggar posted:git is trash. Yeah this sounds like a problem with git and not that the guy was keeping multiple projects in one repo and almost never committing.
|
# ? Sep 4, 2018 18:10 |
|
even our technical writer has git figured out and she has only started using it like a month ago. that ETL contractor should be put up against the wall.
|
# ? Sep 4, 2018 18:11 |
|
ThePeavstenator posted:When he started here the first thing he worked on was an older VS solution that we have in a git repo. He then made new projects in this solution for everything he did because he didn't know how to create a new repo for a new solution (we use VSTS so this is easy as hell from Visual Studio even if you don't know git). He'd periodically (like once every week or so ) ask me to help him get his stuff "checked in" and every time I'd have to remind him that committing doesn't also push to remote. I'd also try to use this as an opportunity to teach him stuff about git but once he got his stuff committed, he brushed it off as a thing he'd worry about later. perfect in every way
|
# ? Sep 4, 2018 18:12 |
|
its a problem with git in that it has a bunch of bad terminology around what it does which makes it hard to learn and also encourages the use of local, distributed repos which is a terrible idea.
|
# ? Sep 4, 2018 18:13 |
|
yeah git is so hard to use it hasn't gotten any traction in the industry, or in private projects
|
# ? Sep 4, 2018 18:14 |
|
yeah in that way git is just like javascript
|
# ? Sep 4, 2018 18:17 |
|
and windows
|
# ? Sep 4, 2018 18:17 |
|
git is very simple and obviously superior provided your brain has not been broken by something worse
|
# ? Sep 4, 2018 18:18 |
|
svn's branching model works akin to copying backups to the compaq under the intern's desk
|
# ? Sep 4, 2018 18:19 |
|
AggressivelyStupid posted:perfect in every way User/post combo
|
# ? Sep 4, 2018 18:20 |
|
gits branching model is using the interns computer to store the backups
|
# ? Sep 4, 2018 18:20 |
|
back when i was janitoring servers and workstations my manager liked to use mercurial for version control, i remember it being less lovely than svn and more intuitive than git. I havent looked at it in years, is it bad or good?
|
# ? Sep 4, 2018 18:23 |
|
its good but it's been blown away in market share by git cuz it's not really better, except for the ui, which is only marginally better
|
# ? Sep 4, 2018 18:24 |
|
Shaggar posted:gits branching model is using the interns computer to store the backups The problem you're describing with git is "the computer doesn't force people at gunpoint to properly push their changes" which isn't a problem that has anything to do with git.
|
# ? Sep 4, 2018 18:25 |
|
git has specific workflows that encourage you to commit locally before you commit remotely. not only is there no reason to do this but it makes easy for new users to confuse fake (local) commits with real (remote) commits.
|
# ? Sep 4, 2018 18:35 |
|
I love the YOSPOS trinity the sh*gg*r, the f*shm*ch, and the holy st*m**
|
# ? Sep 4, 2018 18:37 |
|
git: ensuring your work is stored somewhere other than your machine takes at least one extra step compared to most old-rear end vcses contractor who lost all his poo poo didn't listen to someone trying to ensure that his work would be retained (and person trying to help took "no" for an answer, allowing the work to be lost)
|
# ? Sep 4, 2018 18:39 |
|
prisoner of waffles posted:git: ensuring your work is stored somewhere other than your machine takes at least one extra step compared to most old-rear end vcses I had an intern this summer, the contractor's work involves interfacing with the software my team writes, and he reports to a different manager at the same level as mine. I had a person that I was actually being paid to mentor and me offering help was a courtesy in the first place. ThePeavstenator fucked around with this message at 19:00 on Sep 4, 2018 |
# ? Sep 4, 2018 18:54 |
|
|
# ? Dec 5, 2024 20:09 |
|
prisoner of waffles posted:I love the YOSPOS trinity how tiny bug child has fallen
|
# ? Sep 4, 2018 18:57 |