[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/g/ humor thread
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 117
File: hihgcpu.png (51 KB, 1306x504) Image search: [Google]
hihgcpu.png
51 KB, 1306x504
/g/ humor thread
>>
Resolution
To resolve the issue, do not create a user account contains the string "user" on the computer.
WOW REALLY?
>>
File: 1466984591403.png (130 KB, 1604x1168) Image search: [Google]
1466984591403.png
130 KB, 1604x1168
>open sores software
>>
File: 1466985249667.jpg (54 KB, 576x382) Image search: [Google]
1466985249667.jpg
54 KB, 576x382
>>
File: 1466789307824.jpg (16 KB, 714x547) Image search: [Google]
1466789307824.jpg
16 KB, 714x547
>>
>>55295854
>>55295889
Microsoft Defense Squad over here
>>
>>55295854
>open sores software
nanisore.sys
>>
File: 10u61t.jpg (120 KB, 500x707) Image search: [Google]
10u61t.jpg
120 KB, 500x707
>>
File: 1464319906723.jpg (471 KB, 2272x1704) Image search: [Google]
1464319906723.jpg
471 KB, 2272x1704
>>
>>55295917
>no keyboard found
>press any key to continue
every time
>>
File: 1307815839904.jpg (50 KB, 500x333) Image search: [Google]
1307815839904.jpg
50 KB, 500x333
>>
File: 1465342028643.jpg (74 KB, 877x745) Image search: [Google]
1465342028643.jpg
74 KB, 877x745
>>
>>55295917
What language is this?
>>
File: 1466645927849.jpg (123 KB, 811x608) Image search: [Google]
1466645927849.jpg
123 KB, 811x608
>>
File: ati_radeon_graphics-wide.jpg (319 KB, 1920x1200) Image search: [Google]
ati_radeon_graphics-wide.jpg
319 KB, 1920x1200
>>55295917
>stard windoc normalli

KEK OF THE TIME

KEK

N V I D I O T
>>
File: 1465341741264.jpg (37 KB, 500x494) Image search: [Google]
1465341741264.jpg
37 KB, 500x494
>>55295938
>>
>>55295940
fuccboianese
>>
>>55295889
that's not open source.
that's the Hammerhead Eagle i-Thrust.
>>
>>55295940
8-bits-off-in-video-memory language
>>
File: 1462920040722.jpg (9 KB, 246x227) Image search: [Google]
1462920040722.jpg
9 KB, 246x227
>>
>>55295938
Does it have ECC?
>>
>>55295934
>what is short-circuiting
>>
>>55296477
>what is short-circuiting
Something that has nothing to do with that picture.
>>
>>55296509
What if you use a shorter cable?
>>
File: 1454829502499.webm (520 KB, 360x360) Image search: [Google]
1454829502499.webm
520 KB, 360x360
>>55296477
>>
>>55296531
Unless the polarities are switched, it does not matter how long the cable is.
>>
File: 1440100311305.jpg (32 KB, 500x666) Image search: [Google]
1440100311305.jpg
32 KB, 500x666
>>55295924
>>
>>55295854
Aside from avatars and bad kerning I see nothing wrong with this
>>
File: system8mhz_nah_1600.jpg (54 KB, 800x600) Image search: [Google]
system8mhz_nah_1600.jpg
54 KB, 800x600
>>
>>55296681
My first 386 had a faster clock than this Pentium.
>>
he fell for the
>I'm gonna """"Study"""" """"Cyber Security"""" :^D meme
>>
>>55295917
>"Yeah, I see what the problem is. You computer's had a stroke"
>>
>>55296699
Underclocked
>>
File: 1467060834222.png (74 KB, 700x468) Image search: [Google]
1467060834222.png
74 KB, 700x468
>>
File: mfw.png (117 KB, 1024x749) Image search: [Google]
mfw.png
117 KB, 1024x749
>>55295917
>>
>>55295838
>a bug that retarded is allowed to exist
what kind of pajeets did they hire to write windows?
>>
File: server crash.jpg (107 KB, 919x800) Image search: [Google]
server crash.jpg
107 KB, 919x800
DROP SERVER
>>
File: SydBarrett_nuts.jpg (24 KB, 350x541) Image search: [Google]
SydBarrett_nuts.jpg
24 KB, 350x541
>>
File: 0W.jpg (108 KB, 750x588) Image search: [Google]
0W.jpg
108 KB, 750x588
>>55296831
>>
File: Rowsdower!_shells.jpg (22 KB, 312x475) Image search: [Google]
Rowsdower!_shells.jpg
22 KB, 312x475
>>55296841
>>
File: 1457554109880.jpg (37 KB, 800x533) Image search: [Google]
1457554109880.jpg
37 KB, 800x533
>>
>>55296849
That made me laugh way harder than it should
>>
>>55296770
Of course, how stupid of me... Even the 486 that many of my friends had at the time were already 66 MHz, with that fantastic TURBO button that cut the clock in half, visible in that glorious display.

What was the purpose of the turbo button anyway? Who would want to turn it off?
>>
>>55296884
Conpatibility with older apps that used CPU clock. With turbo enabled they would look speedhacked.
>>
>>55296681
pretty impressive actually
>>
>>55296908
I remember that there were some older games that sped up real good, but even with the turbo off, it never slowed down enough. I don't remember a single time this was useful.
>>
File: open source vs closed source.jpg (111 KB, 576x764) Image search: [Google]
open source vs closed source.jpg
111 KB, 576x764
>>55295854
>>
File: 1463706942914.png (93 KB, 717x699) Image search: [Google]
1463706942914.png
93 KB, 717x699
>>
>>55295946
Kinda cure desu
>>
>>55296884
>>55296962
Some older games for the 8088 use the CPU cycles for timing, so they run perfectly only at 4.77MHz or 7MHz, turning ON turbo made the CPU run at those slower speed so the games would fine.
>>
>>55296981
seriously though, why is everything open source so inferior? is it because nobody gets paid?
>>
>>55297031
But on a 486 at 66 MHz, turning off the turbo meant going down to 33 MHz, hence my point.
>>
File: microsoftreport.jpg (60 KB, 590x493) Image search: [Google]
microsoftreport.jpg
60 KB, 590x493
>>
File: 1460511208076.jpg (212 KB, 800x600) Image search: [Google]
1460511208076.jpg
212 KB, 800x600
>>
File: zend.jpg (67 KB, 807x349) Image search: [Google]
zend.jpg
67 KB, 807x349
>>
>>55297047

kek
>>
>>55297036
>is it because nobody gets paid?
Of course.
>>
File: wordpress_is_a_clusterfuck.png (121 KB, 876x1227) Image search: [Google]
wordpress_is_a_clusterfuck.png
121 KB, 876x1227
>>55297047
>>55297063
>>
>>55297084
>>55297036
>>55296981
nice samefagging here
>>
>>55295838
>bug happen
>blame the user
>never fix it
Go kill yourself. never work on /g/ related stuff
>>
File: 1465416109742.jpg (245 KB, 865x657) Image search: [Google]
1465416109742.jpg
245 KB, 865x657
>>
>>55297038
Must be some shitty ass motherboard.
>>
>>55296845
Would this really work?
>>
>>55297047
They automatically filter out such sites.
>>
>>55297054
This is actually a clever way of teaching how backlit displays work.
>>
>>55297158
No because the registration is saved as string
>>
>>55297054
A friend of mine has a laptop that's nearly in this bad of condition.
>>
File: 1457589630731.jpg (720 KB, 1840x3264) Image search: [Google]
1457589630731.jpg
720 KB, 1840x3264
>>55296831
>>
>>55295854
>>55295889
>10 rupees have been deposited to your account Rajeesh.
>>
And then someone says that Reddit is worse than /g/, holy shit kill yourselves, Reddit is heaven compared to this shithole you inbred meme spouting faggots
>>
>>55297486
>le upboats
any community that actively encourages hivemind mentality is cancer
>>
>>55296981
Pretty ironic that Tesla made all their stuff open source. But maybe that's the joke here.
>>
>>55297136
I chuckled
>>
>>55297486
yeah, because karma point are totally not skewing the type of content that gets posted.
Pretty fucked up when people only post what think others could like, not what they themselves like.
>>
File: FB_IMG_1466704281959.jpg (109 KB, 539x960) Image search: [Google]
FB_IMG_1466704281959.jpg
109 KB, 539x960
>>
>>55297486
>Discourages free speech with karma to improve user behaviour

lmao
>>
>>55297602
wtf, what's the point of those bars?
>>
>>55295854
>>55295889
>>55295904
>>55296981
>>55297036
Hello there! You seem to have used the term "open source".

This term was created by a group of people that did not want to be associated with the free software movement. When I say "free" software (one of the alternatives preferable to "open source"), it's not about price; in that case I would say "gratis", or "free as in free beer". It's about freedom! This is what the free software movement is fighting for.

So what is "free" software? Free software is any software that guarantees the user the four essential software freedoms:
> 0. Run the program as you wish.
> 1. Study the source code and change it so it does what you wish.
> 2. Redistribute exact copies of the program.
> 3. Distribute your modified version of the program.

Some people decided that they wanted to restrict the user; but being able to study and modify the "open source" code is not enough! This is directly hurting the cause of the free software movement because it takes away the sociological "freedom" aspect of free software and turns it into a technological issue.

So for those reasons I ask that, in the future, you use the terms "free", "free/libre" or, if necessary "FLOSS" (short for "free/libre and open source"), though the latter should still be avoided.
>>
File: 1460488641549.png (388 KB, 634x602) Image search: [Google]
1460488641549.png
388 KB, 634x602
>>
>>55297707
KEKD HARD
>>
>>55297707
anyone has the pic?
>>
File: I totally have a plan guys.webm (206 KB, 720x720) Image search: [Google]
I totally have a plan guys.webm
206 KB, 720x720
>>55297707
damn
>>
>>55297707
sauce?
>>
>>55297737
>>55297989
http://gelbooru.com/index.php?page=post&s=view&id=963860>>55297989
>>
>>55297647
keeping it clean
>>
>>55298052
man, it's a blue biard...
>>
>>55297647
(You)
>>
>>55298023
Thanks onii-senpai
>>
>>55298052
retard
>>
File: blue beard.jpg (21 KB, 236x354) Image search: [Google]
blue beard.jpg
21 KB, 236x354
>>55298066
>>
>>55296540

Goddamn it every time
>>
>>55297707
why would someone use that as a phone wallpaper
>>
File: install-gentoo.gif (3 MB, 640x360) Image search: [Google]
install-gentoo.gif
3 MB, 640x360
>>55297006
Do it.
>>
>>55298362
Plebs. Fucking weebo plebs.
>>
File: 0MVCR32.jpg (34 KB, 460x607) Image search: [Google]
0MVCR32.jpg
34 KB, 460x607
>>
File: I am beyond mad.jpg (167 KB, 600x450) Image search: [Google]
I am beyond mad.jpg
167 KB, 600x450
Take some
>>
>>55296548
>what is resistance
>>
>>55298707
>what is a loop
>>
>>55296531
>>55296509
>>55298707
https://www.youtube.com/watch?v=QKUSFQu96BI
>>
>>55296831
interstellar.jpg
>>
>>55298809

Does this mean that the "charging" icon from the OS simply detects if a power connector is attached, and doesn't care if there is actually enough current to charge the battery?
>>
>>55297245
K.... KEEP ME UPDATED
>>
File: 1387562786687.jpg (472 KB, 1613x1210) Image search: [Google]
1387562786687.jpg
472 KB, 1613x1210
anyone remember this?
>>
File: 1388778425525.jpg (138 KB, 1000x421) Image search: [Google]
1388778425525.jpg
138 KB, 1000x421
>>
>>55299684
fuck you, i'm still pissed i didn't start mining when bitcoins were first shilled on /g/ like 7 years ago
>>
>>55297158
Depends.
>>
>>55296778
mobile porn was available long before that, obviously it wasnt as good
>>
>>55295917
your pc stopped besponding :DDDD
>>
File: 3fe.gif (801 KB, 360x203) Image search: [Google]
3fe.gif
801 KB, 360x203
>>55295902
>>55297332
>>55297668


> Getting this asshurt in a humor thread
> Cant take a fucking joke
>>
File: 1354570258205.jpg (605 KB, 1366x768) Image search: [Google]
1354570258205.jpg
605 KB, 1366x768
>>
File: 1361965984797.jpg (131 KB, 800x792) Image search: [Google]
1361965984797.jpg
131 KB, 800x792
>>
File: 1358804859594.jpg (67 KB, 500x667) Image search: [Google]
1358804859594.jpg
67 KB, 500x667
>>
File: 1364379405698.jpg (192 KB, 781x1920) Image search: [Google]
1364379405698.jpg
192 KB, 781x1920
>>
File: 1264158960977.png (436 KB, 895x1131) Image search: [Google]
1264158960977.png
436 KB, 895x1131
>>
File: 1283785212416.png (74 KB, 661x716) Image search: [Google]
1283785212416.png
74 KB, 661x716
>>
File: 1462059193953.png (44 KB, 661x716) Image search: [Google]
1462059193953.png
44 KB, 661x716
>>
File: 1408482237691.png (100 KB, 661x953) Image search: [Google]
1408482237691.png
100 KB, 661x953
>>
>>55297602
That's porn not humour.
>>
File: 1374730925548.png (234 KB, 678x695) Image search: [Google]
1374730925548.png
234 KB, 678x695
>>
>>55299731
You and me both.
>>
File: bo2k.jpg (169 KB, 650x975) Image search: [Google]
bo2k.jpg
169 KB, 650x975
>>
File: 1352427713281.jpg (84 KB, 998x751) Image search: [Google]
1352427713281.jpg
84 KB, 998x751
>>
File: 1389064473620.png (201 KB, 1239x712) Image search: [Google]
1389064473620.png
201 KB, 1239x712
>>
>>55299830
Just like how your precious Windows is a joke?
>>
File: 1296146770986.jpg (53 KB, 604x569) Image search: [Google]
1296146770986.jpg
53 KB, 604x569
>>
File: 1397764898210.jpg (102 KB, 833x642) Image search: [Google]
1397764898210.jpg
102 KB, 833x642
>>
>>55296378
>4 chips
Probably not.
>>
File: 1275257823233.png (133 KB, 619x490) Image search: [Google]
1275257823233.png
133 KB, 619x490
>>
File: 1337989470185.jpg (221 KB, 650x1219) Image search: [Google]
1337989470185.jpg
221 KB, 650x1219
>>
File: 1467114180867.jpg (239 KB, 1392x924) Image search: [Google]
1467114180867.jpg
239 KB, 1392x924
>>
File: floppy_fail.jpg (51 KB, 477x395) Image search: [Google]
floppy_fail.jpg
51 KB, 477x395
>>
File: 1415318302915.png (14 KB, 289x222) Image search: [Google]
1415318302915.png
14 KB, 289x222
to all shills and fanboys
>>
>>55300031
that's fake right?
>>
File: 1358806357497.png (18 KB, 800x400) Image search: [Google]
1358806357497.png
18 KB, 800x400
>>
File: bingo.jpg (148 KB, 532x605) Image search: [Google]
bingo.jpg
148 KB, 532x605
>>
File: bingo2010.png (59 KB, 532x605) Image search: [Google]
bingo2010.png
59 KB, 532x605
>>
File: open source vs open source.png (793 KB, 576x764) Image search: [Google]
open source vs open source.png
793 KB, 576x764
>>55296981
In reality...
>>
>>55295813
sauce
>>
File: 1378901637660.jpg (34 KB, 499x750) Image search: [Google]
1378901637660.jpg
34 KB, 499x750
>>55300071
>>
>>55297158
Depends on wether the engineers remember to SANITIZE THEIR INPUT.
>>
File: good_advice.jpg (126 KB, 729x504) Image search: [Google]
good_advice.jpg
126 KB, 729x504
>>
>>55297602
Thanks doc
>>
File: todays_kids_floppy.jpg (198 KB, 1024x768) Image search: [Google]
todays_kids_floppy.jpg
198 KB, 1024x768
>>
File: YGM9o9U.jpg (756 KB, 5312x2988) Image search: [Google]
YGM9o9U.jpg
756 KB, 5312x2988
>>
File: 1383198390046.jpg (191 KB, 989x716) Image search: [Google]
1383198390046.jpg
191 KB, 989x716
>>
>>55300152
If you need to sanitize your input, you're doing something you shouldn't be doing.
>>
File: 1352422159664.jpg (34 KB, 333x498) Image search: [Google]
1352422159664.jpg
34 KB, 333x498
>>
File: 1363435776546.png (377 KB, 804x2604) Image search: [Google]
1363435776546.png
377 KB, 804x2604
>>
File: 1358805372910.png (361 KB, 499x364) Image search: [Google]
1358805372910.png
361 KB, 499x364
>>
>>55295838
It's a pretty niche bug, it is dumb that Microsoft never fixed it though.

>>55296540
This one is great.

>>55296681
>why would you do this

>>55300071
There is zero chance of that working.
>>
File: 1378901850836.jpg (139 KB, 1097x550) Image search: [Google]
1378901850836.jpg
139 KB, 1097x550
>>
File: mordor_telnet.jpg (32 KB, 640x319) Image search: [Google]
mordor_telnet.jpg
32 KB, 640x319
>>
File: gee_8ball.jpg (66 KB, 595x806) Image search: [Google]
gee_8ball.jpg
66 KB, 595x806
>>
File: 1457907695355.jpg (57 KB, 1137x640) Image search: [Google]
1457907695355.jpg
57 KB, 1137x640
>>
File: 1457665325139.jpg (35 KB, 778x491) Image search: [Google]
1457665325139.jpg
35 KB, 778x491
>>
File: 1451054329752.jpg (305 KB, 2052x1901) Image search: [Google]
1451054329752.jpg
305 KB, 2052x1901
>>
>>55300249
believe it or not anon, but there is software out there that for whatever reason will recieve some form of input not generated by a "trusted" source. Whenever this happens, if it concerns security and stability of the software, you need to sanitize the input before you start parsing it. Infact, that picture with the car shows a perfect example of a situation where you cannot trust the input.
>>
File: 1449290645771.jpg (57 KB, 600x450) Image search: [Google]
1449290645771.jpg
57 KB, 600x450
>>
File: 1362876535463.jpg (560 KB, 1260x800) Image search: [Google]
1362876535463.jpg
560 KB, 1260x800
>>
File: 1418055412505.jpg (215 KB, 1062x954) Image search: [Google]
1418055412505.jpg
215 KB, 1062x954
>>
File: 1373234493424.png (150 KB, 764x600) Image search: [Google]
1373234493424.png
150 KB, 764x600
>>
>>55300378
If your software can't handle arbitrary input, then your software is the problem - not the input.

If your database can't store a ', then your database is a piece of shit, and instead of “sanitizing” your input (i.e. replacing ' by X or whatever), you should fix your database instead.
>>
File: adults_cant_into_computer.png (88 KB, 396x584) Image search: [Google]
adults_cant_into_computer.png
88 KB, 396x584
>>
>>55299969
bo2k was awesome, was too young to do anything more than infect 1-2 classmates.
>>
File: 1374752518465.jpg (158 KB, 898x1024) Image search: [Google]
1374752518465.jpg
158 KB, 898x1024
>>
File: 1466562632092.png (159 KB, 583x584) Image search: [Google]
1466562632092.png
159 KB, 583x584
>>
File: 1461923953999.png (301 KB, 640x970) Image search: [Google]
1461923953999.png
301 KB, 640x970
>>
>>55295813
What the hell, my user name is always "user"
>>
File: 1452305656741.jpg (42 KB, 720x814) Image search: [Google]
1452305656741.jpg
42 KB, 720x814
>>
File: 1451171193791.jpg (36 KB, 720x544) Image search: [Google]
1451171193791.jpg
36 KB, 720x544
>>
File: 1338660431522.gif (91 KB, 576x821) Image search: [Google]
1338660431522.gif
91 KB, 576x821
>>
>>55300441
That red tetrahedral one looks tricky.
>>
File: 1459899293896.png (89 KB, 469x346) Image search: [Google]
1459899293896.png
89 KB, 469x346
>>
File: 1213094917049.png (137 KB, 880x690) Image search: [Google]
1213094917049.png
137 KB, 880x690
>>
File: 1449033558240.jpg (232 KB, 816x1239) Image search: [Google]
1449033558240.jpg
232 KB, 816x1239
>>
>>55300425
Do you know how SQL works? There is not a specific program you call that asks for input and will just take everything.
>>
File: 1226076619655.jpg (49 KB, 494x392) Image search: [Google]
1226076619655.jpg
49 KB, 494x392
>>
File: broken_pc.jpg (45 KB, 500x286) Image search: [Google]
broken_pc.jpg
45 KB, 500x286
>>
File: iOS7_metro.png (1 MB, 1280x720) Image search: [Google]
iOS7_metro.png
1 MB, 1280x720
>>
File: snsv.png (116 KB, 411x671) Image search: [Google]
snsv.png
116 KB, 411x671
>>
>>55300568
>DUDE COKE LMAO
are you a woman, or underaged?
>>
>>55300570
SQL is a human-facing programming language. If your program generates SQL code and compiles it during runtime, it's badly designed.

Calling
mysql_query("SELECT * FROM foo WHERE bar = '" + $user_input + "' LIMIT 1;");
is about on the same level of security as
system("some_program -X '" + $user_input + "'");


Both are anti-patterns you should never have to write. If you find yourself writing something like this, instead of changing it to
mysql_query("SELECT * FROM foo WHERE bar = "' + escape_really_hard($user_input) + "' LIMIT 1;");
, you should simply not be doing this in the first place.

Every single time you think you are being clever by generating and executing code in a human-facing language at runtime, you are doing something wrong.

See https://en.wikipedia.org/wiki/Eval#Security_risks
>>
>>55300425
You're a fucking moron.

Sanitation of input is necessary so long as you cannot guarantee what form the input is going to take.

All you're suggesting is moving the distinction of where the sanitation, or "input check" takes place.
>>
File: invalid_user.jpg (324 KB, 2250x2233) Image search: [Google]
invalid_user.jpg
324 KB, 2250x2233
>>55300652
>escape_really_hard($user_input)
So you do advocate sanitizing user input? Then what was the point of your reply?
>>
>>55299948
this was the coziest youtube layout desu
>>
>>55300714
Maybe you should read my post before responding.

In particular, you seem to have missed the parts where I said “INSTEAD OF CHANGING IT TO” before quoting that anti-style.

>>55300668
>Sanitation of input is necessary so long as you cannot guarantee what form the input is going to take.
You can always guarantee what form the input is going to take, because your program is the one that's taking the input. There is no exception to this rule. All you have to do is design your system such that it can handle every possible input.

Security issues only arise when people don't understand what inputs they are going to be given and make a wrong assumption. (For example, thinking that POSIX filenames are going to be valid UTF-8 sequences)

But tl;dr the solution is never “sanitize your inputs”, the solution is “make sure you understand your input space”.
>>
>>55297668
autists are out in full force today
>>
>>55300795
Yes, you're saying that your 3rd code block is the one that should be used. Which sanitizes the user input before storing it in the DB.
>>
>>55295838
Literally Pajeet-tier grammar
>>
>>55300843
>before storing it in the DB
Or rather, before executing the query.
>>
>>55300143
>97,6 GB
Impressive
>>
File: 1449812949538.jpg (64 KB, 556x417) Image search: [Google]
1449812949538.jpg
64 KB, 556x417
>>55300636
Straight edge faggot detected
>>
>>55300636
>poor fag can't afford cocaine
>>
>>55300843
Are you literally incapable of reading? All three of my code blocks are the ones that I'm claiming you should NEVER find yourself writing.

The third code block is just an example of an anti-pattern used by people who don't really know what they're doing.

Since you insist, let me present to you an example of how to write a real program:

foobar = mysql_prepare("SELECT * FROM foo WHERE bar = ? LIMIT 1;");

// and later
foobar.execute($user_input);


The critical difference here is the separation of program and data. Instead of generating a program from a template + the data at runtime, then interpreting that (which is bound to fail unless you take great care to escape everything properly); you are writing a generic program in a high-level language, compiling this program once, and then feeding it arbitrary data. (Which is completely safe, since you're not mixing data with code anymore)

In this example, I clearly never had to “sanitize” (or “escape”) $user_input anywhere, because my prepared statement is equipped to handle arbitrary input - as should any good abstraction.
>>
>>55300939
Let's go through your post

>Both are anti-patterns you should never have to write
First 2 are bad
>If you find yourself writing something like this,
Refers to the first 2 again
>instead of changing it to (...) you should simply not be doing this in the first place.
So it should be changed to the 3rd one, implying that this one is good?
>>
File: goobycheat.jpg (17 KB, 400x247) Image search: [Google]
goobycheat.jpg
17 KB, 400x247
>>55300928
blue dragon_dildos1?
that's a dumb na... wait...
>>
>>55300482
underrated
>>
>>55300135

The one on top is free, not open. The one in the bottom is actually only open.
>>
>>55300939
Note that this is also just pseudocode meant to demonstrate the effect. In a modern high level language, you won't be finding yourself writing code inside a string at all.

Instead, you might have the parts of your program written in SQL separated from the parts of your program written in X, and then load at runtime (or even statically compile + link) these SQL parts of the program.

Or for another example, you might be using a higher-level abstraction for database access, for example Linq, SQLAlchemy or Haxl; so you don't even have to be writing SQL to begin with.

>>55300968
>So it should be changed to the 3rd one, implying that this one is good?
I assume at this point that English is simply not your first language and that you don't fully understand how English grammar works. Let's simplify the sentence somewhat.

The overall structure is “If you find yourself X, then Y”, which is a conditional. (i.e. ‘Y’ is only asserted to be true when ‘X’ is also true)

For understanding the grammar of the ‘Y’ part, we can look at it in isolation, since the conditional doesn't change the meaning. The Y part is this: “Instead of doing W, you should do Z” which is a replacement. It's also a conditional in a sense, since it means something like this: “Don't do W. If you need to do W, do Z instead”.

To to summarize, the sentence can be broken down to something like this:

1. Don't do X. (X = the two first examples)
2. Don't do W as a replacement for X. (W = the third example)
3. Instead, use Z as a replacement for X (and/or W). (Z in context was “design your system to handle arbitrary inputs”, for an example see >>55300939)

I hope that clears up admittedly somewhat advanced grammar for you.
>>
File: windows_devolution.jpg (93 KB, 735x779) Image search: [Google]
windows_devolution.jpg
93 KB, 735x779
>>55295813
>>
>>55300928
White 1234 ?
>>
>>55300928
Black coconutsMarckWallie
>>
>>55299705
I don't get it, it could /dev/sd* and even then it's not guaranteed it'll be /dev/sdd

This isn't funny *at all*
>>
>>55301032
I see your point now. It was just ambiguous.
I Interpreted it as
>If you do X (instead of changing it to Y), you should stop
instead of
>(If you do X) instead of changing it to Y, you should stop
>>
>>55296981
>tfw open source projects have better design than many propietary software I've worked on

Regarding graphical design it's completely different though
>>
File: win10.png (320 KB, 1024x1159) Image search: [Google]
win10.png
320 KB, 1024x1159
>>55301073
I think you mean
>>
>>55300482
That's gay.
>>
>>55301320
Perfect
>>
File: 1441377395968.jpg (229 KB, 998x890) Image search: [Google]
1441377395968.jpg
229 KB, 998x890
>>
>>55301032
Sanitization by design is still sanitization.
>>
File: 2015-12-18_13-20-57.png (209 KB, 1334x1078) Image search: [Google]
2015-12-18_13-20-57.png
209 KB, 1334x1078
>>
>>55301343
>"It's a fucking RAM slot. How dim can you be"
>not
>"It's a fucking RAM slot. How DIMM can you be"
>>
>>55300408
kekkings
>>
File: 2015-12-18_13-21-12.png (90 KB, 1829x1069) Image search: [Google]
2015-12-18_13-21-12.png
90 KB, 1829x1069
>>55301355
>>
File: 2015-12-04_14-34-50.png (108 KB, 968x507) Image search: [Google]
2015-12-04_14-34-50.png
108 KB, 968x507
>>
File: 1450741036467.jpg (196 KB, 590x443) Image search: [Google]
1450741036467.jpg
196 KB, 590x443
>>
File: denko_1_of_5_(´・ω・`).png (640 KB, 2028x3120) Image search: [Google]
denko_1_of_5_(´・ω・`).png
640 KB, 2028x3120
>>55301369
Why not make 1 picture out of it?
There is no need to space it out into 2.
>>
>>55301404
I don't see anything wrong here.
>>
>>55299916
>>55299906
>>55299938

Need Nvidia/AMD version of this for reasons
>>
>>55300652
>If your program generates SQL code and compiles it during runtime, it's badly designed.
ORMs generate SQL code and compile it during runtime. Your point being?
>>
>>55301032
X and "this" are different
>>
>>55299705
More likley that windows users will understand it. In windows it just starts with C: and goes to D:, E:, etc. The external hard drive implies they have one internal one (most likely C: in this case). Since the external hard drive is presumed to be the only oyher hard drive it is most likely D:
>>
>>55301539
D: would most likely be a DVD drive tho
>>
>>55301350
I disagree. The frame of reference is different.

When dealing with input of type ‘X’ and a backend of type ‘Y’, the sanitization approach is to mangle ‘X’ so it fits ‘Y’. The approach I'm suggesting is to rewrite ‘Y’ so it fits ‘X’.

In one approach, your input is left untouched and your program changes to compensate. In the other, your input is mangled and your program left the same.

The problem with input mangling is that it always blows up. Instead, use a static type system that allows you to e.g. distinguish ByteString from String; and make sure you engineer your data storage system in a way that handles the entire input space, linearly, without branching on it.

Anything else is just wrong design that is bound to either fail, contain bugs, mangle the input (fail to round-trip) or do any other number of unpleasant things.
>>
>>55300057
I don't get it.
>>
>>55301520
1. If the ORM is doing that, then the ORM is also an example of bad design, and it should be fixed internally to avoid having to generate and parse SQL at runtime.

2. Your code is more likely to be bugged than a well-known library

3. Hiding complexity behind a reusable abstraction allows you to write it once, instead of many times. ORMs expose a simple abstraction that you don't have to worry about fucking up.
>>
File: denko_2_of_5_(´・ω・`).png (512 KB, 1554x3135) Image search: [Google]
denko_2_of_5_(´・ω・`).png
512 KB, 1554x3135
>>55301409
I guess I'll just post the other 4 in case anyone gets interested in it.
>>
File: denko_3_of_5_(´・ω・`).png (516 KB, 1539x3368) Image search: [Google]
denko_3_of_5_(´・ω・`).png
516 KB, 1539x3368
>>55301633
>>
File: denko_4_of_5_(´・ω・`).png (608 KB, 2032x2879) Image search: [Google]
denko_4_of_5_(´・ω・`).png
608 KB, 2032x2879
>>55301642
not really /g/ related, though
>>
>>55296854
Wtf is that
>>
File: denko_5_of_5_(´・ω・`).png (778 KB, 2040x3693) Image search: [Google]
denko_5_of_5_(´・ω・`).png
778 KB, 2040x3693
>>55301661
>>
>>55301618
magnet
>>
>>55301409
because i'm lazy
>>
File: 1449760648622.png (498 KB, 1058x1226) Image search: [Google]
1449760648622.png
498 KB, 1058x1226
>>
>>55301633
ey fuckin denko.
had to consume 3 beers to get though that story
>>
File: 1461813082437.jpg (27 KB, 473x248) Image search: [Google]
1461813082437.jpg
27 KB, 473x248
>>
>>55298653
NOOOOOOOOOO
>music can't get viruses, only games can
>>
>>55300928
Naked ILikeTrains
>>
>>55299948
That and the immediately older youtube design (which was pretty much the same in organization and functionality but different aesthetic) was the best youtube. I really miss that "19 videos" button that let's you see more from the same author easily.
>>
>>55300928
Noshirt hunter2
>>
>>55301661
>not really /g/ related, though

Reported.
>>
>>55300050
12 rupees have been deposited into your account.
Have a nice day Pajeet!

Regards,

Nvidia
>>
>>55295967
I want to see a PC with all this snake-oil installed
>>
>>55301404
GNU
NOT EVEN ONCE
>>
>>55300826
>>55299830
>Not recognizing stale pasta
Come on /g/
>>
>>55301623
When shout it parse SQL then?
>>
>>55302036
Ideally, during the compilation of your program. SQL is source code, and source code is meant to be compiled. Anything else is bad PL design.

(Nu-programmers with their slow-ass garbage collected interpreted “dynamic” memelangs can fuck right off)

At the very worst, compile it to bytecode and run it through a lightweight JIT or interpreter at runtime.
>>
>>55296681
sieht faek aus aber hallo deutschfreund

this is my machine around 2000
>>
>>55295917
>Spurdo becomes a virus
>>
>>55301320
>>55301073
why is vista like that?
>>
>>55301669
Water-cooled router?
Now I want one desu.
>>
>>55302074
>(Nu-programmers with their slow-ass garbage collected interpreted “dynamic” memelangs can fuck right off)
Oh /g/, how I love you and your retarded opinions...

Oh, and most "dynamic memelangs" are cached/compiled to bytecode.
>>
>>55302139
Yes, and these “dynamic memelangs” are all examples of bad PL design. Bytecode is better than in-loop parsing, but it's still bad PL design.

>Your retarded opinions
Show me any single academic paper on type theory, programming language research, compiler design etc. that thinks dynamic languages are a good idea.
>>
>>55300652
What if I have to generate a more complex query than that?
... WHERE name = x.name AND likes_cookies = false AND EXTRACT(dow FROM last_update) IN (1,2,3)


There is no way I can generate all posible queries beforehand.
>>
>>55301875
hello senpai
>>
>>55295889
I've laughed harder than I should have.
Thread replies: 255
Thread images: 117

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.