CheckTheLines
Went through some bullshyt this weekend so made this app to keep busy.
It basically scrapes a few sites and then generates a score that is used to predict how likely a college football team is to cover the spread. Went 4-1 last week on the best bets.
very nice.
What api are you using?
I tried for hours to find an API that I could use and I couldn't find shyt. A lot of them have US restrictions or you have to pay a crazy amount per month.
I just went the old sketchy way and scraped all my data from other sources. I got a cron job that is running on Heroku so it will look for updates every hour or so.
Here are some examples of me scraping to find certain variables
$7since you are running cron jobs, then the server's running 24/7. how much a month are you shelling out for that heroku dyno?
gotta be diplomatic with it or else you are painting a target on your back
This is true and I've been in plenty of arguments with other developers. What I've found to shut them up real quick is to aka be diplomatic about about it...lol
1.) Find other companies that are using something similar to your method ( Leads and Managers love this )
2.) Find papers or websites that talk about something similar that you suggest( Industry best practices , white papers etc )
3.) Do it on your own and show them the benefits( I realize this is not always an option )
As programmers we have ego's and think our way is the best way, I've had plenty of code review meetings that were an hour long and we spent 45 minutes arguing over one piece of code. I've found that option #3 quickly eliminates this.
Well, before pursuing a game library like MonoGame you're going to have to familiarize yourself with the c# language first.
Here's a simple piece of code I wrote. Do you understand it?
Code:using System ; using System.Collections.Generic ; namespace ConsoleApplication { public class MyApp { static public int EXIT_SUCCESS = 0 ; static public int Main( string[] args ) { CCustomBoxBreh breh = new CCustomBoxBreh (); breh.DisplayHeader (); breh.MainMenu (); Console.ReadLine (); return EXIT_SUCCESS; } } public class CCustomBoxBreh { public CCustomBoxBreh() { } public void DisplayHeader() { Console.WriteLine ("**************************************"); Console.WriteLine ("**"); Console.WriteLine ("** CCustomBoxBreh v0.1"); Console.WriteLine ("**"); Console.WriteLine ("**************************************"); } public void MainMenu() { int nWidth = 0, nHeight = 0; int reply = 0; Console.WriteLine ("Want me to draw a box? (1=yea, 2=nah)"); reply = int.Parse (Console.ReadLine ()); switch (reply) { case 1: Console.WriteLine ("How wide?"); nWidth = int.Parse (Console.ReadLine ()); Console.WriteLine ("How tall?"); nHeight = int.Parse (Console.ReadLine ()); Console.WriteLine ("Alright here you go: "); this.DisplayBox (nWidth, nHeight); break; case 2: Console.WriteLine ("fukk outta here then!"); break; default: break; } } private void DisplayBox( int nWidth, int nHeight ) { List<char> strOutput = new List<char> (); for (int i = 0; i < nHeight; i++) { for (int j = 0; j < nWidth; j++) strOutput.Add ('*'); strOutput.Add ('\n'); } Console.WriteLine (strOutput.ToArray ()); } } }
MonoGame tutorial playlist: MonoGame Tutorials - YouTube
Anyone here use Selenium or Coded UI?
Elixir/Phoenix is a cool language/framework combination, but not really feeling the whole "magic" the language brings. Although I'm not deep into the metaprogramming aspect of it yet and think the concept of Elixir being developed in Elixir is definitely cool, I'm not really feeling the syntax. I'm almost done writing a web MVC API for it with sockets/channels also, but it wasn't as seamless as I was hoping. I think I'm the type who likes to follow convention in languages though.
My main complaint: It's very annoying trying to figure out where some macros/functions are being called from and what they do. If you import a module that imports another module, you could call the functions inside that module without dot notation. I'm having some difficulty after running a mix task to get a scaffold for a web app and seeing a ton of functions already in the code that don't specify which of the many modules it came from. Meaning tracking each of them down to see what those functions/macros are doing is genuinely fatiguing, especially considering there's a ton of them. Then you throw in that it's not very focused on being purely idiomatic and the varied ways to code make it seem a little too open-ended making other people's code a little tougher to read, for me at least.
All personal opinions, ymmv. Going to put this one down early as soon as I'm finished with this app. I'll hit Haskell for some functional programming. Even though I know a lot of people complain about the difficulty of it, but at least it doesn't shortcut anything and looks to be more explicit.
nice! thanks for sharing your perspective. i've been on some analysis paralysis when it comes to trying out a functional language. i feel like i'd rather hit haskell first, have it kick my butt a couple times so that by the time i go to scala, clojure, elixir etc, i'd have an idealized understanding of the functional paradigm which will allow me to evaluate each language's strong and weak points.
thing with haskell is it doesn't seem very practical for any of the little projects i do day to day. so dedicating time to it would just be mental masturbation .... that's why i've been procrastinating hardcore