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

YOUR TYPICAL /g/entlemen.

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 177
Thread images: 22

File: received_1424303810977555.jpg (172KB, 1440x1440px) Image search: [Google]
received_1424303810977555.jpg
172KB, 1440x1440px
Hello /g/ents I have been practicing some coding of my own. What do you think?

>pic related, its me senpai
>>
Needs moar
cd code
cd..
cd..
cd..
cd ..
ls
>>
>>59905628
>YOUR TYPICAL /g/entlemen.
>>
File: 1402527523645 (2).webm (2MB, 800x450px) Image search: [Google]
1402527523645 (2).webm
2MB, 800x450px
>>
JUST
>>
>>59905628
why is stallman on right side? should be on left

is this a shoop
>>
>>59905628
>divid
>hardcoding results instead of computing
you'll make a great arduino programmer
>>
>>59905628
0/10 bait, try harder
>>
>>59905628
I like your laptop. But that program is silly.
>>
>>59905842
It's hebrew 4chan.
>>
>>59905659
Those creepy dolls, though!
>>
>>59906810
>creepy
you have to go back to redit you nu-male beta-cuck
>>
>>59905842
Picture flipped?
>>
>>59907353
Yeah, all the tabs and text are right to left, it's flipped.
>>
>>59905659
looks really comfy
>>
>>59905943
shut up, I will stick my meat in you.
>>
File: 14082176934965.jpg (282KB, 1000x1000px) Image search: [Google]
14082176934965.jpg
282KB, 1000x1000px
>>59905628
>gnome
>>
>>59906577
kek
>>
>>59905628
why are you programming in a car?
why isn't your method inside a class?
>>
>>59905628
You look way too normie to be on here, GTFO.
>>
>>>/soc/
>>
Fuck off, kike
>>
>>59905628
>>>/soc/
>>
>>59905659
shit posture is shit
>>
>>59907548
>liking your OS to be a pseudo windows
Okay kid
>>
A blatant fucking normalfag blogging/attention whoring thread, and it still hasn't 404'd. Do you part, faggots.
>>
Someone shoop the graduation student clip art next to that code holy shit
>>
>>59905628
The filename looks correct.
>>
>>59905659
now post the one with mlp
>>
all these triggered vir/g/ins/ lmao
>>
>>59907554
Because its a function not a class
>>
>>59907880
it's Java.
everything has to be inside a class in Java.
>>
File: akiba_thinkpad.jpg (134KB, 1280x720px) Image search: [Google]
akiba_thinkpad.jpg
134KB, 1280x720px
>>
File: 1464128190771.jpg (125KB, 600x600px) Image search: [Google]
1464128190771.jpg
125KB, 600x600px
>>59907904
>>
>>59907914
>no jap keyboard
you had one job
>>
File: Lubuntu_on_x60s.jpg (2MB, 2560x2199px) Image search: [Google]
Lubuntu_on_x60s.jpg
2MB, 2560x2199px
>>59907949
Better?
>>
>>59908007
Not the same computer.
>>
>>59908070
Obviously, because I did not purchase the x201 in Japan.
>>
>>59907712
I wasn't implying that.
>using a desktop environment at all
absolutely disgusting.
>>
>>59908070
Your goalposts have feet.
>>
>>59908088
But you could purchase a japanese keyboard for it, since you are in Japan.
>>
>>59907914
swede?
>>
>>59908097
Who doesn't like feet, eh?
>>
File: received_1254770507880178.jpg (163KB, 1080x1920px) Image search: [Google]
received_1254770507880178.jpg
163KB, 1080x1920px
Mmm hmmm.. r8 my set up featuring my pc fans
>>
>>59908116
Yes, but I'm way too lazy to assemble it, for no benefit whatsoever (hint: you don't need these buttons to type anime language)

>>59908141
No, but this might be a Swedish layout, I'm not sure.
>>
>>59908233
You can bind those buttons for your 1337 h@x0r shortcuts, and typing anime language on latin keyboard syllabicly is cancer.
>>
>>59905659
who is this?
>>
>>59908293
sysadmin anon
>>
>>59908293
some autistic weeb
don't bother. He's as cancerous as any other tripfag on this board, including jordan
>>
>>59908293
shitposting brony tripfag who makes webms of himself to brag about 40k a year
>>
>>59908290
>typing anime language on latin keyboard syllabicly is cancer.
The only people in Japan who use kana input are the elderly and other computer illiterate people. But hey, you're the expert.
>>
>>59908524
It is simply unproductive and twice slower.
>>
>>59908550
Do you faggot even realize that you can use any keyboard to input kana and the extra keys on a Japanese keyboard don't have anything to do with kana input? Literally the only key any Japanese person would ever use is hankaku/zenkaku because in Windows you'd have to click for that. Everything else is done faster by just using the space-bar, regardless of whether you use romaji conversion or kana directly. In any case, the limiting factor for 99% of the Japanese population (when typing Japanese) is not the layout but rather the selection of kanji when typing. No one bothers learning two layouts because guess what, Japanese people also have to type romaji from time to time.
>>
>>59905659
I like your style man
I need more monitors.
>>
>>59908662
>you can use any keyboard to input kana
*you can use kana-input on any keyboard, even regular western ones
>>
>>59908662
It's like writing russian translit with latin letters, lame and unproductive. 1 kana key = 2 keys to type a syllable in latin. Do you even touchtype, nigger?
>>
>>59905659
What do you have running in each screen?
I can't justify having this many monitors.
>>
>>59908717
>lame and unproductive
>the only thing that makes an input system effective is the number of keypresses
>not the position of characters
>not the frequency of having to switch input methods
>not the fact that you are faster if you always use the same input system, thus training muscle reflexes more frequently
Again, explain to me why 99% of the Japanese population below the age of 60 use romaji input when the other one is just so much more productive in your opinion.
>>
>>59908824
The ones who can afford luxury are cucked by american culture and prefer gaybooks, and apple does not have an option of japanese keyboard since they are busy cutting their manufacturing expenses by every penny. Poorfags don't care either and prefer to buy cheapest chinkshit to save money to afford their cardboard shed rent.
>>
>>59908209
i have that case and its garbage
>>
>>59908883
Every keyboard you can purchase in Japan, including the one in the MacBook Pro has a kana option.
>>
>>59909078
why would you keep the case's garbage?
>>
>>59905628
does java not have for loops wtf
>>
>>59905628
>>59908209
>why is /g/ so attractive?
>>
>>59905645
gets me everytime
>>
>>59905659
My back hurts looking at this
>>
>>59907966
Cyra..
>>
>>59905659
this a guys is a fucking pedo.
>>
>>59905659
His youtube channel?
>>
>>59908209
Cute
>///<
>>
>>59913660
eat dick fagoot
>>
>>59911986
selection bias
>>
>>59908209
You look great but get an adult haircut, way too much volume.
>>
>>59908209
I want to run my fingers through your hair, feel the stubble of your cheeks on my palm, and touch my lips to yours.

What are you doing to me? I am not a gay.
>>
File: IMG_20170416_111610-min.jpg (980KB, 3120x4160px) Image search: [Google]
IMG_20170416_111610-min.jpg
980KB, 3120x4160px
>>59905628
>>
>>59910072
apparently it can't even divide an integer by two.
>>
File: IT28-25.jpg (154KB, 800x540px) Image search: [Google]
IT28-25.jpg
154KB, 800x540px
I always code with my friends
>>
>>59906577
Nailed it
>>
>>59905628
>>59905888
How would u do it?
if (n%2 == 0) {
n = n/2;
return n; }
?
>>
>>59916792
nice little gang there pajeet
>>
>>59905628
Holy shit what a qt3.14
>>
File: 545602.1451268751.jpg (1MB, 1680x1671px) Image search: [Google]
545602.1451268751.jpg
1MB, 1680x1671px
>>
>>59907554
that's his house, don't be abusive
>>
>>59908293

me IRL
>>
File: 1481729910819.gif (433KB, 500x320px) Image search: [Google]
1481729910819.gif
433KB, 500x320px
>>59908209
>>
>>59905628
dat Bro-gram
>>
>>59916792
https://www.youtube.com/watch?v=u8qgehH3kEQ
>>
File: 29303_bearnaise_sauce.jpg (500KB, 3000x2000px) Image search: [Google]
29303_bearnaise_sauce.jpg
500KB, 3000x2000px
>>59908209
wtc shirt senpai?
>>
>>59908209
Very nice facial features, luscious hair, not fat or lanklet, overall nice/nice
>>
Gtfo normie
>>
>>59919960
kek
>>
>>59908510
in some of the most civilized states 40k is poverty level shit.
>>
>>59922804
It's all relative though. We don't know where he lives or what the cost of living is
>>
>>59905628
/g/had
>>
>>59908209
Loose fat and get /fit/.
Become /g/ chad.
>>
>>59922835
that's true but median income in U.S. is like 50k, and he's below. but I guess the cost of living does affect how comfy one lives. I live in MD, and you cant live comfy with 40k.
>>
>>59916792
You don't get to bring friends.
>>
File: file.png (1MB, 960x640px) Image search: [Google]
file.png
1MB, 960x640px
Guess which is me
>>
>>59923029
The cameraman
>>
>>59905645
>not using shopt -s autocd

plebs
>>
>>59923029
the one with the arch-linux blue fedora
>>
>>59923029
I really don't understand this. Do they think they look good? Literally the only part of their outfit they put any sort of effort into are the fedoras. None of these dudes match, have good pants or shirts, or anything else. Then there's the dad-tier shoes. I don't get it.
>>
>>59923328
welcome to the mind of socially inept people.
enjoy your stay
>>
>>59905659
>All those vape bottles
kek
>>
>>59905628
I literally did this in a C++ homework last week. I'm a newbie.

Could I do this instead?
If(n==1-6)
{
return n;
}
>>
>>59924242
/sqt/
>>
>>59924328
What?
>>
>>59908209
i feel really gay suddenly
>>
>>59908007
>pen spinning
>>
>>59924242
double divideBy2(int n) {
return n/2;
}
>>
>>59924730
I should have specified just the returning values part. I didn't do a divide by 2 assignment or anything like that. Just the returning values part I'm talking about.
>>
>>59916866
return n>>1
>>
>>59924242
int divideBy2(int n) {
return n>>1;
}
>>
>>59924825
>>59924857
just to clarify.
computers store values in binary.

Say you have the value 22.
0b10110
You want to divide that by 2, you can just shift the bits to the right, making all values half of what they were before.
0b01011 = 11

>> is an operator to right shift the bit range and >> 1 means you do it one time.
>>
>>59924857
See
>>59924777
>>
>>59924974
I'm not sure I follow
>>
>>59923328
*tips*
>>
File: IMG_20170410_235915.jpg (2KB, 149x61px) Image search: [Google]
IMG_20170410_235915.jpg
2KB, 149x61px
not posting face but here are eyebags
>>
>>59924938
>>59924857
Most compilers already do this when interpreting a number being divided by 2 to save cycles
>>
>>59905628
dont hack me bro
>>
File: FaceApp_1491947010130.jpg (240KB, 1280x1280px) Image search: [Google]
FaceApp_1491947010130.jpg
240KB, 1280x1280px
Your mum is a typical gentooman
>>
>>59908205
feetfags are the worst
>>
>>59924857
better hope the compiler optimizes away all the stupid you've done
>>
>>59924974
>>59924777
>>59924242
if(n>0 && n<7) return n;
>>
>>59924985
Asked sqt and got this.

if (n >= 1 && n <= 6) {
return n
}

I was strictly looking at returning values. Not dividing by 2 or anything.
>>
>>59925049
If OP wanted to divide by 2, he wouldn't make a function in the first place, I was assuming he wanted to make his own functions in order to learn programming.

Here is a better division function that can take any two ints;
int division(int a, int b){
int abs_a = a, abs_b = b;
bool negative = false;
if(a < 0){
abs_a = -a;
negative = !negative;
}
if(b < 0){
abs_b = -b;
negative = !negative;
}
int result = 0;
int tmp = abs_a;
int shifted_b = abs_b;
for(int i = 31; i >= 0; --i){
shifted_b = abs_b << i;
if(tmp >= shifted_b && shifted_b > 0){
tmp -= shifted_b;
result += 1 << i;
}
}
return (negative ? -result : result);
}


and yes. I am bored.
>>
>>59925142
Thanks
>>
>>59925143
Returning WHAT values
>>
>>59925177
the same as he writes in I guess
>>
>>59925177
n. Program took a user input would do some calculations and would return a value between 1 and 6 as a score. If the number was outside 1 and 6, nothing would be returned.
>>
>>59925142
return x in range(7)
>>
>>59925267
return n if n in range(7)
>>
>>59905628
Use a switch statement instead of a long if-chain.
>>
>>59925245
You made a dice?
>>
>>59925245
you can't do that.
You have to return a value (in C).
You need a better design than that.
In C++, you could throw an exception which crashes the entire application if not catched, but I don't think that is what you want either.
>>
>>59925336
It was 1 to 10 in my actual program but I just changed to it 1 to 6 because that was what's in the picture.

>>59925362
I didn't know that. Thanks. Guess I'm losing a point.
>>
>>59925362

Building on my previous response.
>>59925391
Could I have done like a return 0? Sorry, I'm a total noob and have no idea how to make it better.
>>
>>59905659
Post the one where it says it will never bring your family back to life
>>
>>59905628
Cringy as fuck, holy shit.
>>
>>59925391
Was it something you handed in?
Why didn't you compile it and read the warnings?
>>
>>59925440
he's being ironic
>>
>>59925501
do you think that makes it better?
>>
>>59925499
No, a program I submitted. Well, I didn't check for any values outside of 1-10. So everything ran fine. Guess I need to debug better too.
>>
>>59925501
>JOKE ON THEM, I WAS ONLY PRETENDING XDDDDD
>>
*shakes your hand* Hello my good sir! I must know, what desktop environment (or "DE" for advanced users) are you using? *shuffles away shyly*
>>
>>59925534
1. Why wouldn't you test how the application worked worked?
2. That is not really how you use debuggers.
Debuggers help you slow down an application and prod at it while it is running. It is very useful to use a debugger to find out where an application crashes, as you can backtrace.
3. Set on as much compiler warnings as possible. You will feel like you are being slapped in the face a lot, but if you do it from the beginning, you can learn to write good code from the beginning.
>>
>>59925698
>I was just pretending to be a nigger
>>
>>59925740
I'm quite bad at programming. Thanks for your tips, I will make a note of them.
>>
>>59905659

Just fuck my power bill
>>
>>59907966
Anyone know where I can get this tshirt?
>>
>>59927374
https://paom.com/products/0000000p-sicp-1
>>
https://www.youtube.com/channel/UCZrrEuHiQjN2CUo84g5tk7w

Your actual real /g/entleman.
>>
>>59905628
>I see you have a heat resistance penis.
>>
>>59927468
Thx
>>
File: 1422767156553.png (9KB, 401x367px) Image search: [Google]
1422767156553.png
9KB, 401x367px
>>59927496
>that how to install a cpu video
>>
File: 1365005786575 (2).jpg (604KB, 2000x672px) Image search: [Google]
1365005786575 (2).jpg
604KB, 2000x672px
>>59925439
>>
>>59907515
is that a threat or a promise?
>>
>>59908209
holy shit
>>
>>59922835

>We don't know where he lives

UK
>>
>>59928124
what's the full story on this?
>>
>>59923029
That's at the McDonalds near Time Square.
>>
>>59905628
This is shopped, he has the face of someone who goes outside.
>>
>>59930610
what do you mean by this
>>
>>59908209
baby chad kwk
>>
>>59928990
Literally just a lonely sysadmin
lurk more newfag
>>
>>59905659
Does /g/ have this kind of hair and facial hair?
>>
>>59923328
what infurates me is that you can spend even less money on better looking shoes, pants and shirt. But that doesn't last long when I see the weird fat guy, his weird ass body shape makes me laugh. Seriously how can a human be shaped like that shit? It's funny
>>
File: (You).jpg (10KB, 194x259px) Image search: [Google]
(You).jpg
10KB, 194x259px
>>59923328
>>
File: Screenshot_6.png (525KB, 712x794px) Image search: [Google]
Screenshot_6.png
525KB, 712x794px
>>59931112
Okay actually wait hold the fuck up this captcha needs to be answered
>>
>>59908209
Holy shit.....And here I thought I was the only good looking man on /g/. Keep up the good work anon, you're quite handsome
>>
>>59930967
I've seen him, just didn't know if there was a story of an actual family of his dying
>>
>>59925144
this is wrong
>>
Your sitting in a Toyota Celica, aren't you? I have the same car
>>
>>59908209
>>59905628

i never knew /g/ was /fit/
>>
>>59905659
holy shit i'm not an ecofag but that's some wasted energy right there
>>
>>59927348
>>59931839
>energy not included
fucking ripped of by your landlord
Thread posts: 177
Thread images: 22


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.