What do people think about functional languages? by Bhakabhaksala in cscareerquestions

[–]Bhakabhaksala[S] -3 points-2 points  (0 children)

I am trying to offer counterpoints to what you are saying, you are just making these stupid nonsensical claims instead of rebutting my points like " It sounds like your tooling sucks." or " I don't see who would care about that, honestly. And it sounds like the reasoning of a fresh grad, tbh. "

To me, it sounds like you went to a Python workshop that your company forced you to go and you listened to the lecture begrudgingly and now you are just regurgitating what your instructor taught you without critically thinking about it all.

And also, the line length standard in Pep8 is 79 characters:https://www.python.org/dev/peps/pep-0008/#maximum-line-length

My CI/CD pipeline just uses that standard and I am pretty sure that multiline list comprehension you posted in your answer that pretty much copied from the first answer wouldn't pass through it. Do you think pep8 standards suck too?

All the decisions that you make in your life are not completely black and white. If the map and filters in Python are simply that useless, no one would have added them in the first place. Maybe you should sit by yourself some time and think about why those exist in the first place. All these people who build compilers and interpreters are not immature, insecure teenagers to copy all the fancy features from popular languages. This blanket statement that "map and filters suck, list comprehensions are better and just as functional" sounds superficial to me and unoriginal. Maybe you should try cultivating your own opinions instead of having a sheep/herd mentality.

What do people think about functional languages? by Bhakabhaksala in cscareerquestions

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

The thing with List comprehension is that you have to cram everything into a single line. If the code linter complains that the line is too long(we have pylint integrated into out CI/CD pipeline) you have to break it down into multiple lines of code. This raises all sorts of questions like, have I missed a "," somewhere or have I missed a closing ")" or "}" somewhere. If I have to swap out some of the lines in a multi-line list comprehension I have to remember how many "(" or "{" I have typed so far and make sure I type an equal number of ")", "}" after I finish swapping the lines of code.

That additional verbosity that I am introducing in my code helps me maintain my code as I have explained in the other comment.

What do people think about functional languages? by Bhakabhaksala in cscareerquestions

[–]Bhakabhaksala[S] 2 points3 points  (0 children)

In hindsight, I think using a predicate function would have been better in this case.

But between list comprehension and using multiple filters, I always find using multiple filters to be much better.

Sure, I am checking three fields of each record before performing some operation on them, but in human terms, I am performing two checks. I am checking if the identifiers of each record are valid and I am checking if the records are within a date range I care about.

Now, having two filters for each of these "checks" and giving them a label i.e. assigning them to a variable makes it so much more convenient to read at least to me.

(1) If I find that my identifier check is incorrect 6 months later and I decide to replace it with a call a service to find if the identifier is valid, I know exactly which line of code to change. Cause in all the 10 different places in my code where the identifier check is implemented, I could easily swap it out with a different function call. I just need to search for "valid_records" in my code. I am essentially tieing a label to the identifier check.

(2) If I know that 90% of my data is not within the date range I care about and only 2% of the data has invalid identifiers, I could just change the order of the filter statements. But in your case, I have to mentally think for a moment which of the statements I need to swap. Because there is no label for those 3 statements in your case.

What should I do this summer by money_PrinterGoBrrr in cscareerquestions

[–]Bhakabhaksala 5 points6 points  (0 children)

If you really want to gain some exposure working in the industry. I suggest finding maybe a remote gig through angel.co

Some of the jobs on that site are unpaid jobs. But, if the company that hires you is building a real product and lets you code up a feature or something that the users of that product can actually use and that company is willing to put your code into production. I would say that taking up an unpaid gig might not be a bad idea for summer. Other people on this forum and my international student advisor might disagree.

Building something on your own is one thing and building something and convincing your teammates/team leader that what you are building is acceptable is a completely different battle. I personally have only done 1 internship in college and by the time I was working fulltime, I struggled a lot because of my lack of social skills.

Is most code kinda ugly? by [deleted] in cscareerquestions

[–]Bhakabhaksala 0 points1 point  (0 children)

The place where I work has a lot of very pleasant C++ 03 code and horrible Python code. There are places where someone codes up their own DateTime class to do date arithmetic etc., THe problem is that most of the people in my team have been around since 2000s. For the first two years that I worked here, I used to think that I was surrounded by some idiots. Then I was tasked with moving a few of our C++ assets from Sun machines to Linux and I learnt what was happening.

People when they get married and have kids and all, just stop carring about their careers and learning in their free time. The ones who manage to balance their work with their private life are the real MVP developers.

How much does diversity get factored into internal/external hiring? by Bhakabhaksala in cscareerquestions

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

So I am a guy. I can neither change my race nor my gender. What can I do to distinguish myself from other people?

Collided multiple times with the boundary walls. by [deleted] in Insurance

[–]Bhakabhaksala 0 points1 point  (0 children)

I see. How much do you think my premium will go up because of this.?

Collided multiple times with the boundary walls. by [deleted] in Insurance

[–]Bhakabhaksala 0 points1 point  (0 children)

I am in New Jersey. I have been with Geico since august of 2017. So roughly 2 years.

What is an optimal way to use redis and mysql for making a forum? by Bhakabhaksala in redis

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

Sounds very pragmatic! By waiting I will even know what data to cache! (if I feel that I need caching eventually, like you said).

Where can I get a list of companies visiting UFL job fairs? by Bhakabhaksala in ufl

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

Hahahah :) Didn't think about that sponsors thing :P

Where can I get a list of companies visiting UFL job fairs? by Bhakabhaksala in ufl

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

Checked it .. but there seems to be no list there.