Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

The under 100 line challenge!

On 5/6/2021 at 12:40 PM, DevBennyturtle said:

I don't see how this is hard. Just use C++ and put everything on 1 line 😛

computers gonna shit itself

Main PC: the literature club machine

Intel I5 9600k @ 4.2 Ghz | MSI z390-a pro | G.Skill Trident Z RGB 32 GB 3000Mhz | Samsung 970 Evo 500 GB | Thermaltake Floe Riing RGB 240 | Asus GeForce GTX 1660 Ti 6 GB DUAL OC | Thermaltake Core P3 TG Snow Edition

 

Daily drivers

OPPO A52 | APPLE watch series 3 | Macbook air 2017 | Royal kludge RK61 | Razer Viper | Beryodynamic DT 990 PRO | Focusrite Scarlett solo gen 2

Link to post
Share on other sites
15 hours ago, mon1ka said:

computers gonna shit itself

depends if its syntax'ed properly, if it is the computer wont care

Link to post
Share on other sites
On 5/18/2021 at 10:07 PM, DevBennyturtle said:

depends if its syntax'ed properly, if it is the computer wont care

A decent build system with proper dependency tracking will only compile changed files and dependent files.

In a huge project a clean build can take hours but an incremental build can be done under secs or minutes depending on changes.

ಠ_ಠ  if i said something stupid please let me know

Link to post
Share on other sites
  • 2 weeks later...

You can't put a complete C++ program into one line, unless you don't need one single #.

Write in C.

Link to post
Share on other sites
  • 2 weeks later...
  • 2 weeks later...

I made a powershell script that will get the stuff I need when installing windows, mainly system drivers, gamelaunchers, and other must have apps.

You could probably go in and replace the links to the download pages and use this for yourself, but you might have to change the basic format for the link type, as ive made unziping, number removing, and other ones to make it easier and more adaptable./

clocks in at 106 lines, would be less than 100, but iver added blank lines and markers for what each block does to make it more understandable.

 

powershelldl.ps1

please, pm me if you would like to contribute to my gpu bios database (includes overclocking bios, stock bios, and upgrades to gpus via modding)

Bios database

My beautiful, but not that powerful, main PC:

prior build:

Spoiler

 

 

Link to post
Share on other sites
On 6/1/2021 at 7:00 AM, Dat Guy said:

You can't put a complete C++ program into one line, unless you don't need one single #.

Yes you can. Write it on many lines, run the C preprocessor, then minify.

Link to post
Share on other sites
10 hours ago, BadBoyHaloCat said:

Yes you can. Write it on many lines, run the C preprocessor, then minify.

I mean, you're not wrong, but...

 

That's kind of not the point of "one-liners".

ENCRYPTION IS NOT A CRIME

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×