
Cranbrook, British Columbia Web Design & Development Articles
Latest articles from around the web
Here's what was popular in the PHP community one year ago today:Danny van Kooten: Moving from PHP (Laravel) to Go TutsPlus.com: Working With PHP Arrays in the Right Way Amazon Web Services: PHP application logging with Amazon CloudWatch Logs and Monolog PHP Town Hall Podcast: Episode 53: Developer Relations, Travel, and Bedbugs with Jessica Rose Delicious Brains Blog: Microcaching WordPress in Nginx to Improve Server Requests by 2,400% TechBeacon.com: 35 programming habits that make your code smell Hackernoon.com: How to configure PHPStorm to use PHP-CS-Fixer Voices of the ElePHPant: Interview with Adam Englander Laravel News: Building an Interactive Voice Response System with Laravel and Nexmo Gundars Meness: Unit Testing - The Big Picture CloudWays Blog: Phil Sturgeon Talks About API Development, PHP-FIG, PHP Books And The Future Of PHP SitePoint PHP Blog: How Privileged Are Programmers? Are You a John, Too? Cal Evans: Thank you Derick Rethans for 15 years of XDebug Freek van der Herten: Dropbox will turn off v1 of their API soon. It's time to update your PHP appli
Business or corporate presentation templates need great visualisations for plans, ideas, management and trends. The following presentation templates feature PowerPoint slides that are perfect for business, SEO, marketing and marketing plans. All of these have beautiful modern and minimal design. These templates include templates for diagrams, maps, charts, textual and image data, and all of them […]
What Is Python? Python is the most popular language of the 21st century, and it’s also one of the easiest languages to learn. This language is widely used on web… The post Discover the Best Places To Learn Python appeared first on CSS Author.
I write about minimal Web APIs in 2016 and my goal has always been for "dotnet server.cs" to allow for a single file simple Web API. Fast forward to 2021 and there's some great work happening again in the minimal API space! Let's do a 'dotnet new web' with the current .NET 6 preview. I'm on .NET 6 preview 7. As mentioned in the blog: We updated .NET SDK templates to use the latest C# language features and patterns. We hadn't revisited the templates in terms of new language features in a while. It was time to do that and we'll ensure that the templates use new and modern features going forward. The following language features are used in the new templates: Top-level statements async Main Global using directives (via SDK driven defaults) File-scoped namespaces Target-typed new expressions Nullable reference types This is pretty cool. Perhaps initially a bit of a shock, but this a major version and a lot of work is being done to make C# and .NET more welcoming. All your favorite things are still there and will still work but we want to explore what can be done in this new space. Richard puts the reasoning very well: The templates are a much lower risk pivot point, where we're able to set what the new "good default model" is for new code without nearly as much downstream consequence. By enabling these features via project templates, we're getting the best of both worlds: new code starts with these features enabled but existing code isn't impacted when you upgrade. This means you'll see new things when you make something totally new from scratch but your existing stuff will mostly work just fine. I haven't had any trouble with my sites. Let's look at a super basic hello world that returns text/plain:var builder = WebApplication.CreateBuilder(args);var app = builder.Build();if (app.Environment.IsDevelopment()){ app.UseDeveloperExceptionPage(); }app.MapGet("/", () => "Hello World!");app.Run(); Slick. Note that I made line 3 (which is optional) just be one line to be terse. Not needed, just trying on these new shoes. If we make this do more and support MVC, it's just a little larger. I could add in app.MapRazorPages() if I wanted instead of MapControllerRoute, which is what I use on my podcast site.var builder = WebApplication.CreateBuilder(args);// Add services to the container.builder.Services.AddControllersWithViews();var app = builder.Build();// Configure the HTTP request pipeline.if (app.Environment.IsDevelopment()){ app.UseDeveloperExceptionPage();}else{ app.UseExceptionHandler("/Home/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts();}app.UseHttpsRedirection();app.UseStaticFiles();app.UseRouting();app.UseAuthorization();app.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}");app.Run(); Back to the original Web API one. I can add Open API support by adding a reference to Swashbuckle.AspNetCore and then adding just a few lines:var builder = WebApplication.CreateBuilder(args);builder.Services.AddEndpointsApiExplorer();builder.Services.AddSwaggerGen();var app = builder.Build();if (app.Environment.IsDevelopment()){ app.UseDeveloperExceptionPage();}app.UseSwagger();app.MapGet("/", () => "Hello World!");app.UseSwaggerUI();app.Run(); Then I hit https://localhost:5001/swagger and I get the SwaggerUI and a little WebAPI Tester: Anuraj has a great blog where he goes deeper and pokes around David Fowlers GitHub and creates a minimal WebAPI with Entity Framework and an in-memory database with full OpenAPI support. He put the source at at https://github.com/anuraj/MinimalApi so check that out. Bipin Joshi did a post also earlier in June and explored in a bit more detail how to hook up to real data and noted how easy it was to return entities with JSON output as the default. For example:app.UseEndpoints(endpoints => { endpoints.MapGet("/api/employees",([FromServices] AppDbContext db) => { return db.Employees.ToList(); });...snip...} That's it! Very clean. Dave Brock did a tour as well and did Hello World in just three lines, but of course, you'll note he used WebApplication.Create while you'll want to use a Builder as seen above for real work.var app = WebApplication.Create(args);app.MapGet("/", () => "Hello World!");await app.RunAsync(); Dave does point out how nice it is to work with simple models using the C# record keyword which removes a LOT of boilerplate cruft. Check this out!var app = WebApplication.Create(args);app.MapGet("/person", () => new Person("Scott", "Hanselman"));await app.RunAsync(); public record Person(string FirstName, string LastName); That's it, and if you hit /person you'll get back a nice JSON WebAPI with this result:{ firstName: "Scott", lastName: "Hanselman"} Dig even deeper by checking out Maria Naggaga's presentation in June that's on YouTube where she talks about the thinking and research behind Minimal APIs and shows off more complex apps. Maria also did another great talk in the same vein for the Microsoft Reactor so check that out as well. Is this just about number of lines of code? Have we moved your cheese? Will these scale to production? This is about enabling the creation of APIs that encapsulate best practices but can give you the "middleware-like" performance with the clarity and flexibility that was previous available with all the ceremony of MVC. Here's some more resources: David Fowler's GitHub demo https://github.com/davidfowl/dotnet6minimalapi/tree/main/Dotnet6_Minimal_API A ToDo API as a Minimal API https://github.com/davidfowl/CommunityStandUpMinimalAPI Exploring what Integration Testing looks like in a .NET 6 world by Martin Costello https://github.com/martincostello/dotnet-minimal-api-integration-testing I'll be exploring Martin's codebase next! Have fun! Lots of cool things happening this year, even in the middle of the panini. Stay safe, friends. Sponsor: Pluralsight helps teams build better tech skills through expert-led, hands-on practice and clear development paths. For a limited time, get 50% off your first month and start building stronger skills.(C) 2021 Scott Hanselman. All rights reserved.
Technical skills at the highest level. You will see no difference to a high-resolution photo, but these are actually hand drawn paintings. Start doubting your eyes! Sensazioni This amazing art was created by Diego Fazio. [...]
At this stage, with so many websites into existence, it can be a tad difficult to leave your mark. Of course, your unique services/products could set you apart; however, with a mundane website layout and uninteresting visuals, it can be hard to achieve originality. This is where typography comes into the picture. What Is Typography? To some people, typography is an art; while to others, it is a way of showcasing their personality into their products by keeping things simple yet creative. In other words, typography is the skill of learning to use the right text or font in the … Continue reading →Visit us at InstantShift.com
Most modern programming languages have some form of automated garbage collection mechanism that takes up the tasks of memory management on behalf of the programmer. This typically happens by identifying objects that are no longer referenced by the program in execution and marking them for removal. The heap space of the memory must be recycled […] The post Tricolor Algorithms in Go appeared first on Developer.com.
Using watercolor backgrounds and textures, with a watercolor painting effect, is a trend that took the world of design by surprise. These unique, colorful backgrounds can work beautifully with typography and simple design elements to give any design a fun edge. The background is an important part of any design project. Whether it's a website […]
In today’s Adobe Illustrator tutorial I’m going to share some useful techniques for creating a vintage style engraved text effect just like the illustrations you see on paper money or banknotes. By applying transformations and effects using Illustrator’s Appearance panel we can preserve the live text, rather than have to first outline the text into […] The post How to Create a Money Text Effect in Adobe Illustrator appeared first on Spoon Graphics.
Get your hands on this FREE Wedding Invitation Vector pack, which includes everything you need to create wedding themed cards and invites. It includes a large handful of 100% scalable design elements, patterns, and invites all with editable colors and text. Read More
About The Coding Studio Inc.
Developing professional web applications
for Cranbrook, British Columbia, for 20 years!
Consultation Services
With years of experience and many satisfied customers, we provide the direction and assistance you require.
Custom Web Development
We specialize in complex custom web projects, from small business websites to corporate applications.
Increase Profits
We create an experience which converts more leads and retains more customers, which increases profits.
Reduce Expenses
We help to simplify and automate employee tasks, which reduces payroll and other expenses.
What customers have said
TestimonialsSainte-Geneviève-de-Berthier,Quebec Web Design & Development
Val-Shefford,Quebec Web Design & Development
Whitewater Region,Ontario Web Design & Development
Richmond,New Brunswick Web Design & Development
Caledon,Ontario Web Design & Development
Mattawa,Ontario Web Design & Development
Gatineau,Quebec Web Design & Development
Nicolet,Quebec Web Design & Development