HackerTrans
TopNewTrendsCommentsPastAskShowJobs

thebackup

no profile record

comments

thebackup
·hace 5 meses·discuss
This was my first thought as well, just from reading the title.
thebackup
·hace 2 años·discuss
I took a functional programming in Haskell course first year in Uni without having much previous programming experience at all. Quite early in the course we were tasked with implementing a huge bidirectional graph and an efficient shortest path algorithm for finding the fastest way between any two nodes. I hadn’t taken any DSA course and was totally unaware of graphs and shortest path algorithms and the course material was pure Haskell syntax. I failed miserably and so did most of the others.
thebackup
·hace 2 años·discuss
Capital M is for Mega. I would use duration_s and duration_ms.

const duration_ms = 1000 * duration_s

And _us for microsec.

const duration_us = 1000 * duration_ms

But then the tool would probably reject my code for not following the naming conventions which ”disallows using underscores in variable names”.

Guess what I wanted to say is that there are always exceptions to the rule and there should always be some way to turn off the automatic checker for certain sections of the code.
thebackup
·hace 3 años·discuss
I see, wow. Thanks for the info.
thebackup
·hace 3 años·discuss
I don’t work for Google and have no insight in what the average Google job pays, but $99 per day is basically my entire salary (after taxes etc.).
thebackup
·hace 3 años·discuss
Will give it a go. But probably it’ll take another generation or two before it’s good enough.
thebackup
·hace 3 años·discuss
I second this. My impressions so far are pretty much the same. Have been trying to get ChatGPT to generate code for some algorithms that are pretty close to well known implementations but with some twists and it absolutely fails no matter how much I tried to provide hints to change the suggestions it gave me. In the end I just went back to hand coding them since it actually saves me the frustration of trying to get ChatGPT to bend in the direction I need.
thebackup
·hace 4 años·discuss
Agreed. A comment can also explain things that a function name cannot. I’m all for splitting code into paragraphs with a well written comment above each. Of course I also extract functions, but only when there are obvious benefit, like removing repetition.
thebackup
·hace 4 años·discuss
I'm having a hard time believing that world's top talent in software development are fighting to get into Swiss banking. What makes you think that the brightest people are striving to get employment at your bank?