Giter Site home page Giter Site logo

advent-calendar's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

advent-calendar's Issues

Async and promises

Revisiting an earlier advent calendar article on async, now featuring promises.

Should redirect to current year if any articles exist, not just if viewable

If you hit /, then we redirect you to the most recent year which has articles viewable:

get '/' => sub {                                                                
    my $redirect_year = vars->{current_year};                                   
    while (! grep { $_->{viewable} } @{  _articles_viewable($redirect_year) }) { 
        $redirect_year--;                                                       
    }                                                                           
    debug "going to $redirect_year";                                            
    redirect("/$redirect_year");                                                
};

That means that, for a twelve days of Dancer year like this year, hitting just https://advent.perldancer.org/ redirects you to the most recent year which has viewable articles - rather than this year with the articles not yet viewable since we've not reached the 13th... https://advent.perldancer.org/2023

We should be checking for the existence of articles there, presumably by using _article_exists($redirect_year, 24) to check if there's an article for the 24th on that year (or could use the 13th)

Dancer2::Plugin::Minion

A follow up to my 2018 article... discuss the new plugin and what we can do with Minion out of the box.

Quarren CMS

Tell the community about the awesome Quarren CMS, written in Dancer2.

Advent Calendar 2016

  • Day 1: Another year of Dancing
  • Day 2: State of the Ecosystem
  • Day 3: Medium-Scale Dancer (part 1)
  • Day 4: Medium-Scale Dancer (part 2)
  • Day 5: Medium-Scale Dancer (part 3)
  • Day 6: Medium-Scale Dancer (part 4)
  • Day 7: Medium-Scale Dancer (part 5)
  • Day 8: Automatic restarts
  • Day 9: New parameters
  • Day 10: Exception handling, error logging and user messages made easy
  • Day 11: Dancer I18N with Log::Report
  • Day 12: How to speed up Dancer2 PT. 1
  • Day 13: How to speed up Dancer2 PT. 2
  • Day 14: How to speed up Dancer2 PT. 3
  • Day 15: How to speed up Dancer2 PT. 4
  • Day 16: How to speed up Dancer2 PT. 5
  • Day 17: Configuring your Dancer Apps
  • Day 18: Asynchronous Dancer2
  • Day 19: Changing your session ID
  • Day 20: send_as keyword
  • Day 21: Reducing boilerplate and managing exports in Dancer2
  • Day 22: New plugin architecture
  • Day 23: How to avoid XSS issues easily
  • Day 24: Contributing to Dancer2 (@cromedome)

Ideas:

  • Supporting 304 Not Modified.
  • D2P2.
  • Searching with multiple fields and pagination.
  • Odds and ends.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.