concept ability in category c#

appears as: ability, bility, The ability, bilities
Windows Store App Development

This is an excerpt from Manning's book Windows Store App Development.

  • Charms— The charms bar is conceptually similar to the app bar but isn’t controllable by your application. The charms appear from the right of the screen in response to a swipe from that side or a mouse click in the right corners. It is here that you’ll find the entrance to your app’s settings panel, search and share functionality, integration with devices, and the ability to navigate back to the main Start screen.
  • Every word processor I’ve used since GeoWorks’ GeoWrite on my Commodore 128 has included the capability to wrap text; to align text to the left, center, or right; and sometimes even justify it so it had even text edges on both sides (real-time justification was computationally expensive for those old 8-bit CPUs, so it was a luxury). XAML is no different in this respect in that any inline or TextBlock may use the TextAlignment property and TextWrapping properties to control alignment and word wrapping, respectively. In addition, XAML supports the ability to trim text that’s too long for the available space using the TextTrimming property, a very useful feature when displaying user-generated data of unknown length.

    DSLs in Boo: Domain-Specific Languages in .NET

    This is an excerpt from Manning's book DSLs in Boo: Domain-Specific Languages in .NET.

    It’s important to know your audience—don’t assume anything about your audience’s ability or inability to write code. Although you might not expect them to understand programming, they may have experience in automating small tasks using VBA and Excel macros.

    My approach, usually, is to avoid this requirement as much as possible. I don’t allow such changes to be made in production. It’s still possible, but it’s a manual process that’s there for emergency use only. Like the ability to log in to the production database and run queries, it should be avoided if possible.

    But disallowing changes isn’t always possible. If the client needs the ability to edit DSL scripts in production, you need to provide a way for them to do so. What I have found to be useful is to provide a way to not work directly on production. Instead, we work on scripts stored in a source control server that is considered part of the application itself. You can see how it works in figure 12.2.

    LINQ in Action

    This is an excerpt from Manning's book LINQ in Action.

    Table 1.1. LINQ’s design goals and the motivations behind them

    Goal

    Motivation

    Integrate objects, relational data, and XML Unified query syntax across data sources to avoid different languages for different data sources. Single model for processing all types of data regardless of source or in-memory representation.
    SQL and XQuery-like power in C# and VB Integrate querying abilities right into the programming languages.
    Extensibility model for languages Enable implementation for other programming languages.
    Extensibility model for multiple data sources Be able to access other data sources than relational databases or XML documents. Allow other frameworks to enable LINQ support for their own needs.
    Type safety Compile-time type checking to avoid problems that were previously discovered at run-time only. The compiler will catch errors in your queries.
    Extensive IntelliSense support (enabled by strong-typing) Assist developers when writing queries to improve productivity and to help them get up to speed with the new syntax. The editor will guide you when writing queries.
    Debugger support Allow developers to debug LINQ queries step by step and with rich debugging information.
    Build on the foundations laid in C# 1.0 and 2.0, VB.NET 7.0 and 8.0 Reuse the rich features that have been implemented in the previous versions of the languages.
    Run on the .NET 2.0 CLR Avoid requiring a new runtime and creating unnecessary deployment hassles.
    Remain 100% backward compatible Be able to use standard and generic collections, data binding, existing web and Windows Forms controls, and so on.

    If we really want to draw on the power of the UpdateCheck attribute and have the ability to modify the table schema, we can add a RowVersion or TimeStamp column to each table. The database will automatically update the value of the RowVersion each time the row is changed. Concurrency checks only need to run on the combination of the version and ID columns. All other columns are set to UpdateCheck=Never and the database will assist with the concurrency checking. We used this scheme for the Author class mapping back in chapter 7. Listing 8.3 illustrates the revised Author class, applying the same change as we did in the previous example. Using the TimeStamp column, we can see a streamlined WHERE clause in the Update statement.

    IExecuteResult exposes a ReturnValue of type Object and the ability to access parameter values to the parameters. If the procedure returns a list of objects that we can strongly type, we’ll typically cast the ReturnValue as an ISingleResult<T> . If it can return different types based on internal processing, we would use the IMultipleResults implementation, which allows us to access a specific type via the generic GetResult<TElement> method.