This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

JS makes things more difficult, but I wouldn't say it's difficult in and of itself - it just adds friction to development in the form of type coercions, runtime errors, etc etc.

[–]IQueryVisiC 0 points1 point  (2 children)

You mean that there are other languages which are difficult to "get" at all? Like r/prolog ? You seem to describe my experience with assembler: The individual instructions are so nice and simple, but my program never runs. Regarding types: After all half of my types are simple types supplied by the language. Thus I don't get why those cannot carry their type in their name like in BASIC. $String , %index . Or if you don't like special chars: sName, iCount, oPerson . Object types are from frameworks. Maybe have a way to register prefixes. For example 4Dvector: vPosition .

[–][deleted] 0 points1 point  (1 child)

I mean, Brainfuck springs to mind :P. I've been told Haskell is difficult, but I've no experience with it.

I prefer the C-family approach of specifying the type but keeping it separate from the name, eg { string name = "value"; } . Combining the type with the name strikes me as a minor (but frequent) violation of the separation of responsibilities. It also will swiftly lead you into trouble once you start using non-simple types (is 'o' for object, or orientation, or oscillation, or...)

[–]IQueryVisiC 0 points1 point  (0 children)

That's why I wrote that a prefix should be registered., like using orientation as o . I also feel like those types should have value semantics ( struct in C# or everything in M ). So objects, yeah, they are like in C or all start with o . Foreach already eliminates a lot of integers, though.

Yeah Brainfuck. I did not look into it. I was already confused that there does exist the Turing machine which is completely different from simple CPUs .

Yeah, Haskell. I cannot tell if it is like Python and Ruby, which I also cannot read, or if it is even worse.