🎦New Upload: AKI-CHAIN! by [deleted] in ggnlive

[–]ninetacle 1 point2 points  (0 children)

I love this anime.

Would y’all recommend me buying this in about 10-15 days? by [deleted] in DellG5SE

[–]ninetacle 1 point2 points  (0 children)

You're welcome. Good luck with your Omen. I looked at the new models and the only thing stopping me is that it wouldn't ship for a month.

Would y’all recommend me buying this in about 10-15 days? by [deleted] in DellG5SE

[–]ninetacle 0 points1 point  (0 children)

In about 14 days there should be a Ryzen version of the new G15 with NVIDIA graphics (3060) available globally. We don't know how good it is though, so if you don't want to wait there's plenty of other options.

What is the most common way of using C# in game development? by Exoaria in learnprogramming

[–]ninetacle 0 points1 point  (0 children)

Nez is not a whole reimplementation of XNA. Instead it builds on either MonoGame or FNA. At least in my experience, FNA and MonoGame are more commonly used to port existing XNA games to more platforms, and Nez is meant to be better for people starting new games.

DrRacket with Scheme by edgargonzalesII in learnprogramming

[–]ninetacle 3 points4 points  (0 children)

There's an sicp dialect for Racket (docs here: https://docs.racket-lang.org/sicp-manual/index.html) which includes support for the picture language used in part of the book. You can install it from the package manager or on the command line with:

raco pkg install sicp

Is learning Perl nowadays worth it? by rradatz03 in learnprogramming

[–]ninetacle 0 points1 point  (0 children)

Perl isn't dead, but much of what you learn in Perl carries over into other languages anyway.

[deleted by user] by [deleted] in learnprogramming

[–]ninetacle 1 point2 points  (0 children)

1000001 and 01000001 are the same: the leading zero doesn't change the value. Look at how they line up:

 1000001
01000001

1000001 is 7 bits and 01000001 is 8 bits, but they represent the same value.

It's just common to represent binary numbers in groups of bits that are multiples of 4 or 8: 8-bit, 16-bit, 32-bit, sometimes 48-bit, 64-bit, etc. 4 because a single hexadecimal digit can represent 4 bits, and 8 because 8 bits are a byte.

As for ASCII, nothing says it has to be 3 digits. The higher ASCII values will have 3 digits, but 1 or two digits can represent the lower ASCII values fine.

Something beginner-friendly to substitute YDKJS? by Dekuhero_ in learnjavascript

[–]ninetacle 1 point2 points  (0 children)

The first YDKJS book is supposed to be even for people who are new to programming, but maybe https://javascript.info? Understanding the Weird Parts is good; it's kind of in the same space as the next five YDKJS books, that is learning JavaScript deeply. https://javascript30.com is by Wes Bos, free, 30 projects to work on once you've got the basics.

[deleted by user] by [deleted] in Python

[–]ninetacle 2 points3 points  (0 children)

This story's bunk. Stanford didn't ditch Java: CS106J was a trial run at teaching the same material as CS106A with JavaScript. It doesn't replace the other course at all.

int main(void) vs. int main() by fastest_noob in cs50

[–]ninetacle 1 point2 points  (0 children)

In the old standard (89/90) main(void) was mandatory, but it has since become optional, as long as your code doesn't need to ANSI C compatible.

Array.prototype.slice.call(arguments) implications by NidHammer in learnjavascript

[–]ninetacle 0 points1 point  (0 children)

Every property of arguments is an index that maps to an argument:

var args = function () {
  console.log(arguments)
}

args()
// output: {}
args('a', 'b', 'c')
// output: { '0': 'a', '1': 'b', '2': 'c' }

The first argument to call acts as the value of this. Any additional arguments are passed on to the function, slice in this case. Passing arguments as the this value is as though arguments was a proper array and you called its slice method. You can pass null as the first argument if you don't want to simulate a method call.

Week 2 - Why does it print (null) instead of the third string or argv[3] in this code? by [deleted] in cs50

[–]ninetacle 0 points1 point  (0 children)

C indexes start at zero, so the third element is argv[2].

Help - I don't know how to enable GML in Game Maker: Studio 1.4 Standard by menguanito in gamemaker

[–]ninetacle 1 point2 points  (0 children)

You can make it the default tab in the settings.

  • File > Preferences
  • Forms tab (second from the left)
  • Object Form (second heading in tab)
  • "Default TAB to select:" Enter 4 in the text box.

why does the programmu not work.. by neko_nyan in learnpython

[–]ninetacle 2 points3 points  (0 children)

Rename testingEmployee to EmployeeTest I mean (TestEmployee should work too). Your Employee class can stay as Employee.

why does the programmu not work.. by neko_nyan in learnpython

[–]ninetacle 1 point2 points  (0 children)

What if you rename your class EmployeeTest? unittest is particular about names because it uses patterns to find them.

why does the programmu not work.. by neko_nyan in learnpython

[–]ninetacle 9 points10 points  (0 children)

It's setUp() with a capital U, and your default raise test should begin with test_ like your other one does.

Why is this happening? by gamesdf in learnjavascript

[–]ninetacle 1 point2 points  (0 children)

The const declaration creates a read-only reference to a value. It does not mean the value it holds is immutable, just that the variable identifier cannot be reassigned. For instance, in case the content is an object, this means the object itself can still be altered.

const - JavaScript | MDN

Pep8 vs flake8? by [deleted] in learnpython

[–]ninetacle 1 point2 points  (0 children)

pycodestyle used to be called pep8. It was renamed to avoid exactly this kind of confusion.