You’re just breaking the limits of this particular metaphor. It does illustrate an actual programming concern. If you assume that the variable is uninitialized, that assumption may someday be broken by a later code change. This isn’t just rhetoric and semantic tricks; it’s a valid coding concern.
Set up a good linter in your IDE or editor and use it religiously. Clear all warnings and errors before committing. If a rule doesn’t match your preference, reconfigure or disable it. This is really helpful for enforcing many of the rules that people have suggested here about structure and complexity. It will also introduce you to best practices that you wouldn’t have otherwise learned about.
You will also want to declare a foreign key constraint on the table so that it will require your "Follower" and "Followee" to refer to actual users. It's not necessary for the join, but it will help a lot with your data integrity.
I mean, one great reason is so that you don't have to worry about what happens if you modify the array in the loop. What happens if you remove or add elements?
Even if you don't plan to, it's a good habit to avoid setting up your loops like this so that you don't risk creating those kinds of bugs.
As a junior developer starting a fresh project without much oversight, beware that you may fall into a bit of a rabbit hole here. Proper engineering practices are important, but also beware of falling so deeply into tooling and testing that your project gets swamped by all the things you have to learn.
That said, is it possible that you're having trouble applying the tutorials to your own work because you're lacking some of the fundamentals of writing testable code? PHP pages, in particular, can be written in ways that are hard to test if you're not planning ahead for testability from the start.
For example, templates can be hard to test. If you're mixing business with HTML, there may be no way to test the code the way PHPUnit wants. (I'm not directly familiar with PHPUnit.) If that's the case for you, try extracting the business logic into separate classes or functions.
Without seeing code examples or specific questions it's hard to be sure.
Shouldn't local be based on production, and "redesigning" the db be done by adding additional migrations? I'd start with a copy of production and apply migrations atop that.
My employer has a setup similar to this: Mac OS with a VM running the code in an environment similar to production. A key difference is that the codebase itself is in a folder in a shared location which can be accessed from the Mac or the VM. This lets you work on the code on the Mac in the IDE of your choice, and use the host machine's browser to view the result.
This person doesn't talk like a person who has many friends. Like AnonJian says, this stuff should be handled on a case-by-case basis, nicely, instead of with an epic rant which alienates everyone who's ever asked you for a favor.
Let's Make Mistakes - especially in the earlier episodes, this gave me a lot of perspective on how to think about the business of design. Helped me understand why charging too little is a disservice to everyone, and led me to adopt "always do your best work" as one of my personal mantras.
The Deeply Graphic Design Cast - this is an odd one. The production values are kind of lame, and the hosts are often awkward on air, and they do all kinds of things (like gripe about clients) that LMM told me nobody should ever do. Every time I hear "That really helps your SEO" or "Oh my gosh, I'm dealing with such a difficult client right now" it puts my teeth on edge. But bearing through the rough patches, I've found that they actually have a huge depth of experience between them, and regularly have episodes with a lot of good practical advice (where to get clients, how to build your portfolio, how to work with creative placement agencies, etc.)
Blogs:
Brand New: Opinions on Corporate and Brand Identity Work - I usually read this before getting out of bed, and find myself nodding in agreement or shrugging in confusion. Nice to see good brands versus not-so-good brands.
kottke.org - for the frequent intriguing or inspiring links
#Unrelated to design, but things I look forward to and consume right away:
Podcasts:
Back to Work
Build and Analyze
Common Sense with Dan Carlin
Dan Carlin's Hardcore History
Hypercritical (what can I say, I'm a 5x5 guy)
RISK!
Roderick on the Line
The Talk Show With John Gruber
This American Life
WNYC's Radiolab
You Look Nice Today (what can I say, I'm a Merlin guy)
99% Invisible
Blogs:
BLDGBLOG
Daring Fireball
languagehat.com
Mara Wilson Writes Stuff
Marco.org
Mr Money Mustache
parislemon
The Art of Manliness
What If? (by Randall Munroe)
xkcd.com
Along with others which I either skim or skip over.
Could you expand on being motivated in a print shop? The challenge I'm facing at work (aside from it being a super slow shop where I'm lucky to get 35 hours of work in a week) is that with signs and banners, most people don't give a flip about design. Least of all the shop owner; every sans-serif is Arial to him. Are you talking about throwing energy into sucking the marrow out of this kind of job? I was on that train for a while, but honestly now I'm looking for ways to jump ship.
Thanks for all the encouragement, I think it's what I needed. I'm at a point in my life where I'm feeling Very Serious about having a Good Career, and I wanted some reassurance that what I'm doing is a real thing that people succeed at.
I saw that Ira Glass video a while ago, and it definitely stuck with me, and has shaped the way I think about making this kind of effort. I'm not surprised to see it recommended twice by you folks.
If you want clearance from the creator to use the tree graphic, I'm not the one to ask. I found it on this page.
I like the black version better, but I can't put my finger on why. Might be the greater contrast or just the simplicity. Also, to me it looks like there's a glow around the text in that poster which is a little distracting.
To my eye, they're both pretty solid. On the second poster, my nitpicks would be that the B in Fitchburg is a little lost (looks like that font has a pretty cramped B which doesn't play well with the blur; maybe substitute another font for that character only). The "and so much more" is kind of a pivotal phrase, but it gets a little lost being upside down, condensed, and in the bottom corner. Maybe see how it looks with that phrase centered on the bottom of the circle, with the text orientation flipped. Like this.
Last thought: is that sprouting seed an important element for them? If so, does it need to be included somewhere on the first poster? If not, it looks a little deliberate and out of place to me. If you only need a little graphic to separate the text, would something like this go better with the theme of the poster?
Fake edit: From their website I see that the seed does feature importantly. It seems like one of their only consistent branding elements, with all their different posters and graphics having different artistic voices. Maybe a good idea to work it into the first poster, maybe instead of the stars?
This is good advice. Some shops don't handle .ps files well, so it's good to make sure to send the .PDF (an EPS alongside wouldn't hurt, just for insurance). Bleed and safety are both definitely important, especially around the irregular edges, as it's hard to predict how a flat sheet will wrap onto the curved surface. Make sure the artwork is sized correctly, or that it's clearly marked with dimensions. Sending the preview (the image you posted here) would also be useful for the production guys.
EDIT - Also, on the preview for "Car 2," you've got the overhead view showing right side blue, and all other images with left side blue. The mirror's also wrapped blue in that shot, but not in the others.
Last edit: The "two face" design looks really great, and I get the sharp centerline going down the middle, but to my eye it looks weird on the rear doors of "Car 1," since they don't meet in the center. I'd try and see how it looks with limiting the blue to the right door. To my eye at least, it seems more natural. It may or may not work for you. And take a look at the rear bumper in that preview -- from some angles it's wrapped, from others it's not. I'd extend the graphic onto the bumper on both sides (not just the right).
Rotation lock: it keeps the display in portrait orientation and prevents it from switching to landscape when you rotate the device. To set or remove it, double-tap home, then swipe the dock to the right.
This happened to me. I did a design for an event our dorm was having, and incorporated the aerial layout of the dorm building, because it was distinctive and interesting. At the committee meeting (ahh, committees) one idiot pitched a fit about the dorm's layout being an elongated swastika. I figured if it was distracting for her, it would be distracting for enough other people to make a difference, and the point of the design wasn't to make a defiant statement but to commemorate something that lots of people were a part of. If there's a hint of controversy about it, it's usually worth avoiding, even if the only people who would be offended are idiots.
A mistake in setting up the cutfile sounds exactly right and a pretty straightforward error for the tech to make. If the counters weren't grouped with the main shape, the designer could have easily selected the main black body of the logo and aligned it, leaving the counters behind. How this actually got installed is another question.
This seems indistinguishable from using the array before initializing it.
You’re just breaking the limits of this particular metaphor. It does illustrate an actual programming concern. If you assume that the variable is uninitialized, that assumption may someday be broken by a later code change. This isn’t just rhetoric and semantic tricks; it’s a valid coding concern.
I wish.
Set up a good linter in your IDE or editor and use it religiously. Clear all warnings and errors before committing. If a rule doesn’t match your preference, reconfigure or disable it. This is really helpful for enforcing many of the rules that people have suggested here about structure and complexity. It will also introduce you to best practices that you wouldn’t have otherwise learned about.
You will also want to declare a foreign key constraint on the table so that it will require your "Follower" and "Followee" to refer to actual users. It's not necessary for the join, but it will help a lot with your data integrity.
I mean, one great reason is so that you don't have to worry about what happens if you modify the array in the loop. What happens if you remove or add elements?
Even if you don't plan to, it's a good habit to avoid setting up your loops like this so that you don't risk creating those kinds of bugs.
As a junior developer starting a fresh project without much oversight, beware that you may fall into a bit of a rabbit hole here. Proper engineering practices are important, but also beware of falling so deeply into tooling and testing that your project gets swamped by all the things you have to learn.
That said, is it possible that you're having trouble applying the tutorials to your own work because you're lacking some of the fundamentals of writing testable code? PHP pages, in particular, can be written in ways that are hard to test if you're not planning ahead for testability from the start.
For example, templates can be hard to test. If you're mixing business with HTML, there may be no way to test the code the way PHPUnit wants. (I'm not directly familiar with PHPUnit.) If that's the case for you, try extracting the business logic into separate classes or functions.
Without seeing code examples or specific questions it's hard to be sure.
Shouldn't local be based on production, and "redesigning" the db be done by adding additional migrations? I'd start with a copy of production and apply migrations atop that.
My employer has a setup similar to this: Mac OS with a VM running the code in an environment similar to production. A key difference is that the codebase itself is in a folder in a shared location which can be accessed from the Mac or the VM. This lets you work on the code on the Mac in the IDE of your choice, and use the host machine's browser to view the result.
It's pretty close to Aptifer Slab Semibold: http://www.myfonts.com/fonts/linotype/aptifer-slab/semibold/
This person doesn't talk like a person who has many friends. Like AnonJian says, this stuff should be handled on a case-by-case basis, nicely, instead of with an epic rant which alienates everyone who's ever asked you for a favor.
#Related to design:
Podcasts:
Blogs:
#Unrelated to design, but things I look forward to and consume right away:
Podcasts:
Blogs:
Along with others which I either skim or skip over.
Huh, that's kind of a lot of media.
Mixed metaphor alert.
Could you expand on being motivated in a print shop? The challenge I'm facing at work (aside from it being a super slow shop where I'm lucky to get 35 hours of work in a week) is that with signs and banners, most people don't give a flip about design. Least of all the shop owner; every sans-serif is Arial to him. Are you talking about throwing energy into sucking the marrow out of this kind of job? I was on that train for a while, but honestly now I'm looking for ways to jump ship.
Thanks for all the encouragement, I think it's what I needed. I'm at a point in my life where I'm feeling Very Serious about having a Good Career, and I wanted some reassurance that what I'm doing is a real thing that people succeed at.
I saw that Ira Glass video a while ago, and it definitely stuck with me, and has shaped the way I think about making this kind of effort. I'm not surprised to see it recommended twice by you folks.
If you want clearance from the creator to use the tree graphic, I'm not the one to ask. I found it on this page. I like the black version better, but I can't put my finger on why. Might be the greater contrast or just the simplicity. Also, to me it looks like there's a glow around the text in that poster which is a little distracting.
To my eye, they're both pretty solid. On the second poster, my nitpicks would be that the B in Fitchburg is a little lost (looks like that font has a pretty cramped B which doesn't play well with the blur; maybe substitute another font for that character only). The "and so much more" is kind of a pivotal phrase, but it gets a little lost being upside down, condensed, and in the bottom corner. Maybe see how it looks with that phrase centered on the bottom of the circle, with the text orientation flipped. Like this.
Last thought: is that sprouting seed an important element for them? If so, does it need to be included somewhere on the first poster? If not, it looks a little deliberate and out of place to me. If you only need a little graphic to separate the text, would something like this go better with the theme of the poster?
Fake edit: From their website I see that the seed does feature importantly. It seems like one of their only consistent branding elements, with all their different posters and graphics having different artistic voices. Maybe a good idea to work it into the first poster, maybe instead of the stars?
I downvoted because your comment was just name-calling with no content at all.
This is good advice. Some shops don't handle .ps files well, so it's good to make sure to send the .PDF (an EPS alongside wouldn't hurt, just for insurance). Bleed and safety are both definitely important, especially around the irregular edges, as it's hard to predict how a flat sheet will wrap onto the curved surface. Make sure the artwork is sized correctly, or that it's clearly marked with dimensions. Sending the preview (the image you posted here) would also be useful for the production guys.
EDIT - Also, on the preview for "Car 2," you've got the overhead view showing right side blue, and all other images with left side blue. The mirror's also wrapped blue in that shot, but not in the others.
Last edit: The "two face" design looks really great, and I get the sharp centerline going down the middle, but to my eye it looks weird on the rear doors of "Car 1," since they don't meet in the center. I'd try and see how it looks with limiting the blue to the right door. To my eye at least, it seems more natural. It may or may not work for you. And take a look at the rear bumper in that preview -- from some angles it's wrapped, from others it's not. I'd extend the graphic onto the bumper on both sides (not just the right).
Rotation lock: it keeps the display in portrait orientation and prevents it from switching to landscape when you rotate the device. To set or remove it, double-tap home, then swipe the dock to the right.
Scotch, Canadian, and Japanese varieties of this alcohol are usually spelled "whisky," while American and Irish varieties are generally "whiskey."
This happened to me. I did a design for an event our dorm was having, and incorporated the aerial layout of the dorm building, because it was distinctive and interesting. At the committee meeting (ahh, committees) one idiot pitched a fit about the dorm's layout being an elongated swastika. I figured if it was distracting for her, it would be distracting for enough other people to make a difference, and the point of the design wasn't to make a defiant statement but to commemorate something that lots of people were a part of. If there's a hint of controversy about it, it's usually worth avoiding, even if the only people who would be offended are idiots.
Seconded.
Bulls are used for financial optimism, though that may be overdone.
A mistake in setting up the cutfile sounds exactly right and a pretty straightforward error for the tech to make. If the counters weren't grouped with the main shape, the designer could have easily selected the main black body of the logo and aligned it, leaving the counters behind. How this actually got installed is another question.
I make signs like this on a regular basis.