coloredgrayscale
@coloredgrayscale@programming.dev
- Comment on I code with fear 8 months ago:
With physics, but paused while coding. It only comes crashing down when the code gets executed.
- Comment on dotnet developer 9 months ago:
May I introduce you to Usb 3.x renaming?
3.0, 3.1Gen1, 3.2Gen1, 3.2Gen1x1 are the 5Gbps version.
3.1Gen2, 3.2Gen2, 3.2Gen1x2, 3.2Gen2x1 are the 10Gbps version.
- Comment on What are some common misconceptions about programming that you'd like to debunk? 9 months ago:
Why are you in programming related communities if you don’t enjoy it?
- Comment on The Perfect Solution 10 months ago:
Good idea. Other: Let it return something long other than yes / no to waste token and possibly crash the service.
- Comment on The Perfect Solution 10 months ago:
While you’re at it, also test
- one
- three fifty
- 69 nice
- 6.9
- 4,20
- null (it’s German for zero)
- pie (and pi)
- cake
- fruits
- One million three hundred (wonder if it gets confused by “one” and “three”)
- Comment on The Perfect Solution 10 months ago:
We can add caching so numbers that have been checked once can be quickly looked up from an inMemory database.
- Comment on You can have anything you wan... 10 months ago:
Good point. Maybe that’s why they clarified “all knowledge in data structures and ml and ai” in the end.
Then again, just because you have all puzzle pieces (and a few extra) it does not mean you can solve it.
- Comment on You can have anything you wan... 10 months ago:
Sounds like they are the product owner :)
- Comment on GitHub Desktop or Git CLI? 11 months ago:
Checking the diff before commit, solve merge conflicts
Also if it’s well integrated into the IDE it feels less like using a separate tool. For 95% of what I do the ide/gui feels better (fetch, pull, push, commit, checkout, merge). Usually just 2-4 clicks and no need to type the branch name (ticket number and then some)
For Reflog, reset I use the terminal.
If I had to start github desktop or another seperate gui I would use the terminal that’s integrated into the IDE.
- Comment on Programmer tries to explain binary search to the police 11 months ago:
Even without algorithm knowledge it should be fairly obvious that you can just fast forward several minutes and check if the item has gone missing.
Not the most efficient solution, but beats watching the entire tape in real time.
- Comment on what caused you to get into Linux? 11 months ago:
Windows Vista on a laptop with 2gb ram :)
Great suggestion by a fellow IT student to try arch, so I learn the system from the ground up.
- Comment on How do you manage code snippets? 11 months ago:
Easy access to small snippets of code you often need, but putting them in their own library would be crazy.
- Opening a file / db connection
- parsing xml/json/… ,
- template for unit tests,
- import and initialization of framework at work.
Depending on the IDE snippets can also move parts of the code around:
- variable.notnull -> if (variable != null) {… }
- “text %s”.format -> String.format(“text %s”,…)
- Comment on Is there a place where you can request code reviews on opensource software? 11 months ago:
Also bike shedding. Simple stuff may get many people willing to review / argue about how you should have used A over B, or even C
Big / complicated projects - forget it. Especially if if they would need major refactoring.
- Comment on Is there a place where you can request code reviews on opensource software? 11 months ago:
Not exactly what you want, but plug-ins like sonarlint can nudge you in the right direction.
- Comment on GoOn 11 months ago:
Heard about that too! Is there an updated version for ipv6?
- Comment on What inspired you to pursue a career or hobby in programming? 11 months ago:
How was the process of learning it / getting good for you, as it can be really frustrating in the beginning?
- Comment on Merge then review 11 months ago:
It can work if you have a test zone and only a small amount of people work on a given code base.
Also checks to ensure the code compiles and tests pass before merging, as some quality gateway.
- Comment on Welcome to the wonderful world of code obfuscation 11 months ago:
Luckily we won’t colonize the moon or another planet anytime soon…
- Comment on Welcome to the wonderful world of code obfuscation 11 months ago:
Undefined
- Comment on Welcome to the wonderful world of code obfuscation 11 months ago:
npm install isWeekend.
Depends on: isMonday, isTuesday,…
- Comment on Implementing Tic Tac Toe with 170mb of HTML - no JS or CSS 1 year ago:
Look at the screenshot at the beginning of the article. Every possible state is stored in a div, with the state encoded in its Id. So it’s possible to reuse such “duplicate” states.
Strictly speaking, it would not be allowed for the same ID to occur multiple times.
- Comment on [deleted] 1 year ago:
Concepts still apply, so for a beginner an outdated book would still be a valuable source.
From there you can get up to date with the newest features with articles / tutorials. Cloud services probably should be first thing you develop for.
- Comment on Which language you wish would really grow and reach mainstream adoption? 1 year ago:
A compiler has mostly fixed rules for translation. The English language often is ambiguous and there are many ways to implement something based on a verbal description.
Programming by using the ai as a “compiler” would likely lead to many bugs that will be hard to impossible to trace without knowing the underlying implementation. But hitting compile again may lead to an accidental correct implementation and you’d be none the wiser why the test suddenly passes.
It’s ok as an assistant to generate boilerplate code, and warn you about some bugs / issues. Maybe a baseline implementation.
But by the time you’ve exactly described what and how you want it you may as well just write some higher level code.
- Comment on Which programming language is hard to understand? 1 year ago:
Would have thought mathematicians would be slightly better at writing functions
- Comment on Stop doing Computer Science 1 year ago:
And how much does it cost you in electricity?
- Comment on Stop doing Computer Science 1 year ago:
Almost:
While (hasMoney()) Print(money)
- Comment on Monitor Alignment Alignment Chart 1 year ago:
First I have to tell him to configure the windows work laptop that way (for external screens)
- Comment on Monitor Alignment Alignment Chart 1 year ago:
How do you use the 3rd monitor above at the job?
- Comment on Monitor Alignment Alignment Chart 1 year ago:
Tilted 22 degree to maximize the potential line length that can be displayed.
- Comment on Monitor Alignment Alignment Chart 1 year ago:
Enough for System stats, or a music player (especially if you can use it for input too, without it tabbing out of games)