« first day (1039 days earlier)      last day (2971 days later) » 

9:00 AM
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Implicit type class for updating maps
 
Babel is very ahead of it's time.
 
Actually, the decorators and async functions are also supported by TypeScript ;-)
 
I haven't tried TypeScript though
 
Babel is by far the biggset open source compiler though, which has its benefits
It's really crap. Don't use it. @Quill will also vouch for this
 
Then I'll keep it that way ;)
This company I'm interning for is heavily Apple-oriented since their sister company is an Apple retailer so swift will be a good next step if they wanna hire me
So I think I'm gonna focus on that for now.
 
9:03 AM
Definitely worth learning
I want to learn Swift, myself, but I don't have a Mac... yet
I'm hoping to get one once my ID arrives
I am also quite an Apple fanboy, and their stance on the privacy case with the FBI helps
 
I have one as my work computer
 
Am jealous
 
I'm not an apple fanboi but I realize they do have their uses. People like my dad for example; He's a techno-tard so apple products being so easy to use and clean in design makes it easy for him to use it
 
Well, perhaps fanboy was a bad word to use
 
Apple > Windows
At least for development
 
9:08 AM
But it feels like I have to actively fight Windows to be able to develop JavaScript (because of long file paths with node_modules, those folders regularly hit 255 character limit)
Then you have the whole way that PATH works etc
And how a lot of developers are already on Apple with web dev, so the ecosystem is geared towards that anyway
I.e, Flowtype, type checker for JavaScript, only really works efficiently on Apple and Unix machines
annnd the file watching in windows is awful compared to unix. Yeah, lots of reasons haha
 
nods
Though I hit a length issue on mac with Rails/active recod
 
oh?
 
Writing polymorphic relations I had to refactor the name of my model
Might be a pure Active records thing though
 
Ah no I mean file path length
 
Yeah, it was complaining about the path
"file path is too long"
But it could be because it's active records, not because it's on a mac
 
9:17 AM
1
Q: Does OS X enforce a maximum filename length or character restriction?

Chauncey GarrettWhat is the maximum filename character length of files in OS X? Of secondary importance is whether some characters are allowed/disallowed in addition to any overall length restrictions.

 
As in I'd probably would have gotten that error regardless of OS
 
file names can be 255 characters long in Mac - on Windows it's the total file path
 
>_>
I'm not expressing myself well here
Active Records gave me the error message that the path was too long
 
Is the code doing what you want? This site is not for code reviewing. However, the SQL deletion seems to be mixing the application and the test suite in a strange manner. Additionally, the first paragrapg of — AdrianHHH 8 secs ago
 
I've never had the OS give me an error
 
9:19 AM
o
 
So far I've actually never had any issues on my mac
Related to the OS I mean
Unless you count that bundle install too many times broke itself
I can confess to that it bothers me more than it should that there's a little space under the window where the menubar is supposed to be while it's hidden
Retina display is amazing and the quality of the image transfer to my second screen is really good
 
I'd probably be getting a macbook pro with just thunderbolt monitors or something
 
Sounds like a good setup
Not sure I'd ever buy a mac for my personal use though
I'm going dualboot unix on my next home setup
Because unfortunately the only real option for games is Windows >_>;
 
I have dualboot unix, however I never really boot onto unix because I like playing League - which doesn't work on unix - and I don't have to have to restrat into unix just to code...
When I'm having a solid day of coding, then I'll boot into unix, otherwise I jjust want to code in between games
 
That's how I have it atm; coding between games.
But my computer is too old and too slow. The lag is getting unbearable
 
9:26 AM
Mine is about 3-4x faster than my work PC, sadly.
And that'st not saying my PC is fast, because it's powerful but not amazingly fast... it's just the work PC is unbearably slow
 
Works fine if all I do is code, if I wanna run Netbeans and Firefox at the same time with slack... bye bye
 
to be fair, netbeans and firefox are two of thet heaviest programs you could ask for
 
I know
But it's still better than netbeans chrome
 
ehhhhhhhhhhhhhhhhhhh
 
Eats all of my ram :(
I can give that FF eat a lot of ram no matter what it does, but if I'd try running 20 tabs on chrome I could just as well give up
 
9:32 AM
For me, FF eats up a lot of RAM regardless of what I do and if one tab crashes it all crashes
The latter being the main reason why I don't use FF
 
That's the downside, but there's no difference for me when I have 1 or 20 tabs in FF, while in chrome I had better not plan to do anything else at the same time
 
I have 24GB RAM on my home PC so
:D
 
I have 4
 
lol
 
I built it like 5 years ago
 
9:34 AM
well there's yer problem
 
Yup
 
0
Q: Beta login api without passwords

MartG'day In present day, people are asked more & more for new and more difficult passwords all over the web. To be honest, in my case, it is becoming a real struggle to remember all those passwords and i can imagine, for the elderly it must be a real issue. With this in my thoughts and the present-...

 
When I get hired I'm gonna buy me a new computer though with lots of delicious ram
Wow I'm bad at typing
 
you should upgrade a bit at a time
RAM, in particular, is really cheap. It cost me £30 for 16GB
 
Well, the processor needs an update
And probably the motherboard. I think max for the motherboard is 16
 
9:37 AM
That doesn't mean you can't buy 12GB/16GB of RAM and stick that in while you wait to upgrade
 
The case is really really old too
 
As long as the mobo supports the same version of RAM as your new one will...
It sounds like you need a barebones bundle, though, you can get a top of the range case + mobo + psu + cpu for ~£300
I have an AMD eight core 3.5Ghz proc
 
I'm hopefully hired by someone before summer
 
that, plus a 650w psu, watercooled case with a million USB ports and hard drive slots cost me £300
 
So I'll afford one then
Not gonna get me anything watercooled though
 
9:38 AM
I wasn't looking for watercooling
It's just it was the only barebones with a good clock speed
x)
 
Just a cheap case and a motherboard that can handle a good processor and a bunch of RAM
 
and 650w, which was required by my graphics card
(nvidia 970 gtx)
 
And some cheap graphics card
Just enough to play some games
(I'm not a heavy gamer so it's really no big deal)
 
@DanPantry +1
TypeScript is Microsoft's shitty peace offering after Internet Explorer
Like buying plastic flowers for a partner
 
Not sure I relate to the flower simili like you intended though :P
 
9:44 AM
Edge was a better attempt, but ditch the E logo and maybe you can stop sleeping on the couch
> G'day
lol
 
<--- Doesn't buy useless stuff as gifts.
An SSD for my partner would be a suitable gift because their computer was built while the SSDs were still pretty expensive
 
SSDs are so good... I still don't have one on my windows partition yet
I will get one, but only after I find one that fits more than a few human hairs
 
Macs only have SSD harddrive. That's why they're so fast ;)
Well, the newer ones.
 
also cause they take less ram to operate the OS
 
and expensiev :P
 
9:54 AM
Yup. You pay a lot for that slender design
Which is why I'd never buy one for myself. ;P
 
You have no idea how much money I would pay to be rid of this Windows laptop
 
wtf is this
that sounds messed up
 
That actually sounds pretty cool, in theory.
You try and log in, and your phone says yes or no.
downside: if your phone number gets changed you're screwed
Well, actually, if it is bound to the phone device itself, you'd only be screwed if you changed your phone
 
sounds like a waaaaaaaaaaay less secure version of oauth
 
oh, yeah, it isn't secure, but the idea itself is interesting
 
10:03 AM
Sounds like the beginning of the machine uprising. Phone says no to human control!
 
My phone already says no to human control if I forget to pay my phone bill :-)
 
I use prepaid cards :)
 
I was joking, I have a direct debit, so I can forget but my bank won't :D
 
Sure, I can't call anything but my country's 911 if I run out of cash but it doesn't render my phone useless ;P
As a devise I mean. I cans till get called and recieve SMS
 
ouch
 
O.O
 
that file has more IDs than I do.
lol
I allocated 12 hours for a feature
it took me 1 and a half
woops
 
Curse you command c
 
@DanPantry 10.5 hours left for browsing Twitter?
 
10:23 AM
0
Q: I NEED INSERT ID FROMATE 0001 >>?

Waleed Al-akrabawestr2 = SqlHelper.ExecuteScalar(My.Settings.conn, CommandType.Text, "select isnull(max(serialNo)+1,1) FROM Serial Where type = '1'" )

 
@CaptainObvious YOU NEED BETTER TITLE
 
@Quill blocked, unfortunately
 
It's deleted. it doesn't matter
Anyway, that particular comment may be deleted, but the question may inspire others to post the same thing anyway
 
no, I said bad Duga because it's that bug again
(Not because of the comment contents)
Oh.. it does that because it is deleted..
 
10:29 AM
it's not a bug
 
....derp
I cannot brain today
Hello @RubberDuck
 
Hey there @RubberDuck
 
0
Q: Static classes / methods are getting bigger, is this a code smell?

AksharRoopRecently I've observed that static classes/methods have been getting updated continuously to support more features (agree, already breaking Open-closed principle). Initially when it was started the class was something like class Utils { public HelperMethod1(param1,param2,param3) publ...

 
@Jazaret Note that as of VS2015, users of the Community, Professional, and Enterprise editions can all use the code review tools — Cocowalla 1 min ago
 
10:47 AM
Monking @DanPantry. Monking @Quill
 
@Duga phrasing :p we are not tools
4
 
We're friendly, totally not tools.
 
-6
Q: Does every site that contains "Overflow" mean "for experts"?

OokerI just read this this question about MathOverflow and Mathematics. After reading the answers and comments, I get and idea that every site that contains "Overflow" is meant for experts. MathOverflow is for expert mathematicians, Stack Overflow is for expert programmers, and Physics Overflow is for...

 
11:08 AM
> See something that makes you uneasy? Don't hesitate to flag it.
Solid advice when opening the chat... That's exactly how we get those silly flags all the time
Anyway, I'm still a bit confused about cloud hosting... It seems like it's mainly for backend, and not for frontend?
 
we use front end cloud hosting for static files
like css, html and images
 
It makes me very uneasy when someone "wryt lyk dis, if u no wut I mean"
 
@skiwi "Cloud hosting" can either refer to virtual machines or just static file hosting.
 
Should I flag my own messages?
 
@Quill What kind of cloud hosting is suitable to that? I'm looking into something that automatically scales
 
11:10 AM
If you're running a program, you want a virtual machine
If you're just hosting static file assets like html, png, javascript files, etc, you want a CDN
 
@skiwi amazon web services
 
I <3 Docker
 
Yet with regular hosting I find packages that offer static+PHP content for 3 euro per month with unlimited bandwidth, so in a sense that scales too - And then I could make calls to a backend that is hosted somewhere in the cloud?
 
CDN is the magic word
 
@skiwi okay, let's try and break apart what scaling means
Unlimited bandwidth is not scaling
While it is helpful in scaling out how much usage you have, it does not help the perf of your website to a single machine.
 
11:12 AM
So the site could still go down...? Hmm
 
So you could have unilmited bandwidth, but if you have a crap box, then it doesn't matter, you will still see performance degradation
 
I was initially worried about reaching bandwidth cap on host and thus the site being "down" until end of the month
 
In the same way that my local PC has unlimited bandwidth through my ISP, but if I tried to host a real time site on it it would probably crap itself.
Let's talk in the context of AWS, since that's what I know and @Quill knows.
With AWS, you have AWS S3, which lets you upload static files. There is no bandwidth limit on these files, you are only charged based on the amount of GETs and POSTs to the file though I believe very large files do incur a cost based on MB transferred, on smaller files this cost is negligble.
AWS S3 is fine for smaller sites, but AWS hosts each S3 instance in a specific country (Frankfurt, Ireland, China etc)
If you want to have your site accessible in a speedy manner across the entire world, you want a CDN, which will host copies of your file in multiple locations around the world.
That's Amazon CloudFront and it is significantly more expensive than Amazon S3.
But with both S3 and CloudFront there are no bandwidth limits, you are just billed on the number of requests and MB transferred.
so your site won't just go "down".
 
@DanPantry Can you host a "full website" on it? Or is it meant only to host images and such to be included from a different site
 
You can definitely host full static sites online, like html files, javascript files and image files etc. That's what I did when I had a blog at lambdaexpression.io
 
11:16 AM
If you're only gonna have small static sites though you could just use github pages though
 
You could. At the time I didn't know they existed, so I didn't use them.
 
@Gemtastic It's not open-source though at the moment, so not my option right now
 
it'll never be open source
 
@DanPantry I don't quite get that concept yet, multiple files over CDN I completely get, but where does my domain link to if I want to host the full sit eon cloudfront?
 
@skiwi It's more of a remark on static sites. If you have a static site your code is open source wether you want it or not
 
11:17 AM
@Quill I meant my website, sorry my bad
Yeah... that is true, right
 
@skiwi If you're using CloudFront, you'd use AWS Route 53 to point at your cloud front instance.
 
@skiwi oh okay. you could always get a private repo
 
CloudFront would then intelligently work out which server to serve from based on the user's location.
 
Sounds like a whole bunch of complicated stuff, but seems like that's the route I want to go
 
If you're really stuck, I can help you sort it out as I have an active AWS account
 
11:18 AM
Doesn't AWS have a trial year?
 
I'm likely trying to put it on Azure though if it offers similar features as it seems to be easier from Europe/Netherlands
 
Or did they remove that?
 
tomsitpro.com/articles/… to me it seems like Azure and AWS can be used interchangeably
 
They still have it, but it doesn't offer Cloud Front as part of the package, but S3 is
 
@Gemtastic They do have it.
 
11:21 AM
@DanPantry Yeah I checked it up
But as I said, there's no cloudfront in the free trial
 
@skiwi Yeah you can use Azure Storage
Though I've not personally used it
 
About what kind of costs are we talking monthly/yearly? The thing is that it's going to be (ultimately) a fansite for an active game right now (Blade and Souls), and if it will attract users then I just don't know what I have to expect
 
@Gemtastic Yeah, at the same time, CloudFront is super expensive.
Relatively speaking anyway..
 
Nods
If your site is small I doubt there's really a big need for it
even if it does have software running and isn't static
 
I can't speak for Azure, but S3 is $0.0324 per GB per month of data in your site, plus $0.01 per 1,000 requests @skiwi
 
11:23 AM
I've seen a few times that a site got popular on the subreddit and bam RIP site, I kinda don't like that
So hmm, there's also an incentive for you as programmer to ensure that a site has fewer requests then I guess
 
So if you host 100MB of static files (which is a lot of static files unless you count user submitted images) and receive 1000 requests every day, it would cost you $0.30 per month.
For S3 in Frankfurt
The sites that usually go "down" aren't because of bandwidth limits
It's usually because they are using virtual servers and the virtual servers get their resources exhausted and they don't have automatic scaling set up (because that can hit cost barriers)
S3 is not going to go down because pretty much half the web (exaggeration) is hosted on it.
Now, CloudFront - the CDN is a bit more involved in pricing.
Each country costs something different, but if we assume you get 1000 requests from europe per day for 100MB of data (same scenario as above) it'll cost you 0.08$ a month, probably on top of the existing $0.30 a month from S3.
Actually I think my calculations are wrong for CloudFront but you get the idea.
Static file hosting is dirt cheap.. it's virtual servers where it gets expensive.
See here for more info.
Also, @Gemtastic, Amazon CloudFront does come with Amazon Free Trial - users get 50GB of free transfer and 2mil HTTP/S requests per month for a year. That would easily satisfy @skiwi's needs for the first few months at least.
 
Hmmm, those numbers aren't really big at all
 
any other questions? :p
bear in mind sites get more expensive fast once you start getting virtual servers (EC2) and databases (DynamoDB etc) involved
 
 
@DanPantry Right, I can see that, but those are not necessary yet luckily
 
11:33 AM
For what it is worht my monthly bill for a very simple site is $0.61.
Most of that is Route 53 which has a flat cost
I think I literally only pay 1 cent for S3.. lol
 
11:46 AM
if you have any more questions about cloud stuff btw @Skiwi I'll be glad to help, just ping me
 
@DanPantry Sure, I'm not working alone on this and doesn't seem like we're going down that route just yet, but perhaps later
 
I'm not having an argument. I'm telling you that it's poor coding that would fail any sane code review and shouldn't be encouraged just because it's allegedly "simpler to understand". — Alnitak 24 secs ago
@Alnitak This isn't code review. It is answering an specific question. And the answer is correct. — 2501 59 secs ago
Just because it is not a code review does not mean you should write crap because it is "easier to understand". At least go into the caveats of the approach instead of waiting to be called out on it. — Dan Pantry 57 secs ago
 
oh, right, yeah, Duga..
Apparently a feature of our product was broken since it's release, but a user has only just raised the issue now. When we asked them why they didn't raise it sooner, they said they just never bothered to report it.
And this is why programmers view users like this:
 
Monking
 
Hello @DJanssens
 
12:14 PM
Umm, wat?! No, I'm saying that code written here should be written as if subject to a code review, because some hapless person sometime in the future might come along and use your code, not realising that it's poor code. And that would be as much your fault as theirs. — Alnitak 12 secs ago
2
 
@DanPantry Can't lie. I really like that show.
 
@DanPantry It wasn't listed on the first info page. Must have been in the fine print
 
@DanPantry are programmers better at reporting things? Do you report bugs in all the software you use? :)
/me received his Code Review shirt and rubber duck \o/
 
Wants a rubber duck
 
0
Q: Snake game in C++ (using SFML)

ReethokI haven't done any programming in a while, and I'm getting back into it. I made this Snake clone to refresh me a bit, and I would like to get some feedback in the "elegance" and "well-done"-ness of the code. main.cpp #include "Game.h" int main() { Game::run(); return 0; } Game.h #if...

 
12:27 PM
@QuentinPradet It's not a case that she didn't find the bug, she knew about the bug, she just didn't report it.
 
@DanPantry yeah - and while I report bugs most days of the week, there are also many bugs that I don't report
 
Sometimes it's more normal, at least for some users (I know I was like that for a time, before I started coding), that there's a kind of "challenge" in finding ways to get around bugs and still get the app to do what you need
 
You have to bear in mind the situation we're in.. we're migrating from an old app from 3rd party to a new one. All functionality is more or less exactly the same. This was a fairly big bug which was affecting her integration with another system we use and would have affected them daily. There is no work around as it was causing a data issue.
This was simply a willful loss of data for 4 months.
 
And in my case I think I became more and more jaded from reporting bugs to Microsoft, and those bugs never really getting fixed
@DanPantry Oh, that's not good
Not good at all, in fact
 
Luckily the scope was limited, but there was simply no excuse for not reporting this bug other than laziness.. and while all of us get lazy from time to time, this is pretty bad :)
 
12:37 PM
0
Q: Guidence on the use of Ninject as IoC Container in a WinForms MVC Application

KillercamI am a releatively experienced WPF developer who has had good exposure to MVVM. I have been developing legacy WinForms applications for a while and have recently been asked to fully re-write a large one. To do this I want to use TDD and in order to facilitate this and make the application as exte...

 
Wouldn't this be a better post in Code Review SE? — Sylwester 52 secs ago
What's Code Review SE. Sorry i am still quite new — Hero1134 16 secs ago
@Sylwester this would be off-topic on Code Review as the code appears to not be working correctly, as in the author is looking for some fhelp in making the code work. See A guide to Code Review for Stack Overflow usersPhrancis 43 secs ago
 
12:52 PM
@Gemtastic you are always welcome to ping me here with any questions about Swift
 
Much appreciated. I'm currently reading apple's own book on the language. Your thoughts on it?
 
@Hero1134 Code Review Stack Exchange is a sister-site to Stack Overflow, where instead of asking for help solving specific programming problems (as you do on Stack Overflow), you instead take all the working code you would like reviewed, and the answers will critique your code and suggest improvements in performance, readability, maintainability, etc. Do take a minute to look at the Tour if you are interested. — Phrancis 55 secs ago
 
It lays a good foundation.
 
Great :)
so far it looks ok (compared to the first tutorial I was looking at which was not so good)
 
I don't know if your plans are for iOS/OSX development or otherwise, but either way, I'd see if you can focus on learning pure Swift as much as possible without incorporating frameworks.
 
12:59 PM
@Quill that should be an actual ad, with a link to the video. I bet there are still people in this world that don't know what a rick roll is
 
I don't like learning frameworks before I know the language
 

« first day (1039 days earlier)      last day (2971 days later) »