Skip to main content

Posts

Showing posts with the label webdev

Play The Flex Box Adventure

  Coding Fantasy is a new platform for learning CSS, HTML and JavaScript by playing coding games. It already offers a free fun educational game for learning how to use the CSS Flex Box mode and here we look at what it entails. Coding Fantasy's creator Nick Bull has provided a well thought out gamified approach for learning about web development. The first game, Flex Box Adventure, uses three simple sprites - the Knight, Mage and Rogue- who must defeat the evil forces. Defeating them means placing your heroes at the same position as the evil ones by using flexbox's instructions like  flex-direction,justify-content  and  align-items . Check the pictures below for an example of how it works: Challenge Solution #field { display: flex; flex-direction: column; justify-content: flex-end; } full article on i-programmer.info

Perl for the Web: Mojolicious 8.0 Released

Far gone are the days when you wrote Perl for the web in just CGI. Dancer, Catalyst and Mojolicious are the modern ways of going about it, with Mojo's version 8.0, code-named "Supervillain", being released just last week. Each framework has its own distinct advantages, with Dancer being considered the most lightweight and with the lowest entry barrier; and Catalyst being considered the most heavyweight and with a steep learning curve. Mojo floats somewhere in the middle, its own strongest point being its claim to be a  "Real time Web framework"  due to its Websockets and non-blocking/async capabilities provided out of the box. With that said, let's discover what Mojo's newest version has to offer. The most outstanding feature, given that Mojo is based on an Event loop à la NodeJS, is the introduction of the  "Mojo::Promise"  module, a Perl implementation of Promises that simplifies and enhances the asynchronous operations callback mechan...

Insider's Guide to Udacity Android Developer Nanodegree part 7-Full Stack Android

Yes, the final stage of the Capstone and graduation, the endless sense of relief. It was challenging, it was hard, but in the end everything worked out alright and I gained my Android Developer Nanodegree. So what did I think of the whole experience. If you just want to know my final thoughts on a year-long course of study turn to the last page. At the final stage it wasn't just a Capstone project that spanned the narrow boundaries of developing for Android only. It also required work on the infrastructure as the Android app would have to communicate with the backend Digital Ocean VPS hosting the data. So in this final part of the  Insider's Guide To Udacity Android Developer Nanodegree   I'm not just going to go through the building of a mobile app, looking into the topics of Fragments, Loaders, AsyncTasks, Retrofit network calls, GSON parsing and Memory leaks, only.I'm also going to go through the work that took place server side, looking into Web based MVC, H...

Headless Chrome and the Puppeteer Library for Scraping and Testing the Web

With the advent of Single Page Applications, scraping pages for information as well as running automated user interaction tests has become much harder due to its highly dynamic nature. The solution? Headless Chrome and the Puppeteer library. While there's always been Selenium, PhantomJS and others, and despite headless Chrome and Puppeteer arriving late to the party, they make for valuable additions to the team of web testing automation tools, which allow developers to simulate interaction of real users with a web site or application. Headless Chrome is able to run without Puppeteer, as it can be programmatically controlled through the  Chrome DevTools Protocol , typically invoked by attaching to a remotely running Chrome instance: chrome --headless --disable-gpu                      --remote-debugging-port=9222 Subsequently loading the protocol's sideckick module 'chrome-re...

Data Entry with Xataface

Xataface is a full-featured PHP Web application framework for building a MySQL database front-end for, targeted at non-technical users who will do the task of actually entering data. Based on real life experience of using it for a search and comparison website for smart devices, we explain the why and how of using it. In web development the focus is always on the development side. But what about the infrastructure, the crucial data backend that the web site is going to operate on? It really depends on the content. In some cases a CMS will be enough but in a data-driven web site like that of an e-shop where you have to combine information from a variety of tables staying true to the relational model, a CMS might not be the most appropriate solution. So where does that leaves us? Entering data using raw SQL queries might be possible for a low volume site with simple entity relationships, but for anything more involved it's not practical. We faced this dilemma when b...

smadeseek.com - Smart Device Seeker - Find your new Tablet, Smart Phone and Smart Watch with ease!

We are a new Startup that aims to build a web site that will be the most accurate database for smart devices as it will allow users to search for their ideal smart device (phone,tablet,smartwatch) by going through specialized criteria, like the width of the device, the amount of megapixels the rear camera has, how many fps video can it shoot, etc. Because it unifies all smart devices it makes easy to seek the ideal device and help you find your next Tablet, Smart Phone and Smart Watch, acting as the Buyer's Consultant .... Proudly built with Perl and the Dancer framework Visit smadeseek.com

All about Mojolicious – interview of Sebastian Riedel part 2

Does the dependency free nature of Mojolicious act as an invitation to people familiar with other frameworks (i.e. Ruby on Rails) and languages (i.e. PHP)? That aside, what other factors/features would lure such developers to the framework? SR: The dependency free nature of Mojolicious is actually more of a myth, the truth is that installing Mojolicious is simply a very fast and pleasant experience. One of the ways in which we’ve done this, is to make hard to install 3rd party modules like IO::Socket::SSL and Net::DNS::Native optional. full interview on Josettorama

All about Mojolicious – interview of Sebastian Riedel part 1

Our journey into the world of Perl’s Web frameworks would not be complete without Mojolicious, therefore we talked to Sebastian Riedel, Mojolicious’ mastermind and Catalyst’s original founder. We looked at Mojolicious’ history: why Sebastian left Catalyst for Mojolicious , present: what does the framework actually do , the project’s future: Sebastian’s long-term plans , and whether Perl6 will have an effect on the project. We also get more technical with questions like why not opt for a DSL like Dancer does, what is meant by ‘real time web framework’ , whether the framework is dependency free and much more. full interview on Josettorama

Geekuni Dancer Web Development Course

The Web Development course sets out to teach you Dancer 2, a topic that will be unfamiliar to most. When starting out with something new you have the choice of possibly a book, if there is one, rely on the manual (good luck with that) or follow the sparse tutorials found in the blogosphere. Unstructured, time consuming, just not easy. What better way to get started than following a rapid, carefully planned curriculum, with structured, cohesive material and real world value? That’s exactly where this web based course steps in. full review on i-programmer

All about Dancer – interview of Sawyer X

After we looked into Catalyst, we continue our exploration of Perl’s land of Web Frameworks, with Dancer.We talk about it to one of the core devs, Sawyer X, who kindly answered our questions in a very detailed and explanatory way, rendering the interview enjoyable and comprehensible even by non techies. The interview, which spans three parts (to be published weekly), did not stop there however; we also asked his opinion and knowledge on finer grained aspects of the craft that is developing for the Web, such as what the advantage of routing over query strings is, MVC vs Routes, Perl vs PHP vs Ruby, and why CGI.pm must die! Full interview on Josettorama

All about Catalyst – interview of Matt S. Trout (Part 3 of 3)

What about the other Perl frameworks, Dancer and Mojolicious? How do they compare to Catalyst? Dancer’s big strength is making things quick and easy for smaller apps; you don’t have to think in terms of OO unless you want to and plugins generally shove a bunch of extra keywords into your namespace that are connected to global or per-request variables. Where Catalyst doesn’t have an exact opinion about a lot of the structure of your code but very definitely insists that you pick one and implement it, Dancer basically lets you do whatever you like and not really think too much about it . That really isn’t meant as a criticism: somewhere along the line I picked up a commit bit to Dancer as well and they’ve achieved some really good things – providing something that’s as little conceptual overhead as possible for smaller apps, and something where there’s a very direct mapping between the concepts involved and what’s actually going to happen in terms of request dispatc...

All about Catalyst – interview of Matt S. Trout (Part 2 of 3)

Does all that flexibility come at a price? The key price is that while there are common ways to do things, you’re rarely going to find One True Way to solve any given problem. It’s more likely to be “here’s half a dozen perfectly reasonable ways, which one is best probably depends on what the rest of your code looks like”, plus while there’s generally not much integration specific code involved, everything else is a little more DIY than most frameworks seem to require. I can put together a catalyst app that does something at least vaguely interesting in a couple hours, but doing the sort of 5 minute wow moment thing that intro screencasts and marketing copy seem to aim for just doesn’t happen, and often when people first approach catalyst they tend to get a bit overwhelmed by the various features and the way you can put them together. There’s a reflex of “this is too much, I don’t need this!”. But then a fair percentage of them come back two or three years later, have ...

All about Catalyst – interview of Matt S. Trout (Part 1 of 3)

We talk to Matt S. Trout, technical team leader at consulting firm Shadowcat Systems Limited, creator of the DBIx::Class ORM and of many other CPAN modules, and of course co-maintainer of the Catalyst web framework. These are some of his activities, but for this interview we are interested in Matt’s work with Catalyst. Our discussion turned out not to be just about Catalyst though. While discussing the virtues of the framework, we learned, in Matt’s own colourful language, what makes other popular web frameworks tick, managed to bring the consultant out of him who shared invaluable thoughts on architecting software as well as on the possibility of Perl 6 someday replacing Perl 5 for web development. We concluded that there’s no framework that wins by knockout, but that the game’s winner will be decided on points, points given by the final judge, your needs. Full interview on Josettorama