Ruby Best Practices


Gregory T. Brown - 2009
    Written by the developer of the Ruby project Prawn, this concise book explains how to design beautiful APIs and domain-specific languages with Ruby, as well as how to work with functional programming ideas and techniques that can simplify your code and make you more productive. You'll learn how to write code that's readable, expressive, and much more.Ruby Best Practices will help you:Understand the secret powers unlocked by Ruby's code blocks Learn how to bend Ruby code without breaking it, such as mixing in modules on the fly Discover the ins and outs of testing and debugging, and how to design for testability Learn to write faster code by keeping things simple Develop strategies for text processing and file management, including regular expressions Understand how and why things can go wrong Reduce cultural barriers by leveraging Ruby's multilingual capabilities This book also offers you comprehensive chapters on driving code through tests, designing APIs, and project maintenance. Learn how to make the most of this rich, beautiful language with Ruby Best Practices.

Functional-Light JavaScript: Pragmatic, Balanced FP in JavaScript


Kyle Simpson - 2017
     Functional Programming (FP) is an incredibly powerful paradigm for structuring code that yields more robust, verifiable, and readable programs. If you've ever tried to learn FP but struggled with terms like "monad", mathematical concepts like category theory, or symbols like λ, you're not alone. Functional-Light programming distills the most vital aspects of FP—function purity, value immutability, composition, and more!—down to approachable JavaScript patterns. Rather than the all-or-nothing dogmatism often encountered in FP, this book teaches you how to improve your programs line by line.

Test-Driven JavaScript Development


Christian Johansen - 2010
     Test-Driven JavaScript Development is a complete, best-practice guide to agile JavaScript testing and quality assurance with the test-driven development (TDD) methodology. Leading agile JavaScript developer Christian Johansen covers all aspects of applying state-of-the-art automated testing in JavaScript environments, walking readers through the entire development lifecycle, from project launch to application deployment, and beyond.Using real-life examples driven by unit tests, Johansen shows how to use TDD to gain greater confidence in your code base, so you can fearlessly refactor and build more robust, maintainable, and reliable JavaScript code at lower cost. Throughout, he addresses crucial issues ranging from code design to performance optimization, offering realistic solutions for developers, QA specialists, and testers.Coverage includes - Understanding automated testing and TDD - Building effective automated testing workflows - Testing code for both browsers and servers (using Node.js) - Using TDD to build cleaner APIs, better modularized code, and more robust software - Writing testable code - Using test stubs and mocks to test units in isolation - Continuously improving code through refactoring - Walking through the construction and automated testing of fully functional softwareThe accompanying Web site, tddjs.com, contains all of the book's code listings and additional resources.

Learning GraphQL: Declarative Data Fetching for Modern Web Apps


Eve Porcello - 2018
    With this practical guide, Alex Banks and Eve Porcello deliver a clear learning path for frontend web developers, backend engineers, and project and product managers looking to get started with GraphQL.You'll explore graph theory, the graph data structure, and GraphQL types before learning hands-on how to build a schema for a photo-sharing application. This book also introduces you to Apollo Client, a popular framework you can use to connect GraphQL to your user interface.Explore graph theory and review popular graph examples in use todayLearn how GraphQL applies database querying methods to the internetCreate a schema for a PhotoShare application that serves as a roadmap and a contract between the frontend and backend teamsUse JavaScript to build a fully functioning GraphQL service and Apollo to implement a clientLearn how to prepare GraphQL APIs and clients for production

The Darkest Web: Drugs, Death and Destroyed Lives... The Inside Story of the Internet's Evil Twin


Eileen Ormsby - 2018
    Inside the dangerous world that lurks beneath the bright, friendly light of your internet screen.Dark...A kingpin willing to murder to protect his dark web drug empire. A corrupt government official determined to avoid exposure. The death of a dark web drugs czar in mysterious circumstances in a Bangkok jail cell, just as the author arrives there.Who is Variety Jones and why have darknet markets ballooned tenfold since authorities shut down the original dark web drugs bazaar, Silk Road? Who are the kingpins willing to sell poisons and weapons, identities and bank accounts, malware and life-ruining services online to anyone with a wallet full of Bitcoin? Darker…A death in Minnesota leads detectives into the world of dark web murder-for-hire where hundreds of thousands of dollars in Bitcoin is paid to arrange killings, beatings and rapes. Meanwhile, the owner of the most successful hitman website in history is threatening the journalists who investigate his business with a visit from his operatives - and the author is at the top of his list. Darkest…People with the most depraved perversions gather to share their obscene materials in an almost inaccessible corner of the dark web. A video circulates and the pursuit of the monsters responsible for 'Daisy's Destruction' lead detectives into the unimaginable horror of the world of hurtcore. There's the world wide web - the internet we all know that connects us via news, email, forums, shopping and social media. Then there's the dark web - the parallel internet accessed by only a select few. Usually, those it connects wish to remain anonymous and for good reason.Eileen Ormsby has spent the past five years exploring every corner of the Dark Web. She has shopped on darknet markets, contributed to forums, waited in red rooms and been threatened by hitmen on murder-for-hire sites. On occasions, her dark web activities have poured out into the real world and she has attended trials, met with criminals and the law enforcement who tracked them down, interviewed dark web identities and visited them in prison.This book will take you into the murkiest depths of the web's dark underbelly: a place of hitmen for hire, red rooms, hurtcore sites and markets that will sell anything a person is willing to pay for - including another person. The Darkest Web.

A Brief History of Earth: Four Billion Years in Eight Chapters


Andrew H. Knoll - 2021
    Probably most or even all of the above. The story of our home planet and the organisms spread across its surface is far more spectacular than any Hollywood blockbuster, filled with enough plot twists to rival a bestselling thriller. But only recently have we begun to piece together the whole mystery into a coherent narrative. Drawing on his decades of field research and up-to-the-minute understanding of the latest science, renowned geologist Andrew H. Knoll delivers a rigorous yet accessible biography of Earth, charting our home planet's epic 4.6 billion-year story. Placing twenty first-century climate change in deep context, A Brief History of Earth is an indispensable look at where we’ve been and where we’re going.Features original illustrations depicting Earth history and nearly 50 figures (maps, tables, photographs, graphs).

Testable JavaScript


Mark Ethan Trostler - 2012
    This book shows you what writing and maintaining testable JavaScript for the client- or server-side actually entails, whether you’re creating a new application or rewriting legacy code.From methods to reduce code complexity to unit testing, code coverage, debugging, and automation, you’ll learn a holistic approach for writing JavaScript code that you and your colleagues can easily fix and maintain going forward. Testing JavaScript code is complicated. This book helps you simply the process considerably.Get an overview of Agile, test-driven development, and behavior-driven developmentUse patterns from static languages and standards-based JavaScript to reduce code complexityLearn the advantages of event-based architectures, including modularity, loose coupling, and reusabilityExplore tools for writing and running unit tests at the functional and application levelGenerate code coverage to measure the scope and effectiveness of your testsConduct integration, performance, and load testing, using Selenium or CasperJSUse tools for in-browser, Node.js, mobile, and production debuggingUnderstand what, when, and how to automate your development processes

In Control: Dangerous Relationships and How They End in Murder


Jane Monckton-Smith - 2021
    Over half the women killed by men are killed by a current or ex-partner. On average domestic abuse victims are assaulted 68 times before calling the police. There is a domestic violence epidemic happening right now, yet as a society we still turn a blind eye to it. In a culture that has normalised misogyny, we determinedly cling to the belief that domestic violence is a private matter in which both parties bear some responsibility. Even our legal system legitimises the idea that people who hurt or kill their partners have snapped and lost control, committed a 'crime of passion'. But domestic violence has a clear pattern. Jealousy. Controlling behaviour. Stalking. Verbal abuse. A history of violence. Specialising in homicide, stalking and coercive control, internationally renowned forensic criminologist and former police officer Jane Monckton-Smith has spent decades researching domestic violence cases that have ended in homicide. From her research she developed an 8-stage timeline which has revolutionised the approach to predicting homicide in domestic abuse cases. Part case study, part social commentary and part memoir of a woman dealing with domestic homicide, In Control shows that there are clear signs when a relationship is about to turn violent - we've just been trained not to see them.

What Every Web Developer Should Know About HTTP (OdeToCode, #1)


K. Scott Allen - 2012
    We'll cover resources, messages, cookies, and authentication protocols. We'll look at how HTTP clients can use persistent and parallel connections to improve performance,and see how the web scales to meet demand using cache headers andproxy servers. By the end of the book you will have the knowledge tobuild better web applications and web services.

Breaking News: The Remaking of Journalism and Why It Matters Now


Alan Rusbridger - 2018
    Once-powerful newspapers have lost their clout or been purchased by owners with particular agendas. Algorithms select which stories we see. The Internet allows consequential revelations, closely guarded secrets, and dangerous misinformation to spread at the speed of a click.In Breaking News, Alan Rusbridger demonstrates how these decisive shifts have occurred, and what they mean for the future of democracy. In the twenty years he spent editing The Guardian, Rusbridger managed the transformation of the progressive British daily into the most visited serious English-language newspaper site in the world. He oversaw an extraordinary run of world-shaking scoops, including the exposure of phone hacking by London tabloids, the Wikileaks release of U.S.diplomatic cables, and later the revelation of Edward Snowden's National Security Agency files. At the same time, Rusbridger helped The Guardian become a pioneer in Internet journalism, stressing free access and robust interactions with readers. Here, Rusbridger vividly observes the media's transformation from close range while also offering a vital assessment of the risks and rewards of practicing journalism in a high-impact, high-stress time.

Spirals in Time: The Secret Life and Curious Afterlife of Seashells


Helen Scales - 2015
    Members of the phylum Mollusca are among the most ancient animals on the planet. Their shells provide homes for other animals, and across the ages, people have used shells not only as trinkets but also as a form of money, and as powerful symbols of sex and death, prestige and war.The science and natural history of shells are woven into a compelling narrative, revealing their cultural importance and the ways they have been used by humans over the millennia. (Seashells have even been tapped as a source of mind-bending drugs.) Marine biologist Helen Scales shows how seashells have been sculpted by the fundamental rules of mathematics and evolution; how they gave us color, gems, food, and new medicines.After surviving multiple mass extinctions millions of years ago, molluscs and their shells still face an onslaught of anthropogenic challenges, including climate change and corrosive oceans. But rather than dwelling on all that is lost, Scales emphasizes that seashells offer an accessible way to reconnect people with nature, helping to bridge the gap between ourselves and the living world. Spirals in Time: The Secret Life and Curious Afterlife of Seashells shows why nature matters, and reveals the hidden wonders that you can hold in the palm of your hand.

How to


Michael Bierut - 2015
    Featuring more than thirty-five of his projects, it reveals his philosophy of graphic design—how to use it to sell things, explain things, make things look better, make people laugh, make people cry, and (every once in a while) change the world. Specially chosen to illustrate the breadth and reach of graphic design today, each entry demonstrates Bierut’s eclectic approach. In his entertaining voice, the artist walks us through each from start to finish, mixing historic images, preliminary drawings (including full-size reproductions of the notebooks he has maintained for more than thirty-five years), working models and rejected alternatives, as well as the finished work. Throughout, he provides insights into the creative process, his working life, his relationship with clients, and the struggles that any design professional faces in bringing innovative ideas to the world.Offering insight and inspiration for artists, designers, students, and anyone interested in how words, images, and ideas can be put together, How to provides insight to the design process of one of this century’s most renowned creative minds.

Eloquent JavaScript: A Modern Introduction to Programming


Marijn Haverbeke - 2010
    I loved the tutorial-style game-like program development. This book rekindled my earliest joys of programming. Plus, JavaScript!" —Brendan Eich, creator of JavaScriptJavaScript is the language of the Web, and it's at the heart of every modern website from the lowliest personal blog to the mighty Google Apps. Though it's simple for beginners to pick up and play with, JavaScript is not a toy—it's a flexible and complex language, capable of much more than the showy tricks most programmers use it for.Eloquent JavaScript goes beyond the cut-and-paste scripts of the recipe books and teaches you to write code that's elegant and effective. You'll start with the basics of programming, and learn to use variables, control structures, functions, and data structures. Then you'll dive into the real JavaScript artistry: higher-order functions, closures, and object-oriented programming.Along the way you'll learn to:Master basic programming techniques and best practices Harness the power of functional and object-oriented programming Use regular expressions to quickly parse and manipulate strings Gracefully deal with errors and browser incompatibilities Handle browser events and alter the DOM structure Most importantly, Eloquent JavaScript will teach you to express yourself in code with precision and beauty. After all, great programming is an art, not a science—so why settle for a killer app when you can create a masterpiece?

HTML5 for Publishers


Sanders Kleinfeld - 2011
    Learn how to: Intersperse audio/video with textual content Create a graphing calculator to display algebraic equations on the Canvas Use geolocation to customize a work of fiction with details from the reader's locale Use Canvas to add interactivity to a children's picture book

The System: Who Owns the Internet, and How It Owns Us


James Ball
    All are owned by someone, financed by someone, regulated by someone.We refer to the internet as abstract from reality. By doing so, we obscure where the real power lies.In this powerful and necessary book, James Ball sets out on a global journey into the inner workings of the system. From the computer scientists to the cable guys, the billionaire investors to the ad men, the intelligence agencies to the regulators, these are the real-life figures powering the internet and pulling the strings of our society.Ball brilliantly shows how an invention once hailed as a democratising force has concentrated power in places it already existed – that the system, in other words, remains the same as it did before.