|
Plorkyeran posted:mutation testing is totally awesome, but something that only .1% of projects will have any use for. there's no point in using some fancy tool to find code which is insufficiently tested when you can just look at your code coverage report and see that 30% of your code is never run at all. it is incrediby useful as an object lesson to people when they start writing tests (or write garbage tests) and chase 100% coverage you get what you measure, and if you don't have a metric to fight a metric you'll get all sorts of weird brain justifications to make the numbers go up
|
# ? Jul 12, 2017 03:53 |
|
|
# ? May 20, 2024 20:21 |
|
Sapozhnik posted:well with react you just get trees of "components" and they can be either bits of logic or bits of view! or hey why not both! what framework is non-poo poo to you?
|
# ? Jul 12, 2017 04:41 |
|
the good thing about stored procedures is that they run on the database server. the bad thing about stored procedures is that they run on the database server
|
# ? Jul 12, 2017 05:21 |
|
fleshweasel posted:i thought that "view" was your render template, "controller" contains the methods that get called when clients make requests, and "model" is literally everything else. I do very simple kinds of parsing of URL query parameters in controller methods and otherwise delegate poo poo out to another layer. Let me tell you about epics bespoke webforms based platform
|
# ? Jul 12, 2017 05:43 |
Sapozhnik posted:could try d3js i guess no d3js or other web stuff, as i said
|
|
# ? Jul 12, 2017 06:16 |
|
carry on then posted:on swift 4, awful.app now stack overflows when entering the background due to core data and/or grmoustache someone in the apple programming thread said "I don't like to work on Core Data, it's always broken" and someone else was like "yeah I don't think Apple does either" sounds accurate to me
|
# ? Jul 12, 2017 06:24 |
|
also i installed openstep in vmware cause i was curious about it wow, it's... literally OS X except 20 years ago
|
# ? Jul 12, 2017 06:25 |
|
fleshweasel posted:i thought that "view" was your render template, "controller" contains the methods that get called when clients make requests, and "model" is literally everything else. I do very simple kinds of parsing of URL query parameters in controller methods and otherwise delegate poo poo out to another layer.
|
# ? Jul 12, 2017 06:43 |
coffee cup "musings" so, if i rewrite my python io thing into a generator (which it kinda is but it's my own hot take continuity, not something ive seen real people do elsewhere), i can then/before migrate everything to 3.5 or later, and use async/await/other asynchronous buzzwords to achieve multithreading, or make decent steps towards it?
|
|
# ? Jul 12, 2017 07:43 |
i just saw "top machine learning libraries for javascript"
|
|
# ? Jul 12, 2017 09:30 |
|
Blinkz0rz posted:i'm porting a piece of software we wrote in javascript to go as a proof of concept and it's not a great language to write in if you don't know the shape of your data until runtime languages that allow and whose standard libraries include heterogeneous maps (where keys can have different types of value) make dealing with this kind of stuff fairly straightforward if a language has ADTs you can get an equivalent effect with a bit more verbosity
|
# ? Jul 12, 2017 10:13 |
|
fleshweasel posted:I don't know how you can write a program that operates on data whose shape you know jack poo poo about unless it's serialization or tree traversal or something else that really doesn't care how many attributes there are on a particular node or whatever, it just slurps them all up. the software coordinates and layers properties from a bunch of different sources and serves an endpoint for archaius so we can tune our services on the fly. nothing gets evaled so we basically just assemble a list of source properties then recursively mash them all together in the right order. the contents of the data are inconsequential as long as thet can be serialized to json, hence the reason we did this in javascript originally. there are other internal bits that are simple to model as types but the data being served is almost entirely unknown. every attempt i've made to rewrite this in another language has started with modeling most of the rest of the system and then stuff falls apart when i have to wrestle the language into dealing with unknown and semi-unstructured data
|
# ? Jul 12, 2017 13:30 |
|
cinci zoo sniper posted:i just saw "top machine learning libraries for javascript" sometimes you gotta work close to the metal
|
# ? Jul 12, 2017 13:58 |
|
Blinkz0rz posted:nothing gets evaled so we basically just assemble a list of source properties then recursively mash them all together in the right order. the contents of the data are inconsequential as long as thet can be serialized to json, hence the reason we did this in javascript originally. List[A <: ToJson]
|
# ? Jul 12, 2017 14:19 |
|
gonadic io posted:List[A <: ToJson] we have merging rules that at least require us to know whether the value of a given key is another map and a "feature" that allows us to nest a given source's map at an arbitrary key in the final map.
|
# ? Jul 12, 2017 14:24 |
|
cinci zoo sniper posted:coffee cup "musings"
|
# ? Jul 12, 2017 14:46 |
|
JewKiller 3000 posted:the good thing about stored procedures is that they run on the database server. the bad thing about stored procedures is that they run on the database server any sql runs on the db server which is good because the sql server is good at running sql.
|
# ? Jul 12, 2017 14:49 |
|
Flat Daddy posted:what framework is non-poo poo to you? you almost certainly work with javascript way more than i do and yet your first reaction to me saying "$javascriptthing is poo poo" is to assume i'm comparing it to some totally extant not-poo poo javascript thing as for why there's logic in a web app in the first place, because web apis are not supposed to be rpcs for hooking up the back half of a specific application, they're supposed to be an organizational boundary for your data. this api serves multiple applications and they have very different data access patterns to each other. Sapozhnik fucked around with this message at 14:56 on Jul 12, 2017 |
# ? Jul 12, 2017 14:54 |
mystes posted:Not multithreading, no. can't i put each part in separate thread some way if i get the separation going? either way it would probably be slower than vectorised operations over array, since i would have to split into rows.
|
|
# ? Jul 12, 2017 15:08 |
|
Sapozhnik posted:you almost certainly work with javascript way more than i do and yet your first reaction to me saying "$javascriptthing is poo poo" is to assume i'm comparing it to some totally extant not-poo poo javascript thing that's the theory but then you start doing client side web "development" and then you realize the theory is stupid.
|
# ? Jul 12, 2017 15:12 |
|
the best way to do it is render serverside w/ the server talking to the api on behalf of the client. oauth makes that very easy
|
# ? Jul 12, 2017 15:13 |
|
cinci zoo sniper posted:can't i put each part in separate thread some way if i get the separation going? either way it would probably be slower than vectorised operations over array, since i would have to split into rows. in Python you get a single thread forever. multithreading does not exist also async/await is about concurrency, not parallelism
|
# ? Jul 12, 2017 15:17 |
Arcsech posted:in Python you get a single thread forever. multithreading does not exist i see your point about concurrency and i know that core python cant into cores, but i had assumed someone has figured out a cython style solution for that or something
|
|
# ? Jul 12, 2017 15:42 |
|
Sapozhnik posted:you almost certainly work with javascript way more than i do and yet your first reaction to me saying "$javascriptthing is poo poo" is to assume i'm comparing it to some totally extant not-poo poo javascript thing eh plenty of people do call react poo poo and have their own ideas about what is good. react may not be the best but what I'm used to are inherited angularjs and/or jquery projects and I'd love it if my chief complaint was just that logic and presentation were colocated. rather than, say, the app Is an unfollowable mess of api calls and 3rd party library callbacks manipulating global variables and dom, with no clear source of truth for values (like premature caching all over the place and storage in like dom attributes and poo poo) maybe vue or mobx or cyclejs etc would be slightly better to use but react is such a vast improvement over what I'm used to that I haven't cared to look e: im talking about react with redux btw. an all-react codebase does sound lovely to me Flat Daddy fucked around with this message at 15:55 on Jul 12, 2017 |
# ? Jul 12, 2017 15:53 |
|
Blinkz0rz posted:the software coordinates and layers properties from a bunch of different sources and serves an endpoint for archaius so we can tune our services on the fly. Typescript is pretty decent imo and if the data is basically just nested dictionaries of strings (?) you can use something like code:
|
# ? Jul 12, 2017 16:05 |
|
When I first learned React it mildly upset me when I realized that state wasn't actually immutable.
|
# ? Jul 12, 2017 16:06 |
|
Flat Daddy posted:eh plenty of people do call react poo poo and have their own ideas about what is good. i mean i'm still going to use it, i just feel like, you know, if this is the good framework (the single source of truth thing is actually a really good point you bring up) then god help anybody who has to work with something worse than that. what is your opinion of redux-saga btw i think it looks pretty rad
|
# ? Jul 12, 2017 16:09 |
|
cinci zoo sniper posted:question of the day: is there, in some language or framework, a genuinely good plotting library that is not a hosted solution of some sort? not ready to say it's genuinely good but plotly will take ggplot calls and poo poo out interactive html/js. it suits need for scatter plot where you can mouse over and see the data value. they want you to use hosted but it works standalone.
|
# ? Jul 12, 2017 16:11 |
|
Sapozhnik posted:i mean i'm still going to use it, i just feel like, you know, if this is the good framework (the single source of truth thing is actually a really good point you bring up) then god help anybody who has to work with something worse than that. it truly does get so much worse. maybe one of the reasons react isn't compelling to outsiders of the js world is that the reasons for it can't be illustrated with just TodoMVC or something. you have to work on giant piece of poo poo proprietary codebases with people who don't know what they're doing to truly understand all the need for over engineering. I use redux-saga pretty heavily and I love it. my best use case for it is wrapping this huge bloated 3rd party component I have to use. I use event channels to wrap its async initialization (it requires data from my server,which it uses in a call to a 3rd party api before it can be used) and to wrap the events that it fires while it's running. so I have a generator function that handles the entire lifecycle of the component as a synchronous-looking generator function that (1) waits for the user to navigate to the page where this component will be displayed (2) dispatches an event for the loading indicator (3) creates the initialization event channel (4) responds to the success/failure of initialization (5) on success, dispatch the loading done action (6) create the runtime event channel (7) forks the saga into two loops: (a) one that waits for 3rd party events and dispatches them to redux and (b) one that does poo poo to the component after certain redux actions its all pretty easy to read and follow, top to bottom. it manages to avoid both pyramid-looking callback hell as well as a need to jump around to more than one place in the codebase to understand the sequence. as far as the rest of the app is concerned its a nice black box where its just messages going in and out seemingly-synchronously.
|
# ? Jul 12, 2017 17:31 |
|
Chalks posted:Typescript is pretty decent imo and if the data is basically just nested dictionaries of strings (?) you can use something like gently caress i totally forgot typescript has union types
|
# ? Jul 12, 2017 22:50 |
|
cinci zoo sniper posted:i see your point about concurrency and i know that core python cant into cores, but i had assumed someone has figured out a cython style solution for that or something
|
# ? Jul 12, 2017 23:21 |
|
gently caress yes, we are fully featured: DONT THREAD ON ME fucked around with this message at 01:33 on Jul 13, 2017 |
# ? Jul 13, 2017 01:29 |
|
wait a minute is that a serifed font? in the terminal??????
|
# ? Jul 13, 2017 01:32 |
|
god what happened to you man
|
# ? Jul 13, 2017 01:32 |
|
yeah the terminal on my personal laptop is all hosed up atm. that's not how I usually roll. i was just trying things out.
|
# ? Jul 13, 2017 01:35 |
|
MALE SHOEGAZE posted:gently caress yes, we are fully featured:
|
# ? Jul 13, 2017 01:43 |
|
fleshweasel posted:i thought that "view" was your render template, "controller" contains the methods that get called when clients make requests, and "model" is literally everything else. I do very simple kinds of parsing of URL query parameters in controller methods and otherwise delegate poo poo out to another layer. this is rails's thing that they called mvc for some reason despite it not being mvc at all, thus forever making it impossible to ever coherently talk about mvc
|
# ? Jul 13, 2017 02:19 |
|
you should switch to Cathode for all your terminal emulation needs
|
# ? Jul 13, 2017 02:57 |
|
i haven't written any real java code in a while and i decided to use java 8 streams this time and boy are they cool and good
|
# ? Jul 13, 2017 03:25 |
|
|
# ? May 20, 2024 20:21 |
|
JewKiller 3000 posted:i haven't written any real java code in a while and i decided to use java 8 streams this time and boy are they cool and good so much nicer than little anonymous classes everywhere but most of what i do has to run on java 7. someday.
|
# ? Jul 13, 2017 03:28 |