What programming languages are used most on weekends?
281–290 of 299 posts
Re: What programming languages are used most on weekends?
#282Earlier quoted context omitted.
In most of today "real world" languages you can't use pointers.
If you can get NullPointerException, then you are using pointers. May be you meant that you can't use pointer arithmetic, but pointers are used almost everywhere.
We get into nitpicking, but I would argue references and pointers are not the same. Pointer are by definition memory addresses, while references are opaque and could be addresses under the hood.
Note also that C# does have pointers, but they are separate from references.
Re: What programming languages are used most on weekends?
#283Earlier quoted context omitted.
Functional Programming is about working with mathematical functions . Having "first-class functions" in the language is nice, but then passing function pointers around is nothing more than procedural programming [1] and yes, the difference is huge. As for those utilities you mention, Javascript is the most broken of them all: >>> ["10", "10", "10"].map(parseInt) [10, Nan, 2] [1] https://en.wikipedia.org/wiki/Procedur…
So that others don't have to spend time searching: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
If a properly designed method were passed into map it would work fine.
In essence: ["10", "10", "10"].map(Number)
Re: What programming languages are used most on weekends?
#284Earlier quoted context omitted.
If you can't use pointer arithmetic, you don't use pointers. Your language uses them internally, but not you. NullPointerException in Java/C# is a result of a leaky abstraction.
> If you can't use pointer arithmetic, you don't use pointers. Is it someone's definition of pointer? > Your language uses them internally, but not you. I'm actively using pointers that point to object. > NullPointerException in Java/C# is a result of a leaky abstraction. I don't agree. Java has uses pointers (which also called references and those are synonyms for Java), Java has concept of null pointer and I don't…
> In computer science, a pointer is a programming language object, whose value refers to (or "points to") another value stored elsewhere in the computer memory using its memory address.
> [2] Pointers are the most primitive. Due to their intimate relationship with the underlying hardware, they are one of the most powerful and efficient types of references. Pointer "points to memory", so if you change value of a pointer, you change what memory it points to. In java you can't change what a pointer points to. It's only references.
> I'm actively using pointers that point to object.
No, you passively use references that point to object. You can't do *(ptr+1) in java. Leaky abstraction means that it's called a pointer but it isn't a real pointer. Also as another commenter said, in C# it's properly called a reference.
[1] https://en.wikipedia.org/wiki/Pointer_(computer_programming) [2] https://en.wikipedia.org/wiki/Reference_(computer_science)#E...
Re: What programming languages are used most on weekends?
#285Earlier quoted context omitted.
> If you can't use pointer arithmetic, you don't use pointers. Is it someone's definition of pointer? > Your language uses them internally, but not you. I'm actively using pointers that point to object. > NullPointerException in Java/C# is a result of a leaky abstraction. I don't agree. Java has uses pointers (which also called references and those are synonyms for Java), Java has concept of null pointer and I don't…
It is wikipedia[1] definition of pointer. > In computer science, a pointer is a programming language object , whose value refers to (or "points to") another value stored elsewhere in the computer memory using its memory address. > [2] Pointers are the most primitive. Due to their intimate relationship with the underlying hardware, they are one of the most powerful and efficient types of references. Pointer "points to…
Re: What programming languages are used most on weekends?
#286Earlier quoted context omitted.
If you can get NullPointerException, then you are using pointers. May be you meant that you can't use pointer arithmetic, but pointers are used almost everywhere.
That is just a name, decided before Java settled on a consistent terminology. In C# it is NullReferenceException. We get into nitpicking, but I would argue references and pointers are not the same. Pointer are by definition memory addresses, while references are opaque and could be addresses under the hood. Note also that C# does have pointers, but they are separate from references.
Re: What programming languages are used most on weekends?
#287Re: What programming languages are used most on weekends?
#288Earlier quoted context omitted.
Perl, Python, Ruby
True, defeats the idea of a one liner in bash/awk/sed.
Re: What programming languages are used most on weekends?
#289http://classicprogrammerpaintings.com/post/143847262458/hask...
Re: What programming languages are used most on weekends?
#290Happy to see Python-3.x taking over old Python.
Old Python, I like that. Sounds like my manager in a recent conversation: "Don't say [competing product name], say 'the legacy [product type]'. It drives home the idea that our product is the future and that product is the past." I'm not making any judgement on the status of the Python community, just appreciating your choice of wording.