Profile

Cover photo
Alex Allain
Works at Dropbox
Attended Harvard
Lives in San Francisco
4,985 followers|1,509,857 views
AboutPostsPhotosYouTube

Stream

Alex Allain

Shared publicly  - 
 
Jumping into C++ is now out in hard copy on Amazon!
Jumping into C++ [Alex Allain] on Amazon.com. *FREE* super saver shipping on qualifying offers. Want to learn to code? Want to learn C++? Struggling to follow your lecturer or books and tutorials writ...
89
9
Bruno “dropped” Criado's profile photoMiniJesusPad x's profile photoGanesh Diwan's profile photoCons Bulaquena's profile photo
48 comments
 
This message has been resolved, check the original message on the lowest part. Below here you can read why.

EDIT: Never mind! The binary  tree search code proved how usefull the recursivion can be. Though it does take a lot of memory? But yea, it's a search so...
[code]
node *btree::search(int key, node *leaf)
{
  if(leaf!=NULL)
  {
    if(key==leaf->key_value)
      return leaf;
    if(key<leaf->key_value)
      return search(key, leaf->left);
    else
      return search(key, leaf->right);
  }
  else return NULL;
}
[/code]

I'm also wondering, recursion seems to me as a programming mistake, it calls the function within the own function, so stacking your memory all the way? Shouldn't you exit the function and start the other again? It seems 'stupid' to use this in embedded software. But I don't know that much yet though.
Add a comment...

Alex Allain

Shared publicly  - 
 
It's back to school season, and I'm sure lots of you are thinking about taking a C++ class this year. My ebook, Jumping into C++, should make a great companion book for any class you take--learn more about it at http://bit.ly/SYILeM

PS Even if you haven't started school yet, you can get a jump on it now :) 
35
Tahmid Sadik's profile photoAlex Allain's profile photoAhmed O F's profile photoZach Huggins's profile photo
78 comments
 
ECHGLE
Add a comment...

Alex Allain

Shared publicly  - 
 
Facebook open sources their C++ library, Folly. Some really good documentation explaining the advantages of some design decisions. Check out their fbvector doc: https://github.com/facebook/folly/blob/master/folly/docs/FBVector.md
35
10
Guillaume Chatelet's profile photoMaTT Hader's profile photoaubin thomas's profile photobhanu kumar's profile photo
14 comments
 
"The improvements are always non-negative, almost always measurable, frequently significant, sometimes dramatic, and occasionally spectacular"

#include  "facepalm.h"
Add a comment...

Alex Allain

Shared publicly  - 
 
My new ebook, Jumping into C++, is now available. Jumping into C++ is a step-by-step guide to C++, designed for beginners but going deep enough into C++ to really make sure you understand the language, with quizzes, practice problems, and lots of examples.

PS thanks to everyone who voted in the cover poll!

Learn more about Jumping into C++ (and find out which cover won the poll) here: http://bit.ly/yez3Ar
Jumping into C++ is a clear, comprehensive introduction to C++
42
9
Cameron J. Kenworthy (Daftatt)'s profile photoAbdElrahman Shabayek's profile photohossein maleki's profile photoPiyush Jaiswal's profile photo
73 comments
 
hy allen can i get tutorial c++ ineed learn for my study n my homework
i need to praktice c++
Add a comment...

Alex Allain

Shared publicly  - 
 
Old but good article by Eric Sink on tradeoffs of source control storage techniques: http://www.ericsink.com/entries/time_space_tradeoffs.html
2009-04-28 13:00:00. Time and Space Tradeoffs in Version Control Storage. Storage is one of the most difficult challenges for a version control system. For every file, we must store every version that...
6
1
Alex Allain's profile photoNooshin Khasian's profile photoShahid Nawaz's profile photoGreg Yang's profile photo
6 comments
 
Your C & C++ material was very helpful for me,If java material is available then kindly tell me that,s link,bundle of thanks Allex
Add a comment...

Alex Allain

Shared publicly  - 
 
Visual C++ team just put out a C++11 conformance survey asking what the community wants to see in C++11. Tell them what you'd like in MSVC11 - http://bit.ly/Annkuk
4
Surya Varma's profile photoAlex Allain's profile photoPetar Petrov's profile photo
3 comments
 
We told them over and over again. Still lagging behind gcc/clang and maybe others. only feature still lagging in gcc is regex, which surprisingly is well supported in VS12.
Add a comment...
Have him in circles
4,985 people
Yasir Iqbal's profile photo
Musah Yandar's profile photo
Krishna Murthy's profile photo
Joey Huang's profile photo
Arash Modir's profile photo
Jani Nieminen's profile photo
sandeep cool's profile photo
Amit Kumar Sahu's profile photo
MrDebz91's profile photo

Alex Allain

Shared publicly  - 
 
New article for Cprogramming.com on getting started with Android development! http://www.cprogramming.com/android/android_getting_started.html
36
5
Benjamin Tseng's profile photoVictor Christian Paredes Cauna's profile photokhadooj sh's profile photoArchana Nishitha's profile photo
22 comments
 
Se paso se paso , si no fuera por sus tutoriales hubiera reprobado el ramo
XXXOOOXOXOXOXOXO
 ·  Translate
Add a comment...

Alex Allain

Shared publicly  - 
 
Interested in creating cross-platform mobile apps? Check out this company's story: http://www.cprogramming.com/appup7.html
10
3
khadooj sh's profile photoLakhan Mandliya's profile photoAreej Abdulaziz's profile photoAkash Lakhera's profile photo
7 comments
 
hello i need some help in c++ this is my email plese send me an email to contact with you khadooj19@gmail.com
Add a comment...

Alex Allain

Shared publicly  - 
 
 
My new ebook, Jumping into C++, is now available. Jumping into C++ is a step-by-step guide to C++, designed for beginners but going deep enough into C++ to really make sure you understand the language, with quizzes, practice problems, and lots of examples.

PS thanks to everyone who voted in the cover poll!

Learn more about Jumping into C++ (and find out which cover won the poll) here: http://bit.ly/yez3Ar
Jumping into C++ is a clear, comprehensive introduction to C++
73 comments on original post
37
3
Renu Kumari Sharma's profile photoMichael Redford (Mic)'s profile photoCameron J. Kenworthy (Daftatt)'s profile photoPiyush Jaiswal's profile photo
46 comments
 
please help me with c programming
Add a comment...

Alex Allain

Shared publicly  - 
 
You might have noticed fewer posts on Cprogramming.com lately--that's because I've been working feverishly to finish my ebook, Jumping into C++. Now, the book is done, and I need your input! Vote in this poll to help me pick a winning design for the cover: http://bit.ly/zoRUVg
16
Plague Doctor's profile photoAlex Allain's profile photoAnirban Roy's profile photoShekhar Das's profile photo
9 comments
 
Hi Alex,

I am Anirban from India .I need understanding the concepts of threading ,mutex and Race condition .Can you please help /guide me for understanding those concepts ..
Add a comment...

Alex Allain

Shared publicly  - 
 
Just learned from C++ Concurrency in Action that C++11 finally fixes the static initializer race condition. Nice benefit of having a language define a multithreading aware memory model! (So far C++ Concurrency in Action is darn good, by the way: http://bit.ly/AhAISO)
13
1
Alex Allain's profile photoKhuong Tran's profile photoRahul Gupta's profile photoGreg Yang's profile photo
9 comments
 
I have written a tutorial at https://www.tutorialcup.com/cplusplus/multithreading.htm please have a look.
Add a comment...

Alex Allain

Shared publicly  - 
 
Benjamin Tseng originally shared:
 
Any one who's ever done any kind of coding can sympathize with this: http://abstrusegoose.com/432
melikes. Brown Sharpie, Cyanide and Happiness, EXTRA ORDINARY, the Perry Bible Fellowship, POPSTRIP, Spiked Math, WE THE ROBOTS, xkcd · Creative Commons License This work is licensed under a Creative ...
View original post
11
3
aditya menon's profile photoFilip Jareš's profile photoglenford williams's profile photoJean Zaragoza's profile photo
3 comments
 
An important detail here is: 6 months (or sometimes even 3 weeks) of absolute neglect later, the foreignness your code is no different than someone else's! Be kind to yourself and write code that documents itself (easier said than done) - because you will come back to your code and find the need to modify it.
Add a comment...
People
Have him in circles
4,985 people
Yasir Iqbal's profile photo
Musah Yandar's profile photo
Krishna Murthy's profile photo
Joey Huang's profile photo
Arash Modir's profile photo
Jani Nieminen's profile photo
sandeep cool's profile photo
Amit Kumar Sahu's profile photo
MrDebz91's profile photo
Work
Occupation
Software Engineer
Employment
  • Dropbox
    Software Engineer, 2012 - present
  • Cprogramming.com
    Founder, 1998 - present
  • Check Point
    Software Engineer, 2010 - 2012
  • Liquid Machines
    Software Engineer, 2006 - 2010
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
San Francisco
Previously
Boston - New Orleans
Story
Tagline
Collaborative Problem Solver
Introduction
I like problem solving.
Education
  • Harvard
    Computer Science, 2002 - 2006
  • Newman
    1989 - 2002
Basic Information
Gender
Male
Other names
Alexander