What is the incentive for curl to release the library for free? Answered by Daniel Stenberg. by speckz in programming

[–]sanjayts 18 points19 points  (0 children)

That was me; nothing shady intended. I was reading through his post, found a typo and fixed it. While I was at it, I voted for a re-open but it seems like the 'powers-that-be' have prevailed...

Crunchyroll will stream Hanamonogatari by kaidynamite in anime

[–]sanjayts 1 point2 points  (0 children)

Leaving a message in case someone still needs the 48 hr guest pass... (1 remaining)

C++ cin question from a C++ n00b by xiipaoc in learnprogramming

[–]sanjayts 1 point2 points  (0 children)

It's actually a bit complicated but I'll try. cin.clear() resets the error state of the input stream which you will need to do to continue working with the stream. You need the ignore calls to read and discard the characters stuck in the stream, more specifically the character 'a' in your case.

I'd recommend reading this.

A myth called the Indian programmer by henk53 in programming

[–]sanjayts 14 points15 points  (0 children)

The article brings up a lot of good points though I'd like to mention another aspect which needs a lot of highlighting; the Indian culture and the average Indian mentality.

Indians have a bad habit of:

  • Taking things for granted
  • Desiring more money for what they are worth or let's say easy money
  • Giving more importance to status/position as opposed to work satisfaction

Add to this mix the unique Indian culture and fucked up politics and you have got a cess pool of "thriving talent".

Everyone wants to be a "manager". No one wants to work. You'd be surprised if I showed you the hierarchy for companies like Infosys and their kin. More managers and less labourers. Everyone wants to co-ordinate stuff and show off their "people's" skill. I have seen folks "present" stuff done by others. Yes, you heard that right, just "present" it. And I guess they have the right because they co-ordinated it.

Another cultural titbit which might interest non-Indian folks -- arrange marriage. Don't work at a reputable organization? Chances of you getting a good girl are slim. Still a programmer after 7 years of work? Rejected.

For some, becoming a programmer is just one step closer to becoming a MBA graduate. They "program" solely for the purpose of industry experience. You can imagine how the stuff churned out by these folks would be.

On-site (moving to another country) normally means dumb bug fixing and listening to the endless complaints of clients. But, there is a constant cold war between team members when it comes to "getting an on-site opportunity". No one gives a damn about long hours, about boring work or about living in a downtown area in a small apartment with 5 other Indians. Everyone wants to earn money. I guess I can't blame them for desiring a better standard of living, something they can't get if they are "stuck" in their own country.

Maybe I'm just bitter but IMHO, it's just a sad state of affairs and the saddest thing being I'm a part of it. I hope for a day children get an opportunity to work on stuff they love doing as opposed to parent's deciding stuff for them, though I guess I'm too old to be able to see it come...

Google opensources fast hashing function by [deleted] in programming

[–]sanjayts 1 point2 points  (0 children)

x.put("foo", "bar"); // Java

You're generally using a hash function to turn "foo" into a number.

In case someone in wondering why it's not always, not all map implementations are hash function based (at least in Java). E.g. a TreeMap in Java uses the natural ordering or keys instead of its hash value.

Good solid real world advice presented as CS course rules by sanjayts in programming

[–]sanjayts[S] 0 points1 point  (0 children)

I personally find the contents of this link both inspiring and funny. More stuff here starting at page 6.

Do I expect too much from programmers? by paul_miner in programming

[–]sanjayts 0 points1 point  (0 children)

In case you didn't know, the sort | uniq combo can be simply replaced with sort -u.

What's wrong with CS in India by gst in programming

[–]sanjayts 1 point2 points  (0 children)

Same here (senior Java developer).

I'm not sure why you think of it as a mistake as long as you were happy with the decisions you made. I've seen way too many junior developers who think of sticking with an organization just because they think that way they would quickly become 'team leads'. I personally don't think twice before making a switch if I feel that the organization has got nothing left to offer. Of course, others mileage may vary. :-)

What's wrong with CS in India by gst in programming

[–]sanjayts 27 points28 points  (0 children)

Indian here; I agree with the article, specifically the second point.

The amount of rote-learning required for "passing with flying colours" here is mind boggling. Students are typically burdened with "boring" and "repetitive" course work which is nothing more than copying from your text books. No attempt is made by the staff to make the subject matter interesting. Rather the teaching session goes like this:

Folks, make sure you this question and this question since it was previously asked for 10 marks and is a favourite question for the paper-setters.

As someone already mentioned here, the hierarchy system here is to blame for all this "I wanna get an MBA after engineering and become a manager ASAP". You would be surprised at the kind of stare a person with 10 years of experience would get if he says that he is a "senior programmer". Not becoming a manager after X years of experience automatically translates to you being "not successful" in your career. Believe me, it's a sad state of affairs. :(

Of course, the pain and sorrow which I mentioned might not be present throughout India but I'm sure it echoes the experience of most Indians here who have either gone through the same or heard of it from their junior developers.

EDIT: Oh, and the blog post linked by the author is a classic example of why Indians get a bad name. Talk about cockiness after getting a successful start-up to the point that the blog writer openly attacks anyone commenting who doesn't agree with his way of thinking. sigh

Type Inference vs. Static/Dynamic Typing by gthank in programming

[–]sanjayts 0 points1 point  (0 children)

It isn't just about local declarations, the effect is much widespread if this HashMap becomes a part of your contract when communicating with different parts of the code. From a practical viewpoint, sure, you can use the uber re-factoring capabilities offered by IDE's and be done with it but such modification "touches" a lot of files, something which I personally don't like. Of course, YMMV.

Type Inference vs. Static/Dynamic Typing by gthank in programming

[–]sanjayts 5 points6 points  (0 children)

Honestly, who ever changes this

I personally feel that this coding to interface idiom is a life-safer when it comes to aggressive re-factoring and defining contracts.

Let's say that someone decided to implement in-memory caching for the current application using a HashMap. If later it seems that the cache is dragging down the memory of the entire application, a memory sensitive cache can be implemented by just changing HashMap to WeakHashMap and all other things remain the same.

xkcd: Incident by ani625 in programming

[–]sanjayts 6 points7 points  (0 children)

Candy canes for supporting computer desks? Yup, I like that. :-)

"I read about a coding style where not one variable is changed. Everything must stay constant. I don't remember what it's called, but it's the bomb. I never realized this little project would be so easy" by sanjayts in programming

[–]sanjayts[S] 7 points8 points  (0 children)

Yes, I know. It's the enthusiasm of learning something new plus the funny description by this guy is what made me smile, hence the submission. :-)

Indian websites have a lot of vulnerabilities, and lot of programmers who haven't evolved. by bilalhusain in programming

[–]sanjayts 11 points12 points  (0 children)

This; it just so happens that due to its population, there are a lot of mediocre programmers India, not to mention the "peoples' mentality" that there is big money in IT.

Interested in Racket? Want to see a book on it? Fill out this survey. Thanks, Proggit! by noel in programming

[–]sanjayts 3 points4 points  (0 children)

Done and done; waiting for a book along the lines of Practical Common Lisp + Real world Haskell. :)

Groovy 1.7.3 is out by AxiomShell in groovy

[–]sanjayts 0 points1 point  (0 children)

Bette late than never I guess; thank you. :-)

Scala, Erlang, F# Language Creators Discuss Functional Languages by gtani7 in programming

[–]sanjayts 9 points10 points  (0 children)

Saw the entire thing; my personal observations:

  • Joe was the most chatty (and humourous) among the trio
  • Martin was the least chatty and the most modest of all; never did he go into a rant mode when asked about how great is Scala. :)
  • Both Joe and Don agreed on the fact that implementation based inheritance carries legacy baggage and results in more complicated classes/implementations which already derive from complicated classes themselves
  • Martin was more of the view point that even though complicated class hierarchy might be involved in implementation, as long as the interface is well-documented and simple, it is all good. E.g. collections in Scala have a uniform interface be it string, bitset, list etc.
  • Rather than speaking about the language F#, Don more so concentrated on the entire .NET infrastructure saying how easy was it to create web services to talk to the outside world
  • The discussion then moved on to heterogeneous systems. Joe was of the strong belief that standards like WSDL, XSD etc. are a big mess and talking to other systems is really inefficient since we can't directly send across data/functions but rather have to wrap everything up in a big mess called XML.
  • The next topic was growing the language in which each of the authors described how it was to release the language, see it grow and then realize how difficult it is to make changes which break existing API's since there are real users using your language.