|
comedy option: https://azure.microsoft.com/en-in/documentation/articles/virtual-machines-linux-tutorial/ https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-endorsed-distributions/ a disturbing lack of gentoo
|
# ¿ May 25, 2015 20:24 |
|
|
# ¿ May 10, 2024 00:03 |
|
pram posted:the only acceptable options in this thread are hilariously useless functional languages or full retard on the microsoft stack *softly whispering in your ear* play fsharp my lord
|
# ¿ May 26, 2015 00:02 |
|
i was joking everybody's moved on to fstar already
|
# ¿ May 26, 2015 00:10 |
|
Luigi Thirty posted:i have dyslexia but with numbers so gently caress math the deeper you get into maths the less numbers there are if it's any help
|
# ¿ May 26, 2015 21:12 |
|
Space Whale posted:Just imagine the elegance of our pissing matches though. http://www.yummymath.com/wp-content/uploads/Parabolic-pee.pdf
|
# ¿ May 30, 2015 20:30 |
|
fleshweasel posted:also, haven't seen anyone bitch about why += is used to add handlers to an event in .NET. it feels like one place where for whatever reason they went with these += and -= operators instead of AddHandler and RemoveHandler. I don't care myself and I think it's completely clear when I read it. VBnet uses AddHandler and RemoveHandler though in practice not really, you'll almost always use the "handles" syntax which is way better code:
NihilCredo fucked around with this message at 19:51 on Jun 26, 2015 |
# ¿ Jun 26, 2015 19:49 |
|
still waiting for the obligatory remote worker / freelancer to go "lol what are these 'clothes' you speak of "
|
# ¿ Jun 27, 2015 23:51 |
|
sarehu posted:This is how you do it in Lisp: gesundheit!
|
# ¿ Jul 6, 2015 20:44 |
|
Necc0 posted:thread title
|
# ¿ Jul 15, 2015 22:49 |
|
soy posted:my first real code merged and went into production today I'm so happy quote:today haha a customer will call six weeks from now saying "my button used to be SQUARE but is now ROUNDED, I cannot possibly work like this, I'm suing you all for damages if you dont fix it NOW" and the money wranglers will fire off a very serious, concerned email "we can't have customers upset, developers please get on the ball" which they cc: to all management
|
# ¿ Jul 18, 2015 18:25 |
|
Shaggar posted:pwnt. next time use Path.GetTempFilename() or you can do this and let windows do all the work code:
|
# ¿ Jul 21, 2015 22:45 |
|
Luigi Thirty posted:I read an article about how c# is dying do I have to learn a hipster JavaScript framework now!? just hug your nearest transpiler like linus's blanket
|
# ¿ Aug 2, 2015 14:51 |
|
CPColin posted:A good indicator that somebody is a particularly bad programmer is when he or she doesn't think to use programming to solve a repetitive task. I was in a graphics class once and we had to make an object in a washer shape. I used some sines and cosines and came up with a model whose polygon count was controlled by a constant. Then I got into the lab and saw everybody else's version. A few of them used graph paper and typed in the coordinates. A bunch more calculated the values correctly, but did it by hand, then typed them in. does "use programming" include "adding the keypress sequence for the task to a new bind in your .ahk file and then mashing it"
|
# ¿ Aug 13, 2015 16:23 |
|
I like writing straight SQL which is why I love FSharp.Data.SqlClient so goddamn much
|
# ¿ Aug 21, 2015 21:41 |
|
Vanadium posted:So hey anyway what's a good way to learn standard SQL without accidentally internalizing unportable bits? Like I can find my way around a couple simple joins, nothing fancy, but I don't have any idea if things that appear simple to do to me are portable or even possible at all maybe you could start some project with SQLite? IIRC it's 99% standard SQL with only a few custom additions, like the pretty amusing likely() and unlikely() gonadic io posted:visual studio has basically no support for f# though, that really sucks is there anything I should add other than f# power tools and a bunch of templates? I like installing plugins NihilCredo fucked around with this message at 00:12 on Aug 22, 2015 |
# ¿ Aug 22, 2015 00:09 |
|
~Coxy posted:I know you probably mean Join but the other day I did literal arrays implement IEnumerable, so you can just write elementVariables.Union({"intzone"}). I did something awful like that once, I wanted to concat through Aggregate but couldn't guarantee the collection wouldn't be empty code:
|
# ¿ Aug 22, 2015 07:35 |
|
Shaggar posted:ive never used SQLite. sql server merge works pretty well tho i like a lot of stuff about sql server but merge is probably the worst and most awkward of all upsert implementations
|
# ¿ Aug 22, 2015 07:37 |
|
Shaggar posted:theres no really good way to do it, no. the problem is that Microsoft refuses to acknowledge the idea that the schema belongs to the database and not the application. this means there are no tools or extensions in sql server for doing schema versioning. you basically have to use external tools to manage schemas in source control and then make sure everyone puts their changes into source control after they enter them. its a lovely system but its the best you can do. Why doesn't a SSDT project satisfy your requirements? If you're worried about coworkers manually editing the schema, you just don't give them the credentials to do so and instead set up a publish action in the CI process, so that the only way for them to alter the schema is to commit a change to the Sql project.
|
# ¿ Aug 22, 2015 17:49 |
|
I'm messing around with Websharper at work whenever I can and it's retardedly nice, I'm going to be real sad when I find out its warts. "hmm wait actually I want to do this part client-side after all" *cut and paste code from [<Rpc>]Server.GetWidgets() to [<JavaScript>]Client.LoadWidgets(), everything still works*
|
# ¿ Aug 27, 2015 19:27 |
|
Random cool thing about XML: Visual Studio has a feature called "Paste XML as classes" which does exactly what it says on the label and it looks loving magical. Until one week later the deserialisation mysteriously starts failing, and you discover that the sample XML you pasted in had been generated in the first few days of the month, so VS made the "date" fields into UInt16s instead of UInt32s.
|
# ¿ Sep 1, 2015 12:44 |
|
fritz posted:what kind of months do you have that have more than 65536 days in them ddMMyy
|
# ¿ Sep 1, 2015 19:54 |
|
Soricidus posted:that's your problem right there. use the standard yyyymmdd format and you don't run into problems with variable lengths or leading zeroes or ambiguous parses or anything already do yyyy-MM-dd in my own stuff. that wasn't my xml.
|
# ¿ Sep 1, 2015 22:39 |
|
Symbolic Butt posted:it still surprises me how much of my ~~coding style~~ came from working with legacy fortran code same, except my coding style comes from doing the opposite of whatever the legacy code I hated did
|
# ¿ Sep 2, 2015 20:59 |
|
Shaggar posted:one of my favorite things about linq is that they use English terms for the method names instead of math terms. 'aggregate' is better than 'fold' for sure 'where' and 'filter' are both pretty clear but 'select' is way worse than 'map' imo. 'select' makes the sql-uninitiated think that it's a 'where' type of operation. 'map' isn't immediately intuitive but it's not misleading
|
# ¿ Sep 2, 2015 22:29 |
|
java layman here, any reason whycode:
code:
|
# ¿ Sep 3, 2015 19:38 |
|
i have a company hat and two company polo shirts, all are still shrinkwrapped and will stay so until I lose a bet or something
|
# ¿ Sep 5, 2015 01:50 |
|
tbh if i'm going to break license agreements in order to obtain a commercial piece of software, i feel much less hypocritical doing it the good old warez way
|
# ¿ Sep 5, 2015 13:14 |
|
eschaton posted:it's also not hard to follow a few simple rules that will lead to always writing correct code
|
# ¿ Sep 5, 2015 23:25 |
|
DaTroof posted:then again, if the test itself was up to me, it probably wouldn't exist DaTroof posted:our last 3 candidates for a junior dev position left the 4-question code test incomplete. None of them got through question #3, which asks them to implement a singleton in the language of their choice I dunno it seems to be the test is proving highly valuable
|
# ¿ Sep 11, 2015 19:11 |
|
when I start doing interviews my first question will be some extremely obscure trivia with a highly-ranked stack overflow answer. reject all candidates who can't Google it in under three minutes
|
# ¿ Sep 11, 2015 19:15 |
|
i may or may not have caused some meat to get labelled with the wrong data, including expiration date no worries though, it was wrong by a large and obvious amount, surely the consumers will have realizhahahahaha
|
# ¿ Sep 12, 2015 01:10 |
|
Bloody posted:I mostly don't use inheritance because it is frequently the wrong tool last Friday I wrote my first abstract class. it lasted around 25 minutes before i thought "wtf am I doing" and changed it to an interface and a couple of static methods
|
# ¿ Sep 16, 2015 00:36 |
|
CPColin posted:"Rule of three" is a pretty good rule. I go by the "Rule of two" because two copies of the same code have been more than enough to gently caress me over in the past.
|
# ¿ Sep 16, 2015 00:37 |
|
Bloody posted:today, i extracted an interface from a class because i wanted to stub in a mostly-the-same-but-different-enough version of the class over it without getting rid of the original one. it leaves most of the methods undefined and i don't care worksformewontfix if your language has first-class functions, just pass that poo poo like it's a fat blunt and you're a good friend
|
# ¿ Sep 16, 2015 01:03 |
|
pepito sanchez posted:i mean I think the typical Microsoft stack code monkey distrusts anything that doesn't come out of the box. Until recently you had to install a plugin to get F# in VS, and you still need the power tools for such amazing tech as "folders" when I told my boss we were going to do the next major project in f#, he had one single question: "are you sure Microsoft will still be supporting it 4-5 years from now?"
|
# ¿ Sep 16, 2015 07:57 |
|
gonadic io posted:I do. Gotchas in langs have easy solutions once you know what the problem is. That doesn't change the fact that it's nonobvious that there's a problem in the first place. "is slow" isn't a gotcha, is only rarely a problem, and it is easy to figure out when it is. defaulting to the safest and most versatile but least efficient data structure is the correct design choice. make it work, then make it right, then make it fast.
|
# ¿ Sep 17, 2015 12:31 |
|
fritz posted:it's used, yeah, like: 1) is it a time-critical section of code? 2) what's the order of magnitude of BIG_NUMBER? 3) what's the order of magnitude of the loop indexing?
|
# ¿ Sep 18, 2015 01:10 |
|
Funk In Shoe posted:delphi code so that is why a couple of my coworkers have this annoying habit of declaring all local variables at the start of a method instead of putting them in context. They both have a Delphi background, but I had never actually seen delphi so I never made the connection.
|
# ¿ Sep 18, 2015 20:02 |
|
I once had to code up a small feature while the meatpacking machine was on hold waiting for the critical software update. "meatpacking machine" isn't a metaphor. there was a burly butcher glaring at me as the code was compiling
|
# ¿ Sep 22, 2015 13:17 |
|
|
# ¿ May 10, 2024 00:03 |
|
"never update anything ever" is the dinosaur corpse that turns into the "so i just got hired at a new job and we have to write java 1.2 on nextstep " oil and gas ofc it's true that updating usually breaks poo poo. solution: use a VM or at least a disk image so you can go back if it breaks too much poo poo.
|
# ¿ Sep 22, 2015 18:01 |