Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

03-28-2017 , 12:55 PM
Thanks! Our designer is excellent and there's still more images and tuning up to do. We're very lucky to have found him!

Should look good on mobiles as well (although lots of touching up needs to be done on responsive side of it), wrote a nice auto scaling plugin I'm proud of that let's you do:

Code:
<Controls:ResponsiveImageFixedSize runat="server"
    ImagePath="/home/construct3.png"
    Width="650"
/>
Which renders as:

Code:
<img class="jsEnabled" data-src="https://s3.construct.net/images/v85/r/home/construct3_v650.png" width="650" height="361" data-srcset="https://s3.construct.net/images/v85/r/home/construct3_v650.png 1x, https://s1.construct.net/images/v85/r/home/construct3_v1000.png 1.5x, https://s1.construct.net/images/v85/r/home/construct3_v1300.png 2x, https://s1.construct.net/images/v85/r/home/construct3_v1700.png 2.5x, https://s1.construct.net/images/v85/r/home/construct3_v2000.png 3x" src="https://s3.construct.net/images/v85/1.gif" alt="Make games in your browser"/>
<noscript>
<img width="650" height="361" srcset="https://s3.construct.net/images/v85/r/home/construct3_v650.png 1x, https://s1.construct.net/images/v85/r/home/construct3_v1000.png 1.5x, https://s1.construct.net/images/v85/r/home/construct3_v1300.png 2x, https://s1.construct.net/images/v85/r/home/construct3_v1700.png 2.5x, https://s1.construct.net/images/v85/r/home/construct3_v2000.png 3x" src="https://s3.construct.net/images/v85/r/home/construct3_v650.png" alt="Make games in your browser"/>
</noscript>
Allows for really good looking high dpi images across the entire site. Really been slow to adopt all this sort of stuff myself but it does make a nice difference.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-28-2017 , 01:04 PM
Thanks gaming_mouse for that writeup.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-28-2017 , 01:47 PM
On day 2 of this coding bootcamp.

Easily one of my best life decisions.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-28-2017 , 01:48 PM
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-28-2017 , 02:27 PM
Quote:
Originally Posted by Gullanian
Just launched our new website/product:
https://www.construct.net/

Website a bit rough round the edges for now and some missing content but good enough for our first public beta! Construct 3 has been 3 years in the making so this is a big day, any feedback much appreciated You can launch it here:
https://editor.construct.net

(You'll need to be using the latest version of Chrome, go to settings and update)
Looks really nice, Gull. Congrats on the launch!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-28-2017 , 05:16 PM
Congrats Gullanian.

Also late note, but the 960 Pro SSD is awesome.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-28-2017 , 07:34 PM
Quote:
Originally Posted by Larry Legend
In Javascript, do you use single or double quotes for things like assigning strings to variables?

let varOne = "string"
let varOne = 'string'

Double quotes feels more natural to me, but I wanna use the optimal approach.
Use eslint, like today. Integrates with any modern editor. and it will tell you to use single quotes.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-28-2017 , 08:04 PM
[Super Nit Pick]"This should not have happened"[/Super Nit Pick]

Last edited by PJo336; 03-28-2017 at 08:04 PM. Reason: looks super cool
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-28-2017 , 08:15 PM
Yep, I noticed it was yelling at me right after I wrote that question. Took like an hour to kick the double quote muscle memory.

I'll write up more about this bootcamp, but so far it's super great. Using atom with a bunch of packages is amazing. I cannot wait to learn more. That feeling when you learn something new and realize it just opened you up to learning even more is such a rush.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-28-2017 , 08:20 PM
Quote:
Originally Posted by Grue
Use eslint, like today. Integrates with any modern editor. and it will tell you to use single quotes.
http://eslint.org/docs/rules/quotes

I was surprised to find that eslint defaults to double quotes though airbnb is probably the most commonly used eslint ruleset and enforces single quotes.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-28-2017 , 08:29 PM
avoidEscape is probably "optimal", most style guides want single, most other languages want double :-/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2017 , 06:16 AM
Thanks guys (and yes I went 960 pro as well it's great!)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2017 , 09:28 AM
Site looks great.

One comment I have would be making the 'Learn More' links into buttons as you scroll down the page, similar to the 'Try Construct 3' button in the hero.

The first one splits in 2 paragraphs for me on a standard mbp 15" full resolution:



From my experience, you would see a pretty large difference in people clicking them as buttons vs as text.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2017 , 09:44 AM
Thanks for the feedback! Yeah would expect that behaviour as well. That's an issue I will be tidying up when I get time to.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2017 , 10:12 AM
Congrats on the bootcamp, Larry Legend. Glad you are liking it. Google tracking uses double quotes.

Alas, we can all agree that JavaScript is a layer of hell we all have to live with until WebAssembly saves the day, that way everyone trying to make a name for themselves will flood the front-end world with Flavor-of-the-month framework in [Python, Ruby, C#, F#, PHP, ...].

*****

So, I have an infrastructure question that I'm trying to balance with a bunch of YAGNI but must-have features.

I'm running my latest project on Heroku because server admin sucks. The main downside right now is keeping up with Let's Encrypt. You can add, but renewing is a total chore. Think I'll just build a new cert every 2 months. Of course, I also need to use Cloudflare to redirect to HTTPS, which seems silly since Heroku advertises "free" TCL certs, which, for some reason, cost $15 / month or so.

The project is a bit polyglot, using Clojure and C, and I may end up dropping in Node later. This isn't exactly an issue as far as I know, but... it's sort of a worry for me moving forward.

The current problem is that I want to allow end-users to store music files on the site. Heroku has a slug-size limit of 300mb. "du -h" says I'm at 120mb, probably due the the image and audio files I have. I do know that music files can be large, so I'm thinking of using Digital Ocean's Block Storage, which is 10c / Gig, so 100gb = $10. Another option is using S3. Heroku has this thing called Bucketeer: https://elements.heroku.com/addons/bucketeer. (I should be moving all the image and audio files off anyways, I think).

What should I be considering here? I'm half-tempted to bite the bullet and just push everything over to a DO server and add the Block Storage to the server.

The trade-off of moving to DO is obviously all the manual setup and maintenance. Heroku, while less manual, does require quite a few acrobatics to get everything functioning in the app, along with maintaining other things to keep everything cohesive.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2017 , 10:19 AM
For storing files like that, you basically just want the cheapest place to store and serve them from which is probably S3 I think?

Be careful RE cloudflare, as you will want to be careful caching those files if you're looking to save bandwidth as it's likely against their TOS.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2017 , 10:34 AM
Definitely want to use one of the cloud providers storage system. Any of the big names are probably fine, but make sure to consider not just storage costs but transfer/request costs too.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2017 , 10:40 AM
Quote:
Originally Posted by Gullanian
For storing files like that, you basically just want the cheapest place to store and serve them from which is probably S3 I think?

Be careful RE cloudflare, as you will want to be careful caching those files if you're looking to save bandwidth as it's likely against their TOS.
Heroku doesn't give access to either Nginx or Apache. I don't want to add a bunch of middleware to the site for HTTPS redirects, so I'm using CloudFlare's page rules. I'm on their free plan and I'm not sure what else they offer.

To be a bit more clear. I have image / music files on the site right now, under whatever path. I'm probably going to add more so that everything sounds more organic, as I'm just using a synthesized sound right now. This isn't high priority.

I do want to allow end-users to save music files to the site. They would be playing their instrument into the site, or saving on their computer and uploading, and this is where I'm trying to figure out better storage. I either have to push the files (likely .wav) from one server to the next, or I have to keep it all locally.

Sorry if all of that wasn't clear.

Quote:
Originally Posted by jjshabado
Definitely want to use one of the cloud providers storage system. Any of the big names are probably fine, but make sure to consider not just storage costs but transfer/request costs too.
This is as well.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2017 , 10:48 AM
Just FWIW, if you're putting the site behind Cloudflare and wanting users to upload WAV's, you're going to hit the maximum upload limit Cloudflare allows, so you'd probably want to be serving from a different domain not behind CF. Even the business plan is 200mb max upload. (Consider other formats like FLAC)

For HTTPs redirects, try CF's 'Automatic HTTPS Rewrites' under Crypto tab. Using page rules to do that is probably not the best way of doing it unless you have specific requirements.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2017 , 10:53 AM
I assume you could just have the upload go directly to cloud storage?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2017 , 11:11 AM
It'd have to be behind a domain (or subdomain) that wasn't behind Cloudflare. This does remove some of Cloudflare's benefits (DDOS protection/IP cloaking etc). AFAIK you can't just bypass the upload limit with rules.

FWIW as well, maybe I over-react to this stuff but a page not protected by CF that uploads to a cloud provider you need to design carefully as it's an attack vector which could leave you with a big bill. Make sure you build in rate limits here.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2017 , 11:26 AM
Yeah, fair points.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2017 , 11:40 AM
Quote:
Originally Posted by Gullanian
For HTTPs redirects, try CF's 'Automatic HTTPS Rewrites' under Crypto tab. Using page rules to do that is probably not the best way of doing it unless you have specific requirements.
Ah, gotta love Heroku support, lol. That's not a proper excuse but I'll roll with it today.

***

The idea is to process the files with C and respond with music data. I'm attempting to build sheet music from the music. I have a sort of glorified tuner as a prototype for right now. Yes, lots of limits to this idea, but should be okay for what I'm trying to do.

The user can either record using the browser, or, they can record locally and upload the file. Ideally, I'd like to process the files locally and send them over the wires after. A user / student / teacher can retrieve the files at a later time. The alternative plan is to push the file to remote then process. This might be a better idea because a queue of users could blow up a dyno.

There will be a few layers between the initial upload and the end servers. I'm thinking the end servers can be without a domain, right (with all the security caveats, size limits, etc)?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2017 , 11:49 AM
Work in IT and have some opportunities to code and teaching myself in my free time to go full time dev. Had the opportunity to do some work in VBA and reconsidering that career choice/wanting to gouge my eyes out using it. Is that normal for using VBA? Are other more robust object oriented languages as painful to use? To be fair I had heard of issues with VBA long before actually trying to use it so perhaps just biased against it.

Sent from my SM-G900R4 using Tapatalk
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2017 , 11:58 AM
VBA sucks very very badly
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m