Home New Trending Search
About Privacy Terms
#
#declarative
Posts tagged #declarative on Bluesky

L'#automatisation en quelques mots c'est :
✅Un système fiable et human-friendly, essentiel pour une adoption réussie
✅Des principes de #conception indispensables : #idempotency ...
✅Des bonnes pratiques : comprendre les approches #declarative et #imperative, maîtriser le versioning et les tests

0 0 1 0
Post image

Small drawing I made in my free time! Character sheets will come soon! #pmmm #madokamagica #declarative #telemagica

5 1 1 0

#agenticcoding with left to right auto-regressive transformers works well with imperative languages. #declarative and #functional languages being far superior for #AI are step-children for lack of training data and the transformer architecture. That could change with #textdiffusion models!
1/2

1 0 1 0
≺≻ Modeling Programs as Functions

In functional programming, we try to model our programs around the idea of functions that take in inputs and return outputs.

A webserver, for example, is just this:

```
HTTP request -webserver-> HTTP response
```

A compiler is this:

```
Source code -compiler-> Target Language Code
```

And a file browser window just this:
```
folder path -file browser-> folder view
```

When we go through with this, a big chunk (except for the part at ther boundary where effects should happen) of our program is just Function Composition.

When we apply this idea naively, our programs look like this:

```js title="main.ts"
export const main = (request) => {
    return formatResponse(validateRequest(parseHeaders(request)))
}
```

```elixir title="main.ex"
def main(request) do
  format_response(validate_request(parse_headers(request)))
end
```

```haskell title="main.hs"
main :: Request -> Response
main req = formatResponse(validateRequest(parseHeaders req))
```

```racket title="main.rkt"
(define (main request)
 (format-response (validate-request (parse-headers request))))
```

This is okay (and still waay better that a ton of statements, I'd say), but not it loses the nice property of statements that it's not nested.  
Also, when we try to read/understand the code, we're probably going to read it from right to left (while mentally 'piping' through the arguments in our heads).

If we mentally parse the code like this either way, we can also just write it down like that:

```js title="main.ts"
import { pipe } from 'effect' // for example, but it's pretty easy to write yourself, too

export const main = (request) => {
    return pipe(request,
                parseHeaders,
                validateRequest,
                formatResponse)
}
```

```elixir title="main.ex"
def main(request) do
  request
  |> parse_headers
  |> validate_request
  |> format_response
end
```

```haskell title="main.hs"
main :: Request -> Response
main req = req & parseHeaders & validateRequest & formatResponse
```

```racket title="main.rkt"
(require threading)

(define (main request)
 (~> request
     parse-headers
     validate-request
     format-response))
```

Two more sidenotes:

- I think pipelines are especially useful when paired with something like Elixir's `IO.inspect()`, like this:

```elixir title="main.ex"
def main(request) do
  request
  |> parse_headers
  |> IO.inspect()
  |> validate_request
  |> format_response
end
```

- Pipelines need their functions to be functions of only one arg (in 'effect', for example), or they need to make a choice on where to splice the argument into the function call. Elixir always splices it into the first, while Lisps aren't decided that (decide per-case), and normally have both a `->` (inserts as the first argument), `->>` (inserts as the last argument), as well as `-as->`-variants, which you can call like this:

```elisp title="example.el"
(-as-> topic-string _
  (string-split _ "," t " ")
  (mapcar (lambda (topic) (concat "#" topic)) _)
  (string-join _ " "))
```

≺≻ Modeling Programs as Functions In functional programming, we try to model our programs around the idea of functions that take in inputs and return outputs. A webserver, for example, is just this: ``` HTTP request -webserver-> HTTP response ``` A compiler is this: ``` Source code -compiler-> Target Language Code ``` And a file browser window just this: ``` folder path -file browser-> folder view ``` When we go through with this, a big chunk (except for the part at ther boundary where effects should happen) of our program is just Function Composition. When we apply this idea naively, our programs look like this: ```js title="main.ts" export const main = (request) => { return formatResponse(validateRequest(parseHeaders(request))) } ``` ```elixir title="main.ex" def main(request) do format_response(validate_request(parse_headers(request))) end ``` ```haskell title="main.hs" main :: Request -> Response main req = formatResponse(validateRequest(parseHeaders req)) ``` ```racket title="main.rkt" (define (main request) (format-response (validate-request (parse-headers request)))) ``` This is okay (and still waay better that a ton of statements, I'd say), but not it loses the nice property of statements that it's not nested. Also, when we try to read/understand the code, we're probably going to read it from right to left (while mentally 'piping' through the arguments in our heads). If we mentally parse the code like this either way, we can also just write it down like that: ```js title="main.ts" import { pipe } from 'effect' // for example, but it's pretty easy to write yourself, too export const main = (request) => { return pipe(request, parseHeaders, validateRequest, formatResponse) } ``` ```elixir title="main.ex" def main(request) do request |> parse_headers |> validate_request |> format_response end ``` ```haskell title="main.hs" main :: Request -> Response main req = req & parseHeaders & validateRequest & formatResponse ``` ```racket title="main.rkt" (require threading) (define (main request) (~> request parse-headers validate-request format-response)) ``` Two more sidenotes: - I think pipelines are especially useful when paired with something like Elixir's `IO.inspect()`, like this: ```elixir title="main.ex" def main(request) do request |> parse_headers |> IO.inspect() |> validate_request |> format_response end ``` - Pipelines need their functions to be functions of only one arg (in 'effect', for example), or they need to make a choice on where to splice the argument into the function call. Elixir always splices it into the first, while Lisps aren't decided that (decide per-case), and normally have both a `->` (inserts as the first argument), `->>` (inserts as the last argument), as well as `-as->`-variants, which you can call like this: ```elisp title="example.el" (-as-> topic-string _ (string-split _ "," t " ") (mapcar (lambda (topic) (concat "#" topic)) _) (string-join _ " ")) ```

Threading Macros And Pipes

#Macros #Racket #Functional Programming #Simplicity #Declarative Programming

1 0 1 0
Preview
#microsoft365 #copilot #declarative #agent #capabilities #excel #codeinterpreter | Mahmoud Hassan 🔥 Microsoft 365 Copilot Declarative Agents – Advanced Excel Agent is now Possible and It is GREAT! 💡 Today's feature is one that Microsoft recently released quietly, yet it is already making a...

🔥 Microsoft 365 Copilot Declarative Agents – Advanced Excel Agent is now Possible and It is GREAT!

www.linkedin.com/posts/mahmou...

Sharing is Caring!    
#Microsoft365 #Copilot #declarative #agent #capabilities #excel #CodeInterpreter

1 0 0 0
Post image

Как мы ушли от vendor lock-in: декларативная архитектура, которая не привязана ни к AWS, ни к Яндекс.Облаку Статья ос...

#cloudnative #serverless #vendorlock #aws #kubernetes #declarative #ui #multicloud #architecture

Origin | Interest | Match

3 0 0 0
Post image Post image

🎯 Microsoft 365 Copilot – Declarative agents reassign ownership is now available

www.linkedin.com/posts/mahmou...

Sharing Is Caring!
#Copilot #Microsoft365Copilot #CopilotStudio #declarative #agent #governance

2 0 0 0
Post image

Anyone working with Qt Widgets that wishes for a more declarative way to construct your UI? I hacked together a toy example of something like this, curious to get feedback.

#c++ #cpp #qt #widgets #ui #declarative

1 0 0 0

If you're curious about building #SharePoint agent finder as a #declarative #agent, don’t miss my live demo this week!🎯

#microsoft365dev #SharingIsCaring #Copilot #M365PnP #Microsoft365

1 0 0 0
Preview
🎯 Microsoft 365 Copilot Declarative Agents – Adding Modal Dialog to your DA Actions Adaptive Card is now GA | Mahmoud Hassan 🎯 Microsoft 365 Copilot Declarative Agents – Adding Modal Dialog to your DA Actions Adaptive Card is now GA 💡Interesting update to provide more functionality around the Declarative Agents actions…

🎯 Microsoft 365 Copilot Declarative Agents – Adding Modal Dialog to your DA Actions Adaptive Card is now GA

www.linkedin.com/posts/mahmou...

Sharing Is Caring!
#Copilot #Microsoft365Copilot #Declarative #Agents #AdaptiveCards

1 0 0 0
Post image

Profunctors for UI?
Eryk Ciepiela shows how #CategoryTheory concepts can power fully #declarative, composable user interfaces in #PureScript.

📅 12–13 June 2025 in Krakow
🌐 www.lambdadays.org

4 0 0 0
Original post on android-developers.googleblog.com

Announcing Jetpack Navigation 3 Posted by Don Turner - Developer Relations Engineer Navigating be...

android-developers.googleblog.com/2025/05/announcing-jetpa...

#nav3 #adaptive #layouts #Android #Development #Android #UI #Back #Stack #Compose #Declarative […]

0 0 0 0
Preview
PEPC/explainer.md at main · WICG/PEPC Explainer for the PEPC feature. Contribute to WICG/PEPC development by creating an account on GitHub.

Page Embedded Permission Control (` permission ` element) This is an interesting proposal for a d...

https://github.com/WICG/PEPC/blob/main/explainer.md

#permissions #proposal #language #browsers #standards #declarative #html #markup

Result Details

1 0 0 0
Preview
PEPC/explainer.md at main · WICG/PEPC Explainer for the PEPC feature. Contribute to WICG/PEPC development by creating an account on GitHub.

Page Embedded Permission Control (` permission ` element) This is an interesting proposal for a d...

https://github.com/WICG/PEPC/blob/main/explainer.md

#permissions #proposal #language #browsers #standards #declarative #html #markup

Result Details

0 0 0 0
Angular: declarative event handling There’s always some discussion about “declarative vs. imperative” programming - and both are right.

Because I'm a #declarative fanboy, I created some helper function to consume events from the template and it's an "ok enough" solution for me.
I really wish #Angular had some nicer integration like a "viewChildEvent" function or similar. 😎

blog.flensrocker.de/angular/decl...

1 1 1 0
LinkedIn This link will take you to a page that’s not on LinkedIn

We Built an #Agentic App with #Declarative #Agent Using #TeamsToolkit – No Code Required! No middleware! just using instructions.

- Retrieve and create #SharePoint List items using the #MicrosoftGraph API.
- Fetch data from #AzureAISearch.

Thanks @lee-ford.co.uk.
🎥 Video here: lnkd.in/geWZ5PQc

2 0 0 0

i saw a quick little post about #ChimeraLinux last week. I tried it on a #RaspberryPi, and liked it. I had a spare partition on my desktop and am trying the regular x86_64 version now. Really enjoying it. One can live without #SystemD, and this #Distro is #Declarative and has a fork of C, I believe.

3 0 1 0
Preview
#copilot #microsoft365copilot #declarative #agent #debug | Mahmoud Hassan 🔥 Microsoft 365 Copilot declarative agent debugging experience is here and it’s just great You can now debug your agents directly within Microsoft 365 Copilot. To activate this feature, simply type…

🔥 Microsoft 365 Copilot declarative agent debugging experience is here and it’s just great!

You can now debug your agents directly within Microsoft 365 Copilot.

www.linkedin.com/posts/mahmou...

Sharing is Caring!
#Copilot #Microsoft365Copilot #Declarative #Agent #Debug

1 0 0 0
Preview
#microsoft365 #copilot #declarative #agent #capabilities | Mahmoud Hassan 🎯 Microsoft 365 Copilot Declarative agent - Schema v1.3 What's new!   A new version of the declarative agent manifest schema is available. Declarative agent…

🎯 Microsoft 365 Copilot Declarative agent - Schema v1.3 What's new!

www.linkedin.com/posts/mahmou...

Sharing is Caring!
#Microsoft365 #Copilot #declarative #agent #capabilities

1 0 0 0
Preview
Hello from Agama | Agama A Service-based Linux Installer

Is #openSUSE going for #declarative with the introduction of #Agama ? 🤔

https://agama-project.github.io/

0 0 0 0
Preview
Build A M365 Roadmap Features Tracker Declarative Agent After attending the Microsoft Copilot Developer Camp, I got inspired to build my own army of Declarative Agents-making work smarter, faster, and more efficient! I started with my first Declarative Age...

🚀 New blog Post!
Build a #M365 Roadmap Features Tracker #Declarative Agent!

📌 Explore the repositories:
🔗 Agent: lnkd.in/d-rV5Q2m
🔗 Connector: lnkd.in/dp_RNBsn

Read more:
lnkd.in/dnEyf3Ea

#MicrosoftLearn #AI #LearningJourney #SharingIsCaring #Copilot #CopilotDeveloperCamp #GraphConnector

0 0 0 0
Preview
Mahmoud Hassan on LinkedIn: #copilot #microsoft365copilot #declarative #agent #crewai #ollama… 🎯 Copilot Chat your Enterprise Agents Dashboard and Declarative Agents as your Custom Engine Agents Adapter!   💡In this post, you will learn how to bring all…

🎯 Copilot Chat your Enterprise Agents Dashboard and Declarative Agents as your Custom Engine Agents Adapter!

www.linkedin.com/posts/mahmou...

Sharing is Caring!
#copilot #microsoft365Copilot #declarative #agent #CrewAI #ollama #GitHubModels #azureAIfoundry

0 0 0 0
Preview
Introduction to SwiftUI SwiftUI is Apple's modern UI framework for building declarative and dynamic user interfaces across all Apple platforms. In this tutorial, we'll explore the fundamentals of Sw...

Introduction to SwiftUI #Introduction #Swiftui #Apple #Modern #Ui #Framework #Declarative #Dynamic #User #Interfaces #Ios #Macos #Watchos #Tvos

0 0 0 0
Preview
Mahmoud Hassan on LinkedIn: #copilot #microsoft365copilot #declarative #agent #ollama #deepseek 🎯 Let your Copilot declarative agent think deep with DeepSeek-R1   In recent days, there has been significant attention in the AI community regarding…

🎯 Let your Copilot declarative agent think deep with DeepSeek-R1

www.linkedin.com/posts/mahmou...

Sharing is Caring!
#copilot #microsoft365Copilot #declarative #agent #SemanticKernel #ollama #deepseek

1 0 1 0
Preview
Mahmoud Hassan on LinkedIn: #copilot #microsoft365copilot #declarative #agents #multiagent 🔥 Copilot Declarative Agents - Manger agent with Multi-agent Implementation   I have always believed that the declarative agents instructions is one of the…

🔥 Copilot Declarative Agents - Manger agent with Multi-agent Implementation

www.linkedin.com/posts/mahmou...

Sharing is Caring!
#Copilot #Microsoft365Copilot #Declarative #agents #multiagent

0 0 0 0
Post image

🎯 Copilot Declarative agents with Planning and Multi-Step Generation

www.linkedin.com/posts/mahmou...

#Microsoft365Copilot #declarative #agents

0 0 0 0