|
c# is fine. it would be better if it had a borrow checker. rust to wasm is a more compelling jabbascrip replacement
|
# ? May 10, 2019 18:27 |
|
|
# ? Jan 13, 2025 10:37 |
|
i just made a lovely little reflection function that sets all empty strings to be null recursively on the passed object i feel mildly accomplished but at the same time i think this is probably not a good idea in conclusion terrible programming is a profession of contrasts
|
# ? May 10, 2019 21:12 |
|
Bloody posted:c# is fine. it would be better if it had a borrow checker. rust to wasm is a more compelling jabbascrip replacement what is the point of a borrow checker in a garbage collected language?
|
# ? May 10, 2019 21:42 |
|
aardvaard posted:what is the point of a borrow checker in a garbage collected language? you can prevent two different things from having a mutable reference to the same thing
|
# ? May 10, 2019 21:43 |
|
NihilCredo posted:what do you guys call a class that has no state and no constructor arguments, just a bundle of pure functions that exists only because your language has poor support for static classes? if its just a bunch of static methods grouped together its not a class it's just a namespace
|
# ? May 10, 2019 22:07 |
|
necrotic posted:good luck with that. not everyone uses .net despite your strongest wishes. even the people who use .net don't want it running in the browser
|
# ? May 10, 2019 22:08 |
|
akadajet posted:even the people who use .net don't want it running in the browser it has compatibility with javascript functions - i can already imagine the horrifying code we'll end up with
|
# ? May 10, 2019 22:14 |
|
Shaggar posted:typescript hasn't replaced javascript because javascript is the only browser language. if javascript is no longer the only browser language then you no longer need javascript
|
# ? May 10, 2019 23:03 |
|
right. its not good
|
# ? May 10, 2019 23:59 |
|
CRIP EATIN BREAD posted:you can prevent two different things from having a mutable reference to the same thing ya basically this and the resulting thread safety guarantees
|
# ? May 11, 2019 00:03 |
|
This must win a prize, almost a month debugging a memory leak in a C++ app running in Docker in Amazon ECS getting hit by 3 TCPings and 3 HTTPS requests per second. Test through hundreds of SSL tweaks and ASIO changes and quirks. Add on TCmalloc based profiling and find out it's not the app at all it's AWS blowing farts over Docker HEALTHCHECK feature that tested fine in a VM outside AWS.
|
# ? May 11, 2019 02:05 |
|
c tp s: our app has a status endpoint that basically serves no purpose, because the only time it should actually return anything other than a 200 OK is if the underlying infrastructure collapses spectacularly and would likely be unable to return a well-formed error response anyway. it reports if it has lost db connectivity in the body, but doesn't consider this a failure condition because it can still generally serve most requests from a local cache. if rbac is enabled, requests to the service that the status endpoint lives on are pre-checked to ensure the requester has the correct permissions to access an endpoint. this check requires a database request. if that database request fails, the pre-check phase will immediately fail the request and return a 500. a bug in our health monitoring system causes it to open LOTS of db connections in some scenarios, enough that typical postgres installations will start rejecting new connections. as one might expect, this causes the failure above, which is real good if you use the status endpoint for kubernetes liveness checks like we suggest. nothing like restarting every pod in your cluster simultaneously for no good reason.
|
# ? May 11, 2019 02:45 |
|
DONT THREAD ON ME posted:huh blazor/signalR is interesting. anything like it in a good ecosystem? no, because there are no good ecosystems.
|
# ? May 11, 2019 02:57 |
|
HoboMan posted:i just made a lovely little reflection function that sets all empty strings to be null recursively on the passed object lol same when i do that
|
# ? May 11, 2019 04:45 |
|
someone compile Scheme or Common Lisp to wasm already
|
# ? May 11, 2019 07:02 |
|
eschaton posted:someone compile Scheme or Common Lisp to wasm already https://github.com/google/schism
|
# ? May 11, 2019 08:14 |
|
Fiedler posted:no, because there are no good ecosystems. there are no good ecosystems, but most are considerably less bad than javascript
|
# ? May 11, 2019 08:59 |
|
there are only two kinds of languages: the ones people complain about, the ones nobody uses, and sql
|
# ? May 11, 2019 11:21 |
|
I've got a problem to solve at work. Basically we have a trees of objects, objects can appear multiple times in the tree, with the same children of course. The leaf nodes are only visible to some users, and you can only see a node if there's a visible leaf under it. So what we did before was work out the visible leaves and build up the tree from the bottom up, associating the list of visible leaves with their nodes, those nodes with their parents etc. Each node ending up with a list of its children. So this was all fine and working. Until a business analyst appeared and said the order of the nodes under a parent matters, previously it was alphabetical so no problem, we can simply order the lists of children. Now the order of the nodes is based on a property of the edges, as nodes are not unique we can't just put the sort order on the child as it can be different in different places. So now I have to rewrite how we build the tree in the first place so we add the nodes in the right order. Or build the tree as we are and go back over it at the end resorting all the nodes based on the edges. This tree is critical to all of our apps. Our business analysts are really pushing for this change based on the fact its just changing one sort order for another, surely a half hour change no problem. Our testers on the other hand are saying its days of test effort to do the regression on the change as its such a key part of the system. My problem are business analysts.
|
# ? May 11, 2019 11:47 |
|
NihilCredo posted:there are only two kinds of languages: the ones people complain about, the ones nobody uses, and sql E: it is a ternary logic joke Doom Mathematic fucked around with this message at 15:21 on Aug 18, 2019 |
# ? May 11, 2019 11:48 |
|
Aramoro posted:I've got a problem to solve at work. Basically we have a trees of objects, objects can appear multiple times in the tree, with the same children of course. The leaf nodes are only visible to some users, and you can only see a node if there's a visible leaf under it. So what we did before was work out the visible leaves and build up the tree from the bottom up, associating the list of visible leaves with their nodes, those nodes with their parents etc. Each node ending up with a list of its children. So this was all fine and working. Until a business analyst appeared and said the order of the nodes under a parent matters, previously it was alphabetical so no problem, we can simply order the lists of children. Now the order of the nodes is based on a property of the edges, as nodes are not unique we can't just put the sort order on the child as it can be different in different places. it sounds like what you've got isn't really a "tree", it's just a dag presumably you've given an estimate that's longer than half an hour, so your real problem is that someone's ignoring the eng estimate just because they want it to be faster.
|
# ? May 11, 2019 12:58 |
|
business analyst sounds like such a fake job
|
# ? May 11, 2019 13:18 |
|
Aramoro posted:My problem are business analysts. idk copy* tree and then remove inaccessible nodes from bottom up? * if u have copy-on-write i guess
|
# ? May 11, 2019 13:38 |
|
Doing a dfs or fold or whatever on a rose tree is hardly an unsolved problem in computer science, but 30 minutes is pretty short to make changes to implement and properly test this in your application.
mystes fucked around with this message at 13:42 on May 11, 2019 |
# ? May 11, 2019 13:39 |
|
political advice: don't let non-techies run all over techies with something as handwavy as 'surely it's a half-hour of work'. they don't know your project better than you do (unless they do - happens once in a while - in which case ignore this advice and go pester them for help) put it in writing and CC everyone that you estimate this will take X time write one or two sentences at the most outlining why it's not just a matter of changing .Sort(name) to .Sort(edge.Property) this puts the ball in their court to justify their demands, and your rear end is minimally covered. next move depends on what they respond. if they respond with a blank 'look, we really need this by tuesday. try to do your best', they've effectively given up. you go ahead and take X time.
|
# ? May 11, 2019 14:30 |
|
that is good political advice. one of the underlying issues is that managers spend all day negotiating and developers don’t. so the manager brings their (in this case, worthless) negotiating skills to bear and you will be tempted to fold (“just let me get to work already”). obviously it’s not a negotiation, there’s just “how long it’ll take”, but good luck convincing your manager. (seriously, good luck; if you can pull it off, your life just got easier)
|
# ? May 11, 2019 15:07 |
|
AggressivelyStupid posted:business analyst sounds like such a fake job can confirm. It's just writing down what people tell you or, if you're a "senior" one, arguing with them about what they told you to write then writing it anyway but telling the dev team "ignore this". i started as a BA and branched out into sql via running countless reports, then into disgraceful access databases for reports, then proper databases, then proper poo poo for managing the data in them somewhere along the line I became the defacto application architect, project manager and dev lead for a subset of applications which is pretty shameful tbqh
|
# ? May 11, 2019 15:47 |
|
NihilCredo posted:there are only two kinds of languages: the ones people complain about, the ones nobody uses, and sql i want to live in a world where people just use sql rather than complaining endlessly about it and building impossibly awful things just to avoid having to learn sql
|
# ? May 11, 2019 16:48 |
|
sql is so good
|
# ? May 11, 2019 16:48 |
|
Shaggar posted:sql is so good it's the cause of, and the solution to all of our problems
|
# ? May 11, 2019 16:55 |
|
delete index yospos_shaggar lol;
|
# ? May 11, 2019 17:15 |
|
Krankenstyle posted:delete index yospos_shaggar lol; select * from Good_posts where username=@its_you command returned zero results
|
# ? May 11, 2019 18:10 |
|
Powerful Two-Hander posted:select * from Good_posts where username=@its_you
|
# ? May 11, 2019 19:21 |
|
Powerful Two-Hander posted:select * from Good_posts where username=@its_you Cannot find the object "Good_posts" because it does not exist or you do not have permissions
|
# ? May 11, 2019 19:27 |
|
Powerful Two-Hander posted:select * from Good_posts where username=@its_you nice data normalization for a forum where usernames are mutable, comrade two-hander ... or should i say radium?
|
# ? May 11, 2019 19:38 |
|
Soricidus posted:nice data normalization for a forum where usernames are mutable, comrade two-hander ... or should i say radium? it’s eventually consistently funny
|
# ? May 11, 2019 20:09 |
|
Shaggar posted:sql is so good it really is, but people just don't seem to get it for some reason. i saw some dumbass complaining on twitter the other day that they were disappointed there was no ~innovation~ in database query languages so here we are with 1970's sql, ugh like, have you maybe considered that the reason it's so ubiquitous is that it loving works, you goddamned nerdlord?
|
# ? May 11, 2019 20:29 |
|
Powerful Two-Hander posted:somewhere along the line I became the defacto application architect, project manager and dev lead for a subset of applications which is pretty shameful tbqh it's only shameful if your figgies have not also substantially increased along the way
|
# ? May 11, 2019 20:52 |
|
TheFluff posted:like, have you maybe considered that the reason it's so ubiquitous is that it loving works, you goddamned nerdlord? if you're so sure quality is proportional to quantity, please explain why i have a non-zero post count
|
# ? May 11, 2019 20:59 |
|
|
# ? Jan 13, 2025 10:37 |
|
Soricidus posted:if you're so sure quality is proportional to quantity, please explain why i have a non-zero post count no reads blocking your commits
|
# ? May 11, 2019 21:06 |