Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spamtarget
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
spamtarget
4y ago
Technical and implementation details again. When we speak about programming paradigm, we speak about the language alone, not any software system, this is a theoretical discussion. It does not matter how it is executed, what matter is how yo
32.
▲
by
spamtarget
4y ago
I'm sorry, i'm speaking with multiple people on multiple threads here, and don't have too much time to express myself perfectly. Every language is declarative is an interpretation that can make sense in certain angle, like wh
33.
▲
by
spamtarget
4y ago
You taking apart languages, saying this is imperative part and this is declarative. That does not make sense only entire languages can be described like that. But if you want: In the recipe the ingredients can be "int y;", like de
34.
▲
by
spamtarget
4y ago
It is not possible, but it is the future, you already have a glimpse with chatgpt creating sql for you. Now that is real, 100% declarative SQL, no debate on that, as everything will be some-when in the future. You are describe here the abst
35.
▲
by
spamtarget
4y ago
Of course they are, however they are both languages. And you classify them into the same category, so it should have some similarities, right?
36.
▲
by
spamtarget
4y ago
No, programming style can be "hacky", "script kiddie" or "architect kind design" or whatever. I'm speaking about "programming paradigms". "functional programming, but that doesn't chang
37.
▲
by
spamtarget
4y ago
You make a statement without reasoning or examples: empty argument. You are not arguing any more, just want to be right. > This is the "texbook definition" The textbook definition of gravity is F=Gx((M1xM2)/r2) According t
38.
▲
by
spamtarget
4y ago
"Comparing to html is nonsensical" No, absoltely not. We are speaking about programming paradigms. We can speak about those without computers, we never have to speak about HTML. A food recipe is a program, what you are executing w
39.
▲
by
spamtarget
4y ago
"don't get anything other than the HTML that you create" that's the point of declarative languages "That is, it is not generating anything." if you speak about code generation like code behind in VS, it has not
40.
▲
by
spamtarget
4y ago
You don't care about how the SQL server gets the data the same way how you don't care about what is happening in the background when you use File.ReadAllText The technology behind does not define the programming paradigm. You can
41.
▲
by
spamtarget
4y ago
>This is exactly what SQL is. There are exceptions, but they're exceptions. no, i meant the query is literally this: GIVE ME ALL THE COST OF THE EMPLOYEES or if we want to formalize more: ALL COST OF ALL EMPLOYEES the point here tha
42.
▲
by
spamtarget
4y ago
SQL does not make sense as a declarative language to me. How you can say that SQL and HTML is the same by nature? Also I can't see why we can't argue about this against the literature. Saying "you are wrong because 20 years o
43.
▲
by
spamtarget
4y ago
Oh, i see, i did not get it. However i don't understand how "You tell SQL what you want, not how to get it. That's declarative" related to that list iif and case by itself is not declarative or imperative. only an entire
44.
▲
by
spamtarget
4y ago
everything is partly declarative. you can draw a rectangle line by line, or you can put this code into a function or a procedure, and call it declarative, because it is something like that. i did not speak about testing, however what a decl
45.
▲
by
spamtarget
4y ago
you can force SQL to fit in this, but this way everything become a declarative language. the approach of solving problems is the difference. SQL does not fit my definition, because you reach your goals through multiple transformation and fi
46.
▲
by
spamtarget
4y ago
one way of seeing this, everything, which is high level language is declarative, but if we do this, we make this classification meaningless. it was just an example, for an operator, which is an "activity" is not part of a declarat
47.
▲
by
spamtarget
4y ago
no, the approach makes the difference. when you create html, you dont care how the rectangle is drawn, you focus on defining the result itself. if sql was declarative, than the code of the SQL above would be: GIVE ME ALL THE COST OF THE EMP
48.
▲
by
spamtarget
4y ago
Really? SELECT CASE WHEN employee.type = 'contract' THEN salary CASE WHEN employee.type = 'full-time' THEN salary + benefit_costs END CASE FROM employee Tell me how is this declarative? -SQL is functional -CSV
49.
▲
by
spamtarget
4y ago
You are speak about things which called delegates, typed functions, defined by the parameters it gets, and the data it returns. Using delegates does not make a language functional. If you really want to speak about the underlying technology
50.
▲
by
spamtarget
4y ago
-3 votes shows how this is a common misunderstanding. If SQL was a declarative language, there would not be expression in it, for example SELECT (1+2) , only SELECT 3 These categories based on the approach of the programming, not the under
51.
▲
by
spamtarget
4y ago
SQL is not a declarative language. It is a functional language, and structured language on the top as extensions. HTML is a declarative language.
52.
▲
by
spamtarget
4y ago
So this is basically boils down to false advertising, which is the real problem here
53.
▲
by
spamtarget
4y ago
I think you are wrong. Your own real cognition and understanding based on all your experiences and memories, which is nothing else, but data in your head. I think consciousness is just an illusion of a hugely complex reaction machine what y
54.
▲
by
spamtarget
4y ago
If this is distressing for you, you may need help. What is enough to know about this, that it is blended paste, which means it gradually becomes composed of the cheapest available ingredients as the cost is continually lowered, while the ex
55.
▲
by
spamtarget
4y ago
you still did not learn that if you want to show off your work, you dont ask for signing up or any of that BS. it's 2023
56.
▲
by
spamtarget
4y ago
so is it not even crab?
57.
▲
by
spamtarget
4y ago
3D studio or lightwave 3D?
58.
▲
by
spamtarget
4y ago
you should not. imitation crab is invented to be able to sell low grade crab. they just blend whatever they have, add mixture of aromas and extenders to hide this and to standardize the taste. like chicken mcnuggets basically. it is not poi
59.
▲
by
spamtarget
4y ago
ok, if we keep this analogue, i offer you **!!!! UNLIMITED !!!!** (vuvuzela noises here) beer for a month. however in the 67th page of my EULA i say, after you drank a gallon of beer this month, you have to use a really, i mean really reall
60.
▲
by
spamtarget
4y ago
no, it does not make sense. it's like if you buy too much beer in a month, they start to mix it with water and sell it for the same price
More ›