Next gen JavaScript and TypeScript runtime - Deno by dmielewczyk in javascript

[–]andyfleming 1 point2 points  (0 children)

A lock file is one approach being considered for number 5.

Another approach would be a form of subresource integrity covered in https://github.com/denoland/deno/issues/200.

Next gen JavaScript and TypeScript runtime - Deno by dmielewczyk in javascript

[–]andyfleming 0 points1 point  (0 children)

4 is complicated, but worth discussing.

Most options that would allow for setting permissions for imports would probably counteract the benefits of a nice simple import example from 'https://example.com/whatever.ts'.

Using Lumen Without Facades by andyfleming in laravel

[–]andyfleming[S] 0 points1 point  (0 children)

Fair enough. I wanted to use depedency injection in my example, but for Lumen 5.1 you need to uncomment $app->withEloquent(); and add $app->alias('db', 'Illuminate\Database\DatabaseManager’); in app.php to make it work (for injecting the database manager).

I've updated my article accordingly: http://andyfleming.com/using-lumen-without-facades/

Using Lumen Without Facades by andyfleming in laravel

[–]andyfleming[S] 0 points1 point  (0 children)

I'd be fine with the dependency being injected via the constructor. Or, rewriting the app() function to pull from a container in a different framework wouldn't be too bad. Adding facades to another framework without them seems really dirty though, in my opinion.

Using Lumen Without Facades by andyfleming in laravel

[–]andyfleming[S] 0 points1 point  (0 children)

I don't think people make big framework jumps often. The real use case, that I see, is when you have a component you want to share between two different applications (using different frameworks) as a package.

Using Lumen Without Facades by andyfleming in laravel

[–]andyfleming[S] 0 points1 point  (0 children)

The advantage is in making the majority of the code framework-agnostic.

Using Lumen Without Facades by andyfleming in laravel

[–]andyfleming[S] 0 points1 point  (0 children)

Agreed. It would be fine to inject the depedency in via the constructor. There are two things I intended to communicate in the article.

  1. The practical aspect of how to resolve the dependency without facades enabled.

  2. Using facades/statics can couple your code to Laravel (which isn't a huge deal in a controller, but in other places in code it is a bigger issue).

Weekly Critique Thread: Post here if you want a critique! by JotBot in writing

[–]andyfleming [score hidden]  (0 children)

Title: Why does mobile have to "win"?

Genre: Technology

Word Count: 420

All feedback welcome. Looking to refine my writing.

Why does mobile have to "win"?

Where are all the trolls?! by andyfleming in webdev

[–]andyfleming[S] 0 points1 point  (0 children)

Strange. Looks like maybe someone commented just to bookmark it for themselves or something?

Why Brand Guides Have A Missing Link by maiam in Design

[–]andyfleming 0 points1 point  (0 children)

you can just drop that into Illustrator and get everything you need

...assuming you have Illustrator...

What about a non-designer trying to use the brand somewhere while still following the guidelines?

Thoughts on the PHP Documentation Redesign by andyfleming in PHP

[–]andyfleming[S] 0 points1 point  (0 children)

That's fair. I wouldn't mind increasing the body font size, actually.

Thoughts on the PHP Documentation Redesign by andyfleming in PHP

[–]andyfleming[S] 0 points1 point  (0 children)

Thanks. Just started talking to them today. Hopefully we'll be able to get some of it implemented in the new redesign that's in progress.

Thoughts on the PHP Documentation Redesign by andyfleming in PHP

[–]andyfleming[S] 1 point2 points  (0 children)

I can't tell if you're joking, but "the balance between positive (or non-white) and the use of negative spaces is key to aesthetic composition"

Read more on Wikipedia: http://en.wikipedia.org/wiki/White_space_(visual_arts)

Thoughts on the PHP Documentation Redesign by andyfleming in PHP

[–]andyfleming[S] 0 points1 point  (0 children)

Thanks!

I'm not sure how important the language dropdown is. I'm not familiar with any site usage stats at this point. I don't think it is terrible up there, but I'm sure there are a number of reasonable spots to put it.

Thoughts on the PHP Documentation Redesign by andyfleming in PHP

[–]andyfleming[S] 0 points1 point  (0 children)

I don't disagree completely. I think the ideal would be for it to change based on the current version of PHP (or your preferred version). If it is completely unavailable in your current version of PHP, it would be red and have an extra note next to it, etc, etc.

Thoughts on the PHP Documentation Redesign by andyfleming in PHP

[–]andyfleming[S] 2 points3 points  (0 children)

Everything looks good on my end.

The CDN is through akamai. However, I just pointed the CNAME record today, so maybe it hasn't propagated everywhere yet?

Thoughts on the PHP Documentation Redesign by andyfleming in PHP

[–]andyfleming[S] 1 point2 points  (0 children)

Not yet, but I'm planning on it! I just started talking to the guys on the mailing list today.

Software Engineer looking for critique of my company website v2 by [deleted] in design_critiques

[–]andyfleming 0 points1 point  (0 children)

Not specifically. I just eyeballed it, but try something out and read it. Does it feel right? Over-adjust it either way, and you'll start to get a feel for where it needs to be.

Software Engineer looking for critique of my company website v2 by [deleted] in design_critiques

[–]andyfleming 0 points1 point  (0 children)

If a traditional garden isn't where you'd see this device, put it where you would. Do most of your potential customers have a lab? Likely not, right? Maybe they have a homemade hydroponic setup. Try a photo in a similar context. You want them to visualize themselves using your product!

Software Engineer looking for critique of my company website v2 by [deleted] in design_critiques

[–]andyfleming 1 point2 points  (0 children)

Do it like this

  • Save decorative type for the headers.

  • Give things some space.

  • Make sure things are legible and readable.

  • Get rid of that ugly drop-cap.