coloredgrayscale

@[email protected]

This profile is from a federated server and may be incomplete. Browse more on the original instance.

coloredgrayscale,

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.

coloredgrayscale,

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.

coloredgrayscale,

Cat is a fluffy animal, and for shreading shit

coloredgrayscale,

Almost:


<span style="color:#323232;">While (hasMoney())
</span><span style="color:#323232;">Print(money)
</span><span style="color:#323232;">
</span>
coloredgrayscale,

And how much does it cost you in electricity?

coloredgrayscale,

Enough for System stats, or a music player (especially if you can use it for input too, without it tabbing out of games)

coloredgrayscale,

Tilted 22 degree to maximize the potential line length that can be displayed.

gigazine.net/…/20211203-ideal-monitor-rotation-fo…

coloredgrayscale,

How do you use the 3rd monitor above at the job?

coloredgrayscale,

First I have to tell him to configure the windows work laptop that way (for external screens)

coloredgrayscale, (edited )

Think of it more like bigger building blocks rather than single use functions. If there is an issue with the pizza arriving burnt black at the customer you don’t want to read through the logic for making the dough and adding toppings if the most likely cause is the oven.

Sure, you could add comment blocks to mark the sections. But you can’t easily jump to that exact point. With function names you can easily skim over the unimportant calls, or go through a list of functions/methods in the file and jump there directly. With comments that’s not a standard feature in IDEs.

Also that function does not scale well if you have more than 2 options of toppings. Maybe some are not compatible and logic needs to be added that you don’t use pineapple and banana on the same pizza, for example.

But I understand your argument about following through multiple layers of abstractions. That’s something that irritates me as well a bit, if you follow a function, that does nothing, but pass the same parameters through another function and return the result.

No guard clauses, or changes to the data, just 1:1 pass-through. And this them goes 2-3 levels deep before reaching real code again. Bonus of they all are in different files too.

coloredgrayscale,

Even if wasm or something else could replace js completely we’d need some huge corp to drop support completely.

Something like apple no longer supporting js. Remember Flash?

coloredgrayscale,

Especially the other projects that were hidden on someone’s desk until a week before the deadline. And now they have two or more projects like that simultaneously

coloredgrayscale,

Welp, Task failed, no second chances, or options to deliver afterwards. Game over, toss away the work you’ve completed 90% of.

Just like in school when you failed a test or assignment.

coloredgrayscale,

No need to plan, we’re agile! /s

coloredgrayscale,

There’s more than just hardware and power cost to servers.

Primarily cost of employees taking care of the servers.

coloredgrayscale,

The 2nd is the style guide used in C#, and therefore what you’ve encountered in unity.

coloredgrayscale,

Assembly would be lower. You have more complex / direct instructions in assembly. Brain fuck is pretty much just a pure turing machine, and has 8 instructions.

X86 has ~ 1000 + variants. Even ARM with a smaller instruction set has 232 instructions.

In brain fuck to set a number you’d have to count up (or down - underflow) to that number. In assembly you just set it.

Somewhere I’ve read that current assembly code with Makros should be similar to writing C.

coloredgrayscale,

<span style="color:#323232;">import codegolf
</span><span style="color:#323232;">codegolf.challenge1() 
</span>
coloredgrayscale,

Maybe also bias by the number / experience of people using it.

1st semester students getting shocked by public static void main(String args) and meming it on the internet.

Go on the other hand likely isn’t a common choice / option for a first language.

coloredgrayscale,

Usually a translation system might return the key value if the translation is missing. By translating with “untranslated” as a default you’d get just that text filled as fallback.

Unless you reinvent the wheel for lookup and can just ignore your magic value, or put an if on every value lookup.

Might be a risk there.

coloredgrayscale,

“too many comments”.

coloredgrayscale,

Sounds like a good use of comments. Explain why, not how. (that should be readable from the code for the most part. Unless you’re having function calls like xmmmuldp (simd) )

coloredgrayscale,

Adding the fourth, ultimate escape to it.

coloredgrayscale,

They meant self obfuscating.

Can someone transcribe this text please?

coloredgrayscale,

If someone changes the code and forgets to modify the comment, the reader might favor one or another at random.

Hence why you should comment why, not how/what.

// slow down traffic before crossing busy main road

Now you can change the stop sign to a yield without touching the comment. Or judge that the comment can be removed if it’s clear the main road does no longer exist.

coloredgrayscale,

What if I pass an empty list, or NoneType?

coloredgrayscale,

If they need it often it makes some sense, if it also perform some checks, if the list if empty or None/null.

is it ethical to use third party libraries and other stuff in my portfolio website?

I am confused as to whether it is acceptable to use code produced by other people for something that is related to me and my creations. Do i have to resort to coding my portfolio website with pure css and js to demonstrate my credibility and experience as a candidate employee? Does the ideology of ‘using other people’s tools...

coloredgrayscale,

but then why would they ask candidates to write functions like binary tree traversal from scratch during interviews? /s

coloredgrayscale,

Seems fitting for points 1 and 2 XD

coloredgrayscale,

Don’t let yourself down because you don’t know the syntax off the top of your head.

Even after 15 years of programming, and studying computer science, I would have to look up how to write loops, conditions, variable assignments in bash / sh / batch.

Coming to python from a primarily java focus background wasn’t any different. I knew what steps the program should do, but had to look up how to translate it into whatever language. And for further improvements what features the language has to express the things “in the style of the language”

coloredgrayscale,

300 nested if statements, (…) added another 5000 nested if statements.

At this point I want to doubt that they actually wrote it themselves, vs writing a metaprogram to generate the code.

coloredgrayscale,

You poor soul.

clicks scrollbar with mouse and drags it, instead of using the scroll wheel

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines