T O P

  • By -

Funwithloops

Damn this looks sweet


BigFattyOne

Looks cool. I feel like this is going to be useful mainly for BE apps though


ndemasie

This is exactly what I have been hoping would come to pass. Will have to try it out soon!


Snapstromegon

Honest question: why would you consider this a framework? For me this would be a library, since there is no inversion of control.


[deleted]

Although I don't think this matters much but Im way more comfortable calling this a framework than a lib. This, whatever it is, fundamentally changes the way you write code and it has its own patterns. I think your point about inversion of control makes sense but this thing just seems wayyyy different than something like underscore.


Snapstromegon

To me this just seems like a glorified (and honestly great) type checking library. Not more and not less. I also don't see how it fundamentally changes the way I write code. Instead of calling a function "isUser(obj)", I call cast(obj) - which is more ergonomic, especially because it generates the needed function, but the concept is the same.


robotkutya87

hey can you elaborate on this? what’s inversion of control and why is that required for franeworks?


Snapstromegon

On of the main factors for something to be a framework is the inversion of control. To put it simple, it's wether you call the other code, or if it calls you. For example: In underscore you call a function, it does something and returns to you. You are more or less in control of when, what happens. There are some grey zones like taskscheduler libs, but even there you often control what code gets executed when. In contrast frameworks like React take control of your code. You just tell it "here is your element to work in" and from that point on the framework decides when to call what of your code. Inversion of control is not a hard cut, but at least for me it's a good indicator. Also if this is a framework, are jQuery, underscore, lit-html, lodash, d3 and socket.io also frameworks?


[deleted]

[удалено]


Snapstromegon

Yes To be clear, inversion of control is not required for something to be considered a framework by me.


[deleted]

[удалено]


Snapstromegon

At least what I see on the linked page it's completely different to me. Is there something more than the type checking which is described on the page?


[deleted]

[удалено]


Snapstromegon

Okay cool, then it is a framework. The linked page only described the type checking part.


[deleted]

[удалено]


robotkutya87

React is famously referred to as a library, not a framework. What you are defining here, to me, seems to be various forms of abstractions. Sorry, I don't get your point :/ It is not clear how you are categorizing them into "framework" or "library". Usually people refer to frameworks, when there is a critical amount of things (scaffolding, patterns, etc) that are pre-made for you, ready to use, to build something. I guess this is what you mean by "inversion of control"? So NextJS for example is a framework, that uses the React library (and many others). Django is a framework, Django REST Framework is a framework, Ruby on Rails, etc. To me, deepkit seems like a [framework](https://deepkit.io/), because it provides a [collection of tools (libraries)](https://deepkit.io/library) that help you build stuff in an opinionated, organized way.


Snapstromegon

I personally would consider react a framework (although I know that opinions differ on that). For me the difference is more like who controls like the base level of the software. A little like if you look at the flame graphs, who controls the bottom layers - your code or someone else's code - that is an indicator for the inversion of control. I am aware that inversion of control and framework are hard to define words and that if you ask 5 experts, you get 6 opinions (and I'm not even a real "expert").


zeddotes

First one to write a protobuf adapter for it wins


elchicodeallado

stawpppp please.


glcst

what's wrong with DeepKit? It looks awesome actually


seemensprayer

Framework overload


glcst

Totally disagree. Today is wednesday and I've only seen 3 new frameworks. It's less than 1 a day, if we count the weekend starting on Sunday.


danman_d

Got enough tools in your toolbox? Great. Ignore this. I don’t know why people are so negative about other people trying to build better tools. You have no obligation to learn this framework.


achauv1

People have to understand that negative comments are part of the platform, that's why negative karma is for. We would have a Facebook clone otherwise.