|
Can someone explain protobuffs to me This poo poo is terrible
|
# ? Feb 21, 2019 20:55 |
|
|
# ? Apr 26, 2024 14:50 |
|
Scionix posted:Can someone explain protobuffs to me MUCH LIKE YOU'RE POASTS
|
# ? Feb 21, 2019 21:00 |
|
Scionix posted:Can someone explain protobuffs to me what are you struggling with? it's pretty simple in concept: you define your data schema in proto files and then the schema is used to generate serializers and deserializers for your language. it makes it very easy to communicate between processes written in different languages. the devil is in the details tho DONT THREAD ON ME fucked around with this message at 21:06 on Feb 21, 2019 |
# ? Feb 21, 2019 21:02 |
|
Fatty Crabcakes posted:
|
# ? Feb 21, 2019 21:02 |
|
Scionix posted:Can someone explain protobuffs to me A) a magical formatting tool that will serialize/deserialize arbitrary information into a space-efficient wire format that can inflate to/from any language with some easy shims b) make-work yak shaving for bored goog folks based around an esoteric use case with servers slinging bytestreams around, needing to pluck out some messages, and not freak out if there's a field it's unaware of. the 'not freak out' one is what causes every pain point and should just be a panic
|
# ? Feb 21, 2019 21:02 |
|
lol if you try to version your api or distribute your transactions
|
# ? Feb 21, 2019 21:08 |
|
also please someone tell me how to distribute a transaction
|
# ? Feb 21, 2019 21:14 |
|
Ok, but what's a transaction?
|
# ? Feb 21, 2019 21:17 |
|
taqueso posted:Ok, but what's a transaction? a miserable pile of records
|
# ? Feb 21, 2019 21:36 |
|
ctps: I think Fril is going to be the death of me. My mostly liquid brain can't comprehend both logic programming and lisp syntax at the same time. Academia baby!!!
|
# ? Feb 21, 2019 22:32 |
|
AggressivelyStupid posted:ctps: I think Fril is going to be the death of me. My mostly liquid brain can't comprehend both logic programming and lisp syntax at the same time. I've had lectures by Martin and Flach, it was pretty great we did fractals in it and stuff, it was the most fun programming I've done at uni and they were really good at explaining it as you'd expect doxxing my uni a bit there it's definitely very academia Private Speech fucked around with this message at 23:04 on Feb 21, 2019 |
# ? Feb 21, 2019 22:53 |
|
uggghhhhh FileAccess (in file.py) needs to know about and import abstract base class Item (in items.py), of which exists multiple subclasses (in a.py, b.py, c.py). The application only knows about the base class, which instantiates the subclasses based on various conditions, so items.py imports a/b/c.py. One of the subclasses wants to use FileAccess. how the gently caress do i make python not yell at me for circular imports? Carthag Tuek fucked around with this message at 23:32 on Feb 21, 2019 |
# ? Feb 21, 2019 23:26 |
|
so Travis got acquired last month and their new owners promptly fired all senior engineers recommendations for another free-for-open-source ci platform wanted! I just want to build some Java application from a github repo that does a bit of docker for integration testing (not sure how that would work if the build itself takes place within a container, i mean) any suggestions?
|
# ? Feb 21, 2019 23:34 |
|
circleci gitlab and azure devops all have free tier ci pipelines. I use and like azure devops.
|
# ? Feb 21, 2019 23:38 |
|
yes but which one can you actively recommend as being somewhat easy to setup/manage and not-flaky
|
# ? Feb 21, 2019 23:39 |
|
Krankenstyle posted:uggghhhhh you unfuck your circular structure generally you'd split up your abstract base class so that it doesn't need to know about the implementations, and you create a separate items_factory that instantiates the appropriate implementation. then your app can depend on the factory, the factory can depend on the impls, an impl can depend on fileaccess, and fileaccess can depend on the abstract base item, with no circular dependencies at all.
|
# ? Feb 21, 2019 23:40 |
|
The Fool posted:I use and like azure devops.
|
# ? Feb 21, 2019 23:40 |
|
DONT THREAD ON ME posted:also please someone tell me how to distribute a transaction you got two options, RAMP and sagas. RAMP is safer but harder to implement and not always possible. Sagas are easy to implement but a pain in the rear end
|
# ? Feb 21, 2019 23:42 |
|
Jabor posted:you unfuck your circular structure oh yea a factory, thx ill try it out too much enterprise java has made me shun a lot of patterns lol
|
# ? Feb 21, 2019 23:43 |
|
Krankenstyle posted:uggghhhhh what jabor said but a lazy (hah) way is to defer your imports to the functions that use them so e.g. a.py doesn't get loaded until Item needs to make an A
|
# ? Feb 21, 2019 23:47 |
|
suffix posted:what jabor said but a lazy (hah) way is to defer your imports to the functions that use them so e.g. a.py doesn't get loaded until Item needs to make an A it looks ugly to me and i dont like it but thx
|
# ? Feb 21, 2019 23:50 |
|
the talent deficit posted:you got two options, RAMP and sagas. RAMP is safer but harder to implement and not always possible. Sagas are easy to implement but a pain in the rear end cool thanks. i've heard of sagas but havent read into it because it sounds like something from the javascript ecosystem
|
# ? Feb 22, 2019 00:07 |
|
Private Speech posted:I've had lectures by Martin and Flach, it was pretty great we did fractals in it and stuff, it was the most fun programming I've done at uni and they were really good at explaining it as you'd expect I think the thing tripping me up hardest is that there is effectively no information about it out in the wild. I think I prefer it to plain prolog but plain prolog has more info out and about, like I can pick up a fairly recent book without much hassle My kingdom for some readings
|
# ? Feb 22, 2019 00:15 |
|
Krankenstyle posted:it looks ugly to me and i dont like it you can also do an import guard by putting in an import-scope if i.e. code:
StackOF also offers this: code:
e: im not primarily a python dev I just maintain a few python things at work so there might be a more elegant solution Private Speech fucked around with this message at 00:24 on Feb 22, 2019 |
# ? Feb 22, 2019 00:19 |
|
Sagacity posted:yes but which one can you actively recommend as being somewhat easy to setup/manage and not-flaky i've used circle and am fairly happy with it. it has an absurd enterprise pricing structure if you want anything but the most basic $50/mo/runner, but at work that suits our needs fine its dsl is certainly better than fiddling with jenkins uis
|
# ? Feb 22, 2019 00:23 |
|
Private Speech posted:but honestly it's better to just break the program up more in my experience the opposite is easier: just merge the circular stuff back to a single module
|
# ? Feb 22, 2019 01:21 |
|
terrible programmer question: i'm trying to make a browser extension that alters tweets when you browse twitter. the tutorial i'm looking at does it via jquery: $('.tweet-text').each(function(index){ ... but when i inspect the html in firefox i see poo poo like: <span class="rn-13yce4e rn-fnigne rn-ndvcnb rn-gxnn5r rn-deolkf... but when i do the same in chrome i see: <p class="TweetTextSize TweetTextSize--normal js-tweet-text tweet-text squished" lang="en" ... am i falling afoul of some kind of security/obfuscation mechanism in ff? is it my ublock somehow?? it can't be minimisation right, they're not any shorter
|
# ? Feb 22, 2019 02:09 |
|
Could be browser specific shims? e: nevermind that really doesnt make sense. e2: e3: both my chrome and firefox look weird. it's a react thing as far as i know. DONT THREAD ON ME fucked around with this message at 02:44 on Feb 22, 2019 |
# ? Feb 22, 2019 02:38 |
|
Symbolic Butt posted:in my experience the opposite is easier: just merge the circular stuff back to a single module true but my files are huge enough as it is :p anyway i got it working with some more splitting of files Carthag Tuek fucked around with this message at 07:33 on Feb 22, 2019 |
# ? Feb 22, 2019 07:27 |
|
me at my job: writing the same react app everyone and their mother has made 300 times no biggie me writing code for fun: oh poo poo someone else mentioned working on a similar crate in a blog post one time, better cancel my project and think of something else instead
|
# ? Feb 22, 2019 09:23 |
|
Me at my job: sure the code's written but we need to talk about end to end test scenarios and our rollout plan. Also what about monitoring and alerting? Me writing code for fun: eh it mostly works I'm bored now *moves on to different dumbass idea never finishing a single hobby project* gonadic io fucked around with this message at 09:38 on Feb 22, 2019 |
# ? Feb 22, 2019 09:31 |
|
update: instead of writing my own lua I went outside and played with a dog, and I do not regret this decision
|
# ? Feb 22, 2019 10:46 |
|
ctps: looks like azure's hosed in europe in some way so none of my deploys work and i'm trying to get a release done by the end of the week
|
# ? Feb 22, 2019 10:53 |
|
Chalks posted:ctps: looks like azure's hosed in europe in some way so none of my deploys work and i'm trying to get a release done by the end of the week end of the week in terms of software should never be after Thursday
|
# ? Feb 22, 2019 10:57 |
|
Soricidus posted:update: instead of writing my own lua I went outside and played with a dog, and I do not regret this decision good call
|
# ? Feb 22, 2019 10:58 |
|
DONT THREAD ON ME posted:also please someone tell me how to distribute a transaction put it on a floppy disk with a shareware license
|
# ? Feb 22, 2019 11:05 |
|
gonadic io posted:i've used circle and am fairly happy with it. it has an absurd enterprise pricing structure if you want anything but the most basic $50/mo/runner, but at work that suits our needs fine Jenkins pipeline dsl stuff isn’t so bad, except for the fact it’s in fuckin groovy
|
# ? Feb 22, 2019 11:12 |
|
DONT THREAD ON ME posted:also please someone tell me how to distribute a transaction SQL code:
|
# ? Feb 22, 2019 11:18 |
|
say i have a project that is licensed under Creative Commons Attribution 4.0 (CC-BY-4.0) can i take some functions from the below file and put in a file in my project (with a comment at the top explaining origin, etc)...? its under Apache License 2.0 https://github.com/tmbdev/ocropy/blob/master/ocropus-gpageseg
|
# ? Feb 22, 2019 12:28 |
|
|
# ? Apr 26, 2024 14:50 |
|
Krankenstyle posted:say i have a project that is licensed under Creative Commons Attribution 4.0 (CC-BY-4.0) I think you'd still need to include the Apache 2.0 licence in your release https://tldrlegal.com/license/apache-license-2.0-(apache-2.0) That and a NOTICE file. I'd say what you were doing would be creating a derivative work. I think personally I would take the functions I wanted package them into one file and include that in whatever I was doing rather than embedding them straight into other code. Just to keep it clear.
|
# ? Feb 22, 2019 12:36 |