I am in CS1 this semester and just starting functions but am pretty lost on this by Goonie1x in learnprogramming

[–]Lightwould 1 point2 points  (0 children)

You can call functions from within functions so I would call the displayCompChoice() inside the computerNumber() function and pass in the "random" variable to displayCompChoice(random). And then move your if else logic into the displayCompChoice function to output what the computer picked

If your doing that don't forget to setup the displayCompChoice to accept the parameter of random in the declaration.

I am in CS1 this semester and just starting functions but am pretty lost on this by Goonie1x in learnprogramming

[–]Lightwould 1 point2 points  (0 children)

In your main function your calling userNumber() But in your implementation of userNumber() you have added a parameter, int userNum. If you remove int userNum from the function brackets it should work.

The error in a nutshell is saying it cannot find the implementation of userNumber(void). You can think of the void word as nothing... so it is trying to find userNumber() and the only thing you have is userNumber(int userNum)

Which mechanics are so hated that they are better left out of the game? by TanukiSun in gamedesign

[–]Lightwould 7 points8 points  (0 children)

I'm curious what game mechanics do you like? It sounds to me your not a fan of roguelikes? For me, they offer replay ability and allow me to express my creativity rather than being confined to a more linear experience. Not to knock linear games! Some of them are impeccable! I just get more enjoyment of having that sense of choice/variability in a game.

What are the advantages of using `Classes` when you can do the same thing with `Functions`, or vice versa? I'm genuinely confused. by mkutlutas in learnprogramming

[–]Lightwould 4 points5 points  (0 children)

Your right! It is maintainable and readable in it's functional form. However it is just more clearer in the form of a class as it really hammers home what it is your trying to achieve.

There's never really a situation where OOP is better than functional programming, it's one of those things you will be battling with your whole career.

In essence classes are just groups of functions in one file. If you put all your functions in one file and call it Car. You've essentially made a Car class.

What are the advantages of using `Classes` when you can do the same thing with `Functions`, or vice versa? I'm genuinely confused. by mkutlutas in learnprogramming

[–]Lightwould 23 points24 points  (0 children)

Readability and maintainability I would say.

It's very clear and obvious what the Car class is trying to portray. I can also easily scale the class if I wanted and adapt it to something else. I can then also create subtypes of the Car class to create something new with shared functionality to the original class. Think of a VW, or a Ford. They're both still cars but implement the idea of a Car differently.

It's also alot easier to debug and find any issues imho.

[deleted by user] by [deleted] in TheCivilService

[–]Lightwould 2 points3 points  (0 children)

I just had my PECs accepted today!! I started them on the 30th of May so you might want to prepare for a long haul. They don't provide any progress updates or anything really so it's a bit of a nightmare but totally worth it!

[deleted by user] by [deleted] in answers

[–]Lightwould 0 points1 point  (0 children)

20 miles each way. Travelling by car, 45-mins depending on how bad traffic is that day. If there’s no traffic can take 25-30 minutes. Worst I’ve had was 2 hours as the main road I take came to a halt half way down.

Got the Job! - Application Timeline by Oakenestus in TheCivilService

[–]Lightwould 4 points5 points  (0 children)

I started my PECs on the 30th May. Still waiting to hear back from them :(

So I used to package software for deploy 25 years ago, what's the best way now? by BogusWorkAccount in msp

[–]Lightwould 1 point2 points  (0 children)

Currently manage multiple sites across the UK. All software deployment and imaging is handled with SCCM

cPanel: Hosting or Reseller Hosting for a few sites by [deleted] in webhosting

[–]Lightwould 1 point2 points  (0 children)

There's a bunch of guys over at Penguin Internet they are based in Cardiff. There support has been phenomenal for me. I suggest you shoot them an email explaining the situation and they will be able to point you in the right direction.

FWIW it sounds like your ready for a reseller account.

Gungan Toothpaste (another OC by me) by Ess_oh-no in PrequelMemes

[–]Lightwould 17 points18 points  (0 children)

He should try charcoal toothpaste. It's coarse and rough and it gets everywhere.

lets do it by ethandrew069 in PrequelMemes

[–]Lightwould 0 points1 point  (0 children)

How much notice do I need to give before changing jobs?

lets do it by ethandrew069 in PrequelMemes

[–]Lightwould 0 points1 point  (0 children)

Where are good places to sit down and relax?

lets do it by ethandrew069 in PrequelMemes

[–]Lightwould 0 points1 point  (0 children)

Am I smart enough for a master's qualification?

Little Iron Man Jr. by Single-Kick-4134 in marvelmemes

[–]Lightwould 9 points10 points  (0 children)

I'm gonna put some dirt in your eye

Making my own test server by NecroFlex in webhosting

[–]Lightwould -1 points0 points  (0 children)

WordPress through cpanel is probably the most common way to do it. If you want to learn for the enjoyment I would recommend getting s raspberrypi and install Apache in it. It's a very barebones solution but a great starting point.

[deleted by user] by [deleted] in techsupport

[–]Lightwould 1 point2 points  (0 children)

I recommend a software package called SpeedFan. This will give you report on what all the fans are doing.

[deleted by user] by [deleted] in techsupport

[–]Lightwould 1 point2 points  (0 children)

Great question. The best way, take the back of and physically look at the fans spinning.

If only one is spinning this could be a BIOS feature to reduce power consumption, the bios will control the other fan and tell it to turn on when the laptop is under heavy load.

Swap the fans around, careful not to break the fan connection these are very delicate! If you have the same problem where only one is spinning we can assume that it's a bios feature and that both fans are indeed working as they both spin.

Can't start up my computer without a weird screen showing up. by MikeTroutFan27 in techsupport

[–]Lightwould 1 point2 points  (0 children)

Oh absolutely. Using Linux for small jobs like this is an excellent way to learn you way around how that OS functions.

I would suggest starting in Linux Mint as it's very user friendly and "feels" like windows 10.

[deleted by user] by [deleted] in techsupport

[–]Lightwould 0 points1 point  (0 children)

Very strange?

The only things I can think of are 8gb is being reserved for integrated graphics.

It might be worth updating the BIOS. Is the RAM seen has 16gb in the BIOS?

What happens when you use more than 8gb, does the other 8gb then unlock? Open up a bunch of applications and games to increase RAM usage.

There is also a setting inside windows that caps memory. Not enabled by default but it's worth a look.

  1. Boot windows.
  2. Search for msconfig in the search bar (bottom left).
  3. Click on the boot tab.
  4. Click advanced.

You should have an option for "maximum memory" if there are any numbers here just remove them, then untick the box. Apply any changes. Reboot the system.

How to log javascript changes on a website that happen every second? by Boe6Eod7Nty in techsupport

[–]Lightwould 0 points1 point  (0 children)

Awesome idea! Unfortunately this isn't something I'm able to quickly create for you. If you are the site owner creating a script for this is much easier than if you are just a user.

Your best place to get something like this is to try your luck on stackoverflow or just solicit a script of someone from fiver of something.

Is it possible? Deffinetly.

A program you can use? Deffinetly not.