|
Because I'm not sure if I'm reading maths homework or if I'm accidentally opening a demon gate from hell.
I recently came across this formula (scribbled on an ancient scroll and only readable by full moon):
F(x) = P(X <= x) = Σ P(X = y) = Σ P(X = y) + P(X = x) = F(x - 1) + P(X = x)
y<=x y<=x-1 The worst part is they continue with "of course this makes perfect sense."
I've seen worse, but I'm afraid my computer will spontaneously combust if I try to type it (for which I don't have the time in this short, mortal life).
This is why I can't have good grades
|
|
|
|
|
Ok, let's see...
F(x) = P(X, which is <= x)
P(X) = The sum of P(y), for all y <= x... Wait...
Yeah, this is why I always hated all of those advanced math courses...
|
|
|
|
|
Ian Shlasko wrote: advanced math courses This is first year...
|
|
|
|
|
Well it's still gibberish...
I mean, I see what it's saying... It's just saying it in a silly way...
F(x) is the sum of P(1)..P(x)
Therefore, F(x) = F(x-1) + P(x)
It's defining F(x) recursively...
I just hate how they reduce every variable to one letter, and use uppercase AND lowercase as separate values... It's just too hard to read.
|
|
|
|
|
Ian Shlasko wrote: I just hate how they reduce every variable to one letter Because it doesn't really matter what the variable is/means?
And there's a lot more I hate about maths!
|
|
|
|
|
First year is advanced enough
|
|
|
|
|
47
If it's not broken, fix it until it is
|
|
|
|
|
I think you've failed your math test too...
|
|
|
|
|
You forgot to carry the number you first thought of minus the temperature in Kelvin!
|
|
|
|
|
47 : The universal answer + an upvote !
|
|
|
|
|
I thought it was 42? do I need to head back to school after all this time?
|
|
|
|
|
Sander Rossel wrote: The worst part is they continue with "of course this makes perfect sense." Dunno.
Computer says "syntax error".
Guess computer says no.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Eddy Vluggen wrote: Guess computer says no. I concur.
|
|
|
|
|
Quite straightforward, without bragging.
This is a proof that F(x) depends on F(x-1), so you have arithmetic progression. Depending on how complex F(x) is, you could get a good evaluation of any F(x) knowing F(0) or F(1), and use the general formula for calculating the arithmteic progression.
|
|
|
|
|
I almost understood what you said and I'm also pretty sure that's exactly what it does.
It doesn't prove anything to me though (well, it proves that I'm not very good at math) /
|
|
|
|
|
Looks like P(x=y) is the probability of x being equal to y - i.e. a probability distribution. F(x) is the corresponding cumulative probability:
F(x) is defined as the P(robability) of X <= x, and considered equal to the sum of Probabilities of all values y that are <= x - which implies the range of x is limited to whole numbers.
The remainder is a transformation to a recursive function definition
F(x) = F(x-1) + P(X=x)
Easy as eating pancakes.
|
|
|
|
|
peterchen wrote: Easy as eating pancakes.
F(I'm hungry) = Σ > 0
pancakes Now that's something I can understand!
You're right about everything but the pancakes though.
|
|
|
|
|
So, after last week's post about the number of files created by VS when you start a new MVC project, I installed ASP.NET MVC Boilerplate [^] to see if it might be of use.
Anyway, selected "ASP.NET MVC6 (Beta 7) Boilerplate (Also Beta)" and clicked OK, taking all defaults offered.
Incredibly this left me with a folder structure that comprises 4,665 folders and 19,566 files for a web application that is 3 pages and does nothing!
I know we no longer worry about "object bloat" and everyone has massive disks (no laughing ) but surely that is just an unmanagable mess of crap.
A vanilla MVC app in VS2013 yields 142 files over 71 folders.
I suppose we'll have to get used to it.
|
|
|
|
|
R. Giskard Reventlov wrote: I suppose we'll have to get used to it. Or come up with something better
I can build a page that does nothing using plain HTML.
Use what is appropriate to solve the problem. Not more, not less.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Eddy Vluggen wrote: I can build a page that does nothing using plain HTML.
Eddy Vluggen wrote: Use what is appropriate to solve the problem. Not more, not less.
I completely agree. However, out of the box, VS2015 is adding unnecessary complexity and making it harder to manage what should be a simple part of the process: VS2014 deposits around 10% of the files that VS2015 does for a similar action. I have my own "projects" that I use as a starting point and thay have any cruft removed. That job just got much harder!
|
|
|
|
|
Alternative?[^]
Seriously though, when I just want to test some stuff or write out some simple HTML or JavaScript I prefer a simple text editor (with some plugins installed).
I also recommend anyone who starts web development to use Notepad++ until they're familiar with HTML, JavaScript and some simple back-end with PHP or Node.js (so we can stick with Notepad++) and only then move to Visual Studio and C#.
The crap Visual Studio generates is insane... You get Knockout, jQuery, jQuery Validation, Antlr, and who knows what BY DEFAULT!
I don't even know what half of that stuff is and half of the time (if not more) I won't even need it!
We need the web to be more like a Console app. All you get is Program.cs, which is nice
|
|
|
|
|
Yup, use NotePad++ a lot - great tool. However, if you are in a team that use VS/TFS then you really don't have much choice about how it all works. As I said, I keep minimal black-box projects ready to go that have a tiny footprint compared to the default that VS emits. However, bear in mind that there are a large number of developers that just want to create a project in the IDE and get on with it.
Still, thought it worth making the point about the spaghetti of files and folders that the new version creates.
|
|
|
|
|
R. Giskard Reventlov wrote: bear in mind that there are a large number of developers that just want to create a project in the IDE and get on with it The problem I have with that, especially for beginners, is that it obfuscates what's really happening.
Developers think jQuery equals JavaScript and that MVC is something Microsoft invented.
Doing a little 'vanilla' Node.js or PHP (with XAMPP, for example) really opens your eyes.
Of course a lot is still abstracted away, but at least an AJAX call is more (or less?) than a method (with nicely parsed/typed parameters) on a Controller.
|
|
|
|
|
I don't disagree with anything you see. However, the reality for the vast majority of developers is that you pitch up at your latest contract/role and it's "here's VS and TFS, get on with it". The developer may know that he/she could have cut the bloat had they started the project but that isn't always a choice.
Perhaps a good article for someone would be to show how to create and use a minimal footprint project template. And by someone, of course, I mean you!
|
|
|
|
|
R. Giskard Reventlov wrote: you pitch up at your latest contract/role and it's "here's VS and TFS, get on with it" Yep, so do I. It's easiest by far.
I cut some obvious bloat, but leave most in place.
But at least I know what they are, kind of what's going on, etc.
R. Giskard Reventlov wrote: Perhaps a good article for someone would be to show how to create and use a minimal footprint project template. And by someone, of course, I mean you! That's not a bad idea! Unfortunately I don't have a lot of time, homework and such (see my message above)
Maybe, someday...
|
|
|
|