Skip to main content

Home/ @Publish/ Group items tagged Code

Rss Feed Group items tagged

Pedro Gonçalves

No--You Don't Need To Learn To Code ⚙ Co.Labs ⚙ code + community - 0 views

  • If you still want to work in the tech world but are reconsidering coding, designer Nick Marsh suggests doing something coders find useful. Brilliant as great developers are, there are plenty of things that they hate doing or are just no good at. Coding requires a level of focus bordering on tunnel vision, and if there’s one thing developers hate, it’s distractions. For a coder “distractions” mean dealing with business people, management, customers or, in fact, anyone outside the engineering team. If you want to get popular with developers, spare them from some of these interactions, which they often see as a shocking waste of their time. A great product manager, for example, is as crucial to success as a competent coder. It doesn’t matter how clear the code is, if nobody wants the product. Translate the language of the developers into that of the users and vice versa. Promote the product. All makers of creative work want their work to be used. Marsh concludes that it’s much more important to understand coders than to understand code
Pedro Gonçalves

How To Maintain Hierarchy Through Content Choreography | Smashing Magazine - 0 views

  • Three specifications that we’ll likely find ourselves using in the future are: “Flexbox4,” “Regions5,” “Grid Layout6.”
  • Magic numbers in CSS are best avoided.
  • We need fewer of these HTML containers and more CSS virtual container classes that we can apply to different elements as needed. In other words, instead of this… <div id="container"> <div>Content here</div> <div>Content here</div> <div>Content here</div> </div> … we need more of this: <div class="container">Content here</div> <div class="container">Content here</div> <div class="container">Content here</div>
  • ...5 more annotations...
  • In the latter block, each division might have a different class name or perhaps different additional classes applied. This allows for greater flexibility in rearranging them in the layout. In the first block of code, the three content divisions will always reside inside their parent container.
  • With CSS, we have the ability to rearrange blocks inside a container. We don’t have the ability to break content out of one container and move it inside another container. If you want more mixing of blocks, then you’ll need fewer containers.
  • there are currently far more instances of websites that are dropping columns wholesale
  • Every element is its own unique block and serves as its own container. The page’s main heading is its own contained block. All of the meta information is inside another container directly below it. After that, every paragraph, subheading and image is also its own self-contained block of content. The same goes for anything else that might end up in a post, such as a block quote or code block.
  • a challenge to how we think about structuring our HTML, particularly to how we use containers. Elements can’t move from one container to the next. We can fake it with complex CSS, or we can rewrite the HTML with JavaScript; but, ultimately, if we want to intermix elements, we’re best of using fewer HTML containers to create columns. Instead, we should leave more of our content blocks in their own containers and use CSS to create virtual columns in the layout. This solution doesn’t confine our elements to structural containers and instead enables us to more easily rearrange the elements in different layouts.
Pedro Gonçalves

ReadWrite - Why Write Your Own Book When An Algorithm Can Do It For You? - 0 views

  • I have not created any new way of writing. All I'm doing is writing computer programs that mimic the way people write. Going back to the Elizabethan sonnets, Shakespeare or one of his contemporaries created the 14-line iambic pentameter poem, where the rhyming pattern was 'a-b, a-b, c-d, c-d, e-f, e-f g-g.' G-g being a couplet at the end. By line 9 there has to be a turn in the poem, so there has to be a phrase like 'yet' or 'but.' The first line is typically a question, which acts as a title. All of them are 10 syllables in each line... they have to go in the rhythm of that pattern. If you do an analysis of sonnets, you'll realize that about 10% of sonnets violate those rules. But they do it only in a very particular way. Even that formulation of violation is itself constrained... Once you have all of those rules you then write algorithms that mimic those rules. It's a very different kind of philosophy from artificial intelligence.
  • The methodologies are extremely old, just like the methodologies of writing haiku poetry are very old. An Elizabethan sonnet is 14 lines - that is a line of code if you think of it that way. The code is constrained. So all genres, no matter what the genres are, are a form of constrained writing.
Pedro Gonçalves

Flat Pixels: The Battle Between Flat Design And Skeuomorphism - 0 views

  • Defining Skeuomorphism This obscure word describes the way designs often borrow a particular feature from the past, even when the functional need for it is gone. Examples include pre-recorded shutter noises on smartphones to remind us of film cameras, or calendar apps that feature torn paper and metal rings. Or, as Wikipedia tells us [1]: A skeuomorph is a physical ornament or design on an object copied from a form of the object when made from another material or by other techniques.
  • the digital world has seen skeuomorphism popularized in the past couple years mainly thanks to the recent iOS-inspired trend of rich textures and life-like controls.
  • By opposition, the other side of the coin would be the newly popular "flat style", of which Microsoft's Metro UI is probably the main example. Flat Style embraces visual minimalism, eschewing textures and lighting effects for simple shapes and flat colors.
  • ...23 more annotations...
  • this trend is not always about skeuomorphism – which implies a connection to a past incarnation of a similar design – but rather often about realism [2]: a purely visual style that tries to imitate real-world materials and textures, exemplified by Apple's tacky over-use of leather textures in some of their own apps.
  • skeuomorphic designs tend to look realistic (to make the connection with the original object clear), and realistic designs tend to be skeuomorphic (otherwise the realism would look out of place).
  • touch target couldn't be smaller than a certain size (Apple's Human Interface Guidelines recommend at least 44 by 44 pixels).
  • showing less on the screen, but doing more with it.
  • realism done wrong can morph into kitsch
  • the problem of getting skeuomorphism wrong: making something look like a physical object, but not work like it
  • That problem is that when borrowing elements from a design's previous incarnation, you often also bring its limitations along for the ride, even when these limitations have no reason to exist anymore
  • When done right, skeuomorphism and realism will trigger strong associations with real-world counterparts. This is both a strength and a weakness: sometimes, the association can be so strong that it will stop you from improving on what's already been done.
  • Gone were the shadows, highlights, gradients, and textures of iOS apps. Instead, Metro offered flat squares of color with big typography.
  • Microsoft's new design philosophy certainly seemed to strike a chord within the tech sphere, with many praising Metro's strong focus on typography and colors.
  • And while flat design is often purely visual, it does resonate with designer's love of minimalist concepts, embodied by the famous Antoine de Saint-Exupery that “perfection is achieved not when there is nothing left to add, but when there is nothing left to take away”.
  • Two of the most talked-about games in recent month, Letterpress and Hundreds both feature flat designs. In fact, Letterpress creator Loren Brichter even revealed that the whole game only uses a single image!
  • When you have a high-definition display and screen-optimized fonts, you quickly realize you don't need much else to create beautiful work.
  • is pushing many designers towards prototyping in the browser directly, foregoing static mockups entirely.
  • Add all this together and you begin to see why many designers are moving away from texture-heavy realism towards the more flexible and lighter-weight flat style.
  • keep in mind that the needs of users should always come before our aesthetic pursuits
  • visual style is nothing more than a means to an end [15]. If the situation calls for realism, go nuts on textures and highlights. On the other hand, if a flat aesthetic achieves the design's goal better then it might be time to go on a gradient diet.
  • With the recent releases of their newer mobile apps, Google has started pushing a style that some describe as "almost flat" [18], or maybe "skeuominimalism" [19]. Unlike the drastic visual wastelands of Gmail or Google Reader, this new style uses elements like shadows and gradients in a tasteful, subtle way. This style offers the best of both world: realism's affordances and subtle hints combined with the purity and simplicity off flat design.
  • another way to look at it is that it's simply design done right: seeking efficiency and simplicity without sacrificing usability to the altar of minimalism.
  • I will pick a camp and put my chips in with flat design (specifically, Google's less-extreme variety).
  • Google is not so much pioneering a new style as showing us what digital design looks like when it's done right
  • catch up with what the web has to offer, we'll have to get our hands dirty and start coding [21]. And when you're both designing and coding a layout, you start to appreciate the value of keeping things lightweight.
  • Flat design also forces you to really care about typography and layout, two areas where web design has traditionally lagged behind its more established print cousin.
Pedro Gonçalves

How Internet Ads Work | Co.Design | business + design - 0 views

  • When you first load a webpage, the first thing that happens is it generates an impression, which is then forwarded to an ad server. So far, so good, but you might be surprised by how much that ad server knows about you. Using information gathered from Internet cookies, social media, and more, an ad server is capable of generating a unique profile of various metrics, almost like a QR code, that contains everything it knows about you: how old you are, your relationship status, what websites you browse, where you're located, etc. With that code generated, the ad server tries to match it against a pre-sold inventory of ads, almost like a key fitting into a lock. If the key fits, the process ends there, and an ad is returned that advertisers believe jibes with your unique personal profile. But it's what happens if the server doesn't have an ad that matches where things gets interesting.
  • Without a pre-sold ad to serve you, an ad server forwards your profile to an international ad exchange, where a network of different ad servers examine it and bid on it in real time. In a fraction of a second, a host of third-party servers around the world go into a bidding war for the opportunity to show you an ad, with the highest bidder taking the prize and filling your eyes.
Pedro Gonçalves

Can Artificial Intelligence Like IBM's Watson Do Investigative Journalism? ⚙ ... - 0 views

  • Two years ago, the two greatest Jeopardy champions of all time got obliterated by a computer called Watson. It was a great victory for artificial intelligence--the system racked up more than three times the earnings of its next meat-brained competitor. For IBM’s Watson, the successor to Deep Blue, which famously defeated chess champion Gary Kasparov, becoming a Jeopardy champion was a modest proof of concept. The big challenge for Watson, and the goal for IBM, is to adapt the core question-answering technology to more significant domains, like health care. WatsonPaths, IBM’s medical-domain offshoot announced last month, is able to derive medical diagnoses from a description of symptoms. From this chain of evidence, it’s able to present an interactive visualization to doctors, who can interrogate the data, further question the evidence, and better understand the situation. It’s an essential feedback loop used by diagnosticians to help decide which information is extraneous and which is essential, thus making it possible to home in on a most-likely diagnosis. WatsonPaths scours millions of unstructured texts, like medical textbooks, dictionaries, and clinical guidelines, to develop a set of ranked hypotheses. The doctors’ feedback is added back into the brute-force information retrieval capabilities to help further train the system.
  • For Watson, ingesting all 2.5 million unstructured documents is the easy part. For this, it would extract references to real-world entities, like corporations and people, and start looking for relationships between them, essentially building up context around each entity. This could be connected out to open-entity databases like Freebase, to provide even more context. A journalist might orient the system’s “attention” by indicating which politicians or tax-dodging tycoons might be of most interest. Other texts, like relevant legal codes in the target jurisdiction or news reports mentioning the entities of interest, could also be ingested and parsed. Watson would then draw on its domain-adapted logic to generate evidence, like “IF corporation A is associated with offshore tax-free account B, AND the owner of corporation A is married to an executive of corporation C, THEN add a tiny bit of inference of tax evasion by corporation C.” There would be many of these types of rules, perhaps hundreds, and probably written by the journalists themselves to help the system identify meaningful and newsworthy relationships. Other rules might be garnered from common sense reasoning databases, like MIT’s ConceptNet. At the end of the day (or probably just a few seconds later), Watson would spit out 100 leads for reporters to follow. The first step would be to peer behind those leads to see the relevant evidence, rate its accuracy, and further train the algorithm. Sure, those follow-ups might still take months, but it wouldn’t be hard to beat the 15 months the ICIJ took in its investigation.
Pedro Gonçalves

How To Make Your Websites Faster On Mobile Devices | Smashing Mobile - 0 views

  • A recent study (PDF) found that more than 80% of people are disappointed with the experience of browsing Web on mobile devices and would use their smartphones more if the browsing experience improved.
  • A recent study (PDF) found that more than 80% of people are disappointed with the experience of browsing Web on mobile devices and would use their smartphones more if the browsing experience improved.
  • 64% of smartphone users expect websites to load in 4 seconds or less, while the average website takes more than twice that amount, at 9 seconds.
  • ...3 more annotations...
  • On a desktop, only 20% of the time it takes to display a Web page comes from downloading files. The rest of the time is spent processing HTTP requests and loading style sheets, script files and images. It takes even longer on a smartphone because its CPU, memory and cache size are much smaller than a desktop’s.
  • Having a fast website is all about making the hard decisions and getting rid of what’s not at the core of your experience. If it doesn’t add a lot of value, remove it.
  • Reduce DependenciesFewer files to download means fewer HTTP requests and faster loading times. Reduce Image DimensionsOn top of the extra download time, precious processing power and memory are used to resize high-resolution images. Reduce Client-Side ProcessingRethinking the use of JavaScript and keeping it to a minimum are best.
Pedro Gonçalves

Google Launches Content Recommendation Engine For Mobile Sites, Powered By Google+ | Te... - 0 views

  • Google’s launch partner for this service is Forbes, but others can implement these recommendations by just adding a single line of code to their mobile sites.
  • These recommendations, Sternberg told me, are based on social recommendations on the site from your friends on Google+ (only if you are signed in, of course), what the story you just read was about, the story’s author and some of Google’s “secret sauce.”
  • The new Google+-based recommendations, interestingly, only appear once a reader slides back up on a page. This, Google’s analytics show, is a pretty good indicator that a user has finished reading a post (even if there is still more text left on the page). The recommendation widget then slides up from the bottom and one extra click brings up more relevant items for the page. The other option is to show the widget after a user scrolls past a configurable CSS entity.
  • ...1 more annotation...
  • Publishers will be able to manage the recommendations widget from their Google+ publisher accounts. From there, they can decide when exactly the widget should appear and manage a list of pages where the widget shouldn’t appear, as well as a list of pages that should never appear in recommendations.
Pedro Gonçalves

Why Anthony De Rosa Is Joining Circa, And What He Plans To Do When He Gets Th... - 0 views

  • I think in the mobile, in the phone space particularly, I don’t think people have time for opinion and commentary--they just want, “tell me what I need to know, tell me all the facts, tell me what’s going on.” I think on the phone it will probably continue to be that way. I think when we get to the tablet, there may be potential for commentary, for opinion, for bringing in some people who have a specific point of view--if you have time and want to lean back on the couch and read what someone’s take is on something, that might come into play. But I think on the phone, it’s going to be strictly the facts, strictly get to the point, tell me what I need to know, informing people very quickly about different topics
  • if you’re in the business of media or editorial, you’re always going to want to have someone as a human layer--otherwise, it just doesn’t work, I mean I don’t feel like you could ever really present a media product that’s completely automated--those companies are out there and most of them are really crappy.
Pedro Gonçalves

Real-Time Frameworks That Are App-ifying The Web ⚙ Co.Labs ⚙ code + community - 0 views

  •  
    "sher"
Pedro Gonçalves

Forrester: Responsive Design Represents Future of Multi-Touchpoint Web Design - 0 views

  • the usage of a single URL improves site analytics and SEO performance, and sites can easily be resized for new viewing formats.
  • These include longer time required to develop individual responsive pages, the need for code workarounds to account for older legacy browsers, the need for live device testing, non-compatibility with many existing e-commerce and CMS platforms, the need for a front-end rewrite, the need for a phased development approach in large enterprises, and the extra effort required to provide unique experiences for each form factor.
Pedro Gonçalves

A Primer on Responsive Design | UX Magazine - 0 views

  • According to IDC, mobile web browsing will soon eclipse desktop browsing in the U.S. and worldwide. This consumption of mobile content isn’t just happening on the go; 93% of people are now using their mobile devices to browse the Web from their homes, according to a study from Google.
  • The main development methodology behind responsive design is the use of media query functionality in CSS3. Media queries target not only certain device types (e.g., Android vs. iPhone), but actually inspect the physical characteristics of the device that renders the page. For example, the code below “asks” the device if its max horizontal resolution is equal to 480px: <link rel="stylesheet" type="text/css", media="screen and (max-device-width: 480px)", href="http://uxmag.com/iphone.css" /> If it is 480px, the device will load iphone.css. If not, the link is ignored. You can also include media queries in CSS as part of an @media rule:
  • a responsive design approach does not involve putting all of your content in front of the reader. Responsive design is about putting the right content in users’ hands according to the context of their interaction.
Pedro Gonçalves

Owning Your Content In Search: Google Now Makes It Easier To Link Your Website To G+ | ... - 0 views

  • For Google, social media and author authentication help them measure the influence (and trustworthiness) of content and links and, ideally, serve better results. If results have been authenticated with authorship — they’re “owned” by personal and company brands — searchers get better results and advertisers spend more knowing they’re getting more bang for their buck.
  • Now, page owners can link their sites in a few steps: 1) Visit your Google+ page, open its profile, and click ‘Edit profile’ 2) On the About tab, save your website URL, then click the new button, ‘Link website’ 3) Follow the instructions for adding a short line of code to your website’s homepage, then click ‘Test website’
1 - 20 of 37 Next ›
Showing 20 items per page