|
Since the functional programming thread is dead and archived, did anyone here go from Haskell to Purescript? They seem similar enough that it will be easy but I'm a little woried about the lack of laziness biting me.
|
# ¿ Apr 4, 2018 19:05 |
|
|
# ¿ May 14, 2024 14:36 |
|
I don't work in IT/code much, but is every IT job as much about things other than coding as it seems to an outsider? Like ensuring someone else follows a style guide, making sure to use the VCS the right way, project management stuff, setting up a framework for testing of code that works well, etc. Maybe this is just bias because the above are what people usually argue/complain about, but I'm curious about what is typical/if it depends a lot on the job, etc.
|
# ¿ Oct 3, 2018 13:59 |
|
AgentCow007 posted:What is the point of the compsci course "automata"? Also it's a compsci course, not a programming course, so it need not have any direct bearing on programming you do. Similarly, the Halting Problem is very significant in compsci but isn't going to affect programming in a direct way, etc. dirby fucked around with this message at 15:43 on Dec 22, 2018 |
# ¿ Dec 22, 2018 15:40 |
|
There are 10,000 accounts each of which are "up" or "down" on any given day, and I have charts of potential uptimes and definite downtimes. For example, maybe account 7 is up between days 3 and 6 and between 12 and 18 except for 13-15 and 17-17 (so it was actually only up on 3,4,5,6,12,16,18). I want to extract info like "how many accounts were up on day 5?" I think I can write some ugly code to get at this, but is there a right way to do this sort of thing? (Ideally in Excel but I'll take whatever) dirby fucked around with this message at 17:20 on Jun 30, 2019 |
# ¿ Jun 30, 2019 17:17 |
|
ultrafilter posted:How you solve this depends a lot on how you store the data. The easiest way is just to keep a record of the state of each account on each day, in which case it's just a simple SQL query. Thanks. Can I easily build an SQL-queryable database from the tables I have? Maybe with Microsoft Access or something? I'm imagining something like filling in the ranges (so "3-6" becomes "3,4,5,6"), deleting the down days up from the up lists, and then magically turning those lists of days into a database (which I haven't really worked with before, but I think the queries I'd want would be simple in SQL)
|
# ¿ Jun 30, 2019 17:33 |
|
mystes posted:What format is the data in now, exactly? I have two csvs with three columns each: a column of account number, a column of the first date of a range, and a column of the last date of the range. One csv is for the potential up days and the other is for the down days. Account numbers are often repeated if there are multiple ranges for that account. I think I could easily (outside of excel) make a single sheet with uneven rows like "account number, first up date, second up date, third up date,..." for making a database. Edit: Mathematica's Dataset command might be able to get me the database I want. dirby fucked around with this message at 18:18 on Jun 30, 2019 |
# ¿ Jun 30, 2019 17:57 |
|
Khorne posted:What are ways other people get through this phase of learning something that requires creativity or great understanding? Is there an actual term for this part of the learning process? It seems very hard to penetrate "I don't know what to do" without giving too much away and the entire point of the exercise being missed. It sounds like don't have a clear systematic process for tackling hard problems, but you have a lot of experience so you can solve them anyway. This makes tutoring an uphill battle because you're might be trying to convey understanding as opposed to conveying the ways of thinking and working that are likely to lead to understanding. There's far more I could say than fits in a post, but here are a few concrete suggestions: 1. Make extra sure you're not asking something that's too hard for someone without relevant experience. 2. Have them write down (or type I guess) what they do know/understand that seems like it might be useful, as well as intermediate steps that might be useful, etc. 3. Explicitly call out and emphasize good habits like "what do we do when we don't remember the syntax?"
|
# ¿ Sep 16, 2019 10:08 |
|
redleader posted:monads are just the starting point on a long and nuanced journey though functional programming's 500,000 unique and subtly different mathematical objects. strap in. Diagrams like https://github.com/JordanMartinez/purescript-jordans-reference/blob/latestRelease/41-Ecosystem/Type-Classes/Type-Class-Relationships.svg have a ton.
|
# ¿ Dec 25, 2019 03:23 |
|
quote:composition like this helps avoid inheritance diamond-of-death situations
|
# ¿ Mar 7, 2020 23:43 |
|
Dominoes posted:edit: Does Haskell have any use cases it's especially suited to? Also, I'm sad the functional programming thread is dead.
|
# ¿ Jul 28, 2020 10:32 |
|
Tuxedo Gin posted:I'm one of the weird ones that wants to understand the ins and out of what he's having built but isn't really unable[sic] to build it on his own. Basically, it sounds like you both 1. want to be able to build it yourself and 2. don't want to be able to but just want to understand how it was built (like "here is a lecture on why I coded it this way for the requirement you had"?). Whatever you're looking for, it sounds like it'd be hideously expensive, quite possibly more expensive than, say, paying for a tutor (and a therapist?) for enough time to help you either get in a mindset where you can build it yourself or a position where you're more comfortable with just commissioning it or something.
|
# ¿ Mar 12, 2021 14:37 |
|
Tuxedo Gin posted:I'm not sure that apprehension/indecision about an important project warrants a dig at my mental health Since you referred to yourself as "an idiot", "lack[ing] motivation", and that you're looking for "patience and understanding" I thought that it might be worth at least considering a combination of finding the right person/resources externally and broadening options that could work for you internally. Like, if you can handle a tutor with 10% less understanding than you could before, that opens up X% more tutors as someone you could work with.
|
# ¿ Mar 12, 2021 20:03 |
|
nielsm posted:Yeah that's why my idea is you should be able to just save a workspace. You start the interactive REPL and import a bunch of modules, define some data and functions, and experiment with various ways to make something work. When you've got something useful, just save the workspace to a file which you can then reload to end up in the same environment again. Eventually it can then end up as a full, reusable module or similar.
|
# ¿ May 20, 2021 12:48 |
|
KillHour posted:Edit: It really looks like the blue and white (both tangents negative or both tangents positive) are always wrong and the cyan and magenta (one tangent negative and one positive) are correct.
|
# ¿ Apr 18, 2022 21:39 |
|
Mirconium posted:Hey, I just found this code snippet, and I have no idea what language this even is. Does this look familiar to anyone? Edit: It seems it may be Symbolic Lab Language which is build on top of Mathematica. quote:In one aspect, the scripting language is Symbolic Lab Language (SLL). dirby fucked around with this message at 04:00 on Jul 10, 2022 |
# ¿ Jul 10, 2022 03:58 |
|
Grip it and rip it posted:I'm trying to extract all of the comments from some .sql files, but I am not really familiar with SQL. I've looked around and seen a couple scripts that have been posted to pull comments out of files but they all seem to be written in SQL so I'm not 100% sure how they work. Do you know any regex? This is the sort of thing that Notepad++ or grep could help you do pretty quickly. Or if not, do you have experience with a programming language that could process text, like Python? (Or maybe you were looking for the Request a tiny app thread?)
|
# ¿ Jan 29, 2023 20:29 |
|
KillHour posted:Would it be that different if you had = to assign by reference and := to assign by value? No, not really. But it would lead to a lot of other design consequences, and it's those that I'm interested in. The actual behavior is partially discussed at What is the difference between Set and SetDelayed? on Mathematica StackExchange, though that doesn't do a good job at explaining the difference between things like x=y+3 and x:=y+3, etc.
|
# ¿ Nov 12, 2023 21:23 |
|
I wish I had a better way to access things for this, but I probably can't: On a website behind a login, there's a page with a gigantic table (let's say 50k rows after it all loads), I would like to automate the checking of checkboxes in certain rows. But I know the exact format of the HTML I'm looking for: e.g. the first td tag will have a checkbox made with an input tag and the rows I care about will have the seventh td with class "foo" and the data will be of the form "<a href ...>17</a>". Is there an easy way to script this, maybe with a browser extension or something? My criterion is so simple that any language should be fine.
|
# ¿ Jan 19, 2024 22:27 |
|
mystes posted:...
|
# ¿ Jan 19, 2024 22:58 |
|
|
# ¿ May 14, 2024 14:36 |
|
Jabor posted:how the heck do you say library But Boris Galerkin was just using "lieb" to suggest (the English pronunciation of) "lie"+"b", so that the vowel matches the one every English speaker has in "library".
|
# ¿ Apr 4, 2024 15:05 |