Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "tree"
-
Programming in a tree. I usually climb up here and read, but I decided to code, and I didn't drop my laptop :D
I covered the screen with my hand because my code's ugly, and I don't want anyone to see it lol.144 -
Wife: what are you thinking about?
Me: how to optimize key storage in a binary tree
Wife: forget that I asked5 -
Yo mama's so fat that if she sat on a binary tree she will convert it into a linked list in O(1) time5
-
Only in computer science you'll find that root is on the top of the tree and that parent may kill it's child after its function is no longer needed.4
-
Give me six hours to chop down a tree and I'll spend the first twelve sharpening the axe. —A programmer.6
-
I was in school and I got bored. I opened two command prompts and did what any scammer would do.
I went to the root of the drive and did a tree. The other window is pinging google infinitely.
After a few seconds, I hear a kid say "Are you hacking the pentagon?". That guy also asked me to hack the Google Play Store. He shall forever think I'm a hacker.35 -
I'm at Disney world and the Windows OS was exposed on one of the machines at a ride so pulled up CMD and ran "tree C:/" then played sample music on full blast. Get on my level hackers :^)10
-
Before you're hired:
1. A binary tree?
2. Currying?
3. Higher-order function?
4. How does event loop work?
5. What is prototype?
6. What is encapsulation?
7. Can you draw an algorithm?
After you're hired:
1. Hey, can you add auth token and login to our app?11 -
Researching to making a small 2D game using constructor classes and while building out classes, was working on my Tree method using fractal geometry and made a wallpaper out of the tree 🌳12
-
So I was with my friends on the subway and we were talking about an assigment we have due this week with trees in Java. I got to say, the face on the old ladie next to us when we said "we must kill all the children left in the tree" was just epic! She must thought we were talking about beating some little kids or something... 😅3
-
No one dare deploy anything the week before Christmas - no fucking way I'm writing a hotfix under the Christmas tree again this year
-
Update on this: https://devrant.com/rants/1641198/...
I was a little tired but made updated and currently getting a more natural looking tree.26 -
Light vs dark IDE themes
I personally prefer dark and all my coworkers use light. When they ask me to look at something, it hurts my eyes just scrolling for 5 minutes on their computer.19 -
My try at the fractal tree :) This sort of simple graphical code is very quickly satisfying, gonna try to add some wind next21
-
My roommate use torrent to download games,movies and series on an 8mb connection 24/7 even when he's sleeping. I a lot of times asked him nicely not to do that while I'm working or use speed limiter so it won't cause any problem for us, once in a while is okay but not every day. But people like him don't listen.
>Now i just disabled utorrent port associated with his IP every time he goes out or go to sleep. That what you get from being a self servings duche bag5 -
So I hear Christmas is coming, right? Here's a christmas tree for you!
P.S. this is the real thing. It's a Java project we have to work with... For Christ's sake! The guy who wrote this has recently left the company and handed this code to us as his legacy.
fuck.16 -
Seriously amazing how some people just contribute that much to open source:
https://www.npmjs.com/~sindresorhus
https://patreon.com/sindresorhus/
"I actively maintain 1100+ npm packages (1 billion downloads a month) and many popular projects. You're probably depending on some of my packages in your dependency tree. For example, Webpack relies on 77 of my packages."11 -
To all IT-guys out there, be it the desperate sysadmin or the kind lady of the support team, I whish all of you and your family/friends a merry christmas! 😃4
-
Wow, my girlfriend has been really efficient wrapping and organising the presents under the tree... You could say she’s a Swift Package Manager!!3
-
Open source block chain neural network binary tree growth hacker synergy vertically integrating cryptocurrency game changing GDPR compliant internet of things node.js quantum computing start up that'll disrupt and pivot the cloud based ecosystem11
-
At school in computer class,
Me: (to friend who gets excited from "hacking") Hey look im gonna hack!
Friend: *Turns to watch*
Me: *Does "color a" and "tree"*
Friend: Wow.
Me: *Writes a quick Matrix.bat and opens it*
Friend: Woah guys look he is hacking!!
Me: *Sits there awkwardly*5 -
Come to a festival they said.. .. It'll be fun they said.. Here I'm ranting and reading machine learning algorithms under a tree, while others party. Omg.7
-
*FAQ*
Q:why did you make such a great OS.
A:I thought what would attract young users to linux.
This distro even has a song.
link: hannahmontana.sf.net9 -
You know your codebase is large when you expand your project tree and it's larger than a literal tree.4
-
about one and a half years ago I wrote my first application ^-^
it generates a little christmas tree with lights on the CLI.
and I still feel the same joy as back then when something actually works out :)8 -
I think my kids would be bullied at school when they proudly say that roots of a tree are at the top.1
-
Because blockchain is a merkle tree-like data structure that isn’t synonymous with a cryptocoin. I feel like blockchain fell into that buzz word pit, with machine learning, that execs use to try sound innovative and smart in front of superiors.6
-
writing an assembler for my compiler, Manticore.
Currently working on writing a hand written parser and parse tree node system.7 -
That is peak security:
- Require timebased OTP for login
- Also require recaptcha for login
- Select the frickin bus, palm tree and cross walk 93 times
- Finally manage to please the algorithm
- The 30 second validity window of TOTP expired
*GAAH!*18 -
You are asked by airport security to balance this binary tree to prove you're a programmer. How fucked are you?12
-
*The interview wasn't off to a good start, as the recruiter forgot he invited me for an interview, so he just led me to some empty office after letting me wait for good 15 minutes. *
Them: Here, write some pseudocode to find a value in a tree.
Me (thinking): Interesting question; DFS / BFS would be really simple here, but nobody uses trees for that - perhaps I should ask about characteristics of the tree in question?
But before I realised, the interviewer already rushed out the office, so I just picked up my jacket and left... -
Now I get it, I did before, but this helps.
https://github.com/corkami/docs/...
I still don’t know how to go from my function to O however.4 -
When you chop down a tree it does not magically levitate because you misconfigured the chainsaw.
Lumberjack or carpenter would be a good life for me. Just being able to do something with physical consequences.5 -
In approximately 9 hours I'm probably going to humiliate myself in a meeting
I was given 5 days to write a sh script.
And guess what..
I still have not started
FML...🤦♂️7 -
This tree I saw when I jog around the neighborhood..... Feels like this tree is a portal to somewhere.5
-
Hmm our bundle js is already 1.35Mb maybe I should do something with that.
... Insert 2 hours of frantic webpack magic + babel-preset tweeking, tree-shake code optimization ...
- npm run build
- bundle.js => 1.37Mb
Great Success! I'm going to take a lunch...4 -
Today, implemented Binary Tree from scratch and then wrote a unit testing suite from scratch in my personal project.
Pretty neat.7 -
I today have seen lovers'name carved into a tree. I don't think it's cute. I just think it's strange how many people take knives on a date10
-
Every side of my window is filled with pine-tree and the beautiful vision of snow. But I have to struggle with Jax-RS in weblogic instead of snowball.9
-
Computer Scientists put the root at the top of their trees because they've never been outside to see what a real tree looks like3
-
This is my brother asking me if I'm there yet...
P.s. i have used Ubuntu in the past as my primary OS for a project.1 -
While working on my one of the first project in java i ended up using deprecated Calendar API for the date. Since deadline was near i thought it would be a good idea to use the JCalendar API for as date picker (which is a third party API).BAD IDEA. It was the night before the submission round about 11pm when i realized that there is no way to convert JCal object into Calendar and it turned out it is not working as expected you have to subtract a particular number from the year to get date right.
To convert JCal into Calendar i used the toString function to get the date in string sliced it using substring into year,month,day then had to assign date to Calendar object via constructor.
Had to write 70 lines of code just to convert JCal into Calendar...
And then there were other complications related to this problem. Had tu pull an all nighter just to solve date related problems
LESSONS LEARNED :
NEVER USE A DEPRECATED API
NEVER USE THIRD PARTY APIs WITHOUT RESEARCH7 -
Tells my non-programming friend that it's way more complex to program an A.I. that simply distinguishes a tree, than to make a program that adds up for like, a billion numbers...
SHE DOESN'T BELIEVE ME.2 -
Me(To a tree): Hey tree, You have leaves but you can't go anywhere. I can go anywhere but I don't have any leaves.4
-
!rant
Snow may be around
There may be no sound
Except for the quiet hum
Of a devs system
While you want to stay up and code
Don't forget to decorate your abode
For it's that time of year to put up the tree
And surround yourself with family4 -
I'm studying Software Engineering. Fuck me, right?
Next week I have 3 exams, and I have to deliver the implementation of a Red&Black Tree and a AVL Tree (+ GUI in Swing) by Wednesday. Oh, and also, 5 small systems in C.
I don't know how the FUCK will I survive, but I will.21 -
Pulled an all-nighter
Was too busy ans haven't had any time to eat anything next whole day.
35.5 hour sleep deprived, cameback home with takeouts
Let's pull the repo before i start eating.
Open the laptop and connect the charger while laying on bed.
*fell asleep and woke up 9 hours with laptop still running*
The worst part is that the problem i was trying to solve is still there.9 -
In PHP (yes, it's a language I... don't hate) I've always hated exceptions. They're like GOTO, in an OOP world with interfaces and contracts, try/catch is really odd as it breaks a promise about returning with a typed value.
But you can now do this in PHP8, which comes pretty close to Maybe/Either monads (Option, Result whatever it's called in other languages):
function getUser(): User | UserNotFound
PHP8 unions don't come with the same strong guarantees as in other languages but *pets PHP gently on the head* you did well, my boy.
Now I would really love it if PHP9 could do:
function getUsers(): Collection<User>
Type Tree<T> = Null | Node<T>;
function 🎄(): Tree<Branch<Ornament|Light|null>>15 -
Finished our Christmas tree at work today. Featuring Zip ties, faulty burned blu rays, an old keyboard, a led stripe, cut IDE Cables and a 10m cat 5e cable and the holy Debian as topping
Sadly I cant capture all of its beauty in a single picture
I call him the GeekTree5 -
has anyone seen Google's AI face-tree nightmare generator? (a joke from another thread)
They need to be stopped!12 -
Tired after a long day at work. Let me shuffle some music in spotify:
"I don't want a lot for Christmas..."
Next
"Underneath the Christmas tree..."
Next
"All I want for Christmas is you..."
Next
"Love and understanding,
Merry Christmas everyone..."
*sigh*2 -
This tree was the loneliest tree on Earth. The next tree was 400 kilometres away.
In 1973, it was knocked down by a truck driver.4 -
on the first day of christmas my PM send to me
There's a bug in your B-tree
on the second day of christmas my PM send to me
two threads deadlocked
and a bug in your B-tree
On the third day of christmas my PM send to me
Three servers crashing
two threads deadlockd
and a bug in my B-Tree
on the Fourth day of Christmas my PM send to me
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Fith day of Christmas my PM send to me
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
On the sixth day of Christmas my PM send to me
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Seventh day of Christmas my PM send to me
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Eighth day of Christmas my PM send to me
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Ninth day of Christmas my PM send to me
Nine interns asking
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Tenth day of Christmas my PM send to me
Ten Features requested
Nine interns asking
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Eleventh day of Christmas my PM send to me
Eleven products deploying
Ten Features requested
Nine interns asking
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Twelve day of Christmas my PM send to me
Twelve DBs updating
Eleven products deploying
Ten Features requested
Nine interns asking
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree3 -
Brilliant idea time:
Inspired by @TrojanMorse and his fractal trees
A fractal tree wallpaper that grows throughout the day.
So at 12 a script starts a new fractal and only uses depth 1 (a twig). Then every other hour it branches once more so at 2 am the fractal would have depth 2 and at noon it would have depth 7. That way you get a tree growing throughout the day for your screensaver. Now to make this a thing13 -
Buckle up, it's a long one.
Let me tell you why "Tree Shaking" is stupidity incarnate and why Rich Harris needs to stop talking about things he doesn't understand.
For reference, this is a direct response to the 2015 article here: https://medium.com/@Rich_Harris/...
"Tree shaking", as Rich puts it, is NOT dead code removal apparently, but instead only picking the parts that are actually used.
However, Rich has never heard of a C compiler, apparently. In C (or any systems language with basic optimizations), public (visible) members exposed to library consumers must have that code available to them, obviously. However, all of the other cruft that you don't actually use is removed - hence, dead code removal.
How does the compiler do that? Well, it does what Rich calls "tree shaking" by evaluating all of the pieces of code that are used by any codepaths used by any of the exported symbols, not just the "main module" (which doesn't exist in systems libraries).
It's the SAME FUCKING THING, he's just not researched enough to fully fucking understand that. But sure, tell me how the javascript community apparently invented something ELSE that you REALLY just repackaged and made more bloated/downright wrong (React Hooks, webpack, WebAssembly, etc.)
Speaking of Javascript, "tree shaking" is impossible to do with any degree of confidence, unlike statically typed/well defined languages. This is because you can create artificial references to values at runtime using string functions - which means, with the right input, almost anything can be run depending on the input.
How do you figure out what can and can't be? You can't! Since there is a runtime-based codepath and decision tree, you run into properties of Turing's halting problem, which cannot be solved completely.
With stricter languages such as C (which is where "dead code removal" is used quite aggressively), you can make very strong assertions at compile time about the usage of code. This is simply how C is still thousands of times faster than Javascript.
So no, Rich Harris, dead code removal is not "silly". Your entire premise about "live code inclusion" is technical jargon and buzzwordy drivel. Empty words at best.
This sort of shit is annoying and only feeds into this cycle of the web community not being Special enough and having to reinvent every single fucking facet of operating systems in your shitty bloated spyware-like browser and brand it with flashy Matrix-esque imagery and prose.
Fuck all of it.20 -
*During meeting*
C:*smiling while looking at massex.py* 'MasSex' uh! You'd change it before pushing
In my defense it's short for Mass Execution not MasSex
FML5 -
Could do with some dev input here.
Going to rename most of my projects before I start them up again just for some consistency amongst everything so...
Because I name my projects internally as a different tree for each milestone (1.0 is maple, 2.,0 is pine etc) I'm going to have my other stuff follow a tree related naming scheme, first up is my game engine/framework...
It's currently called the 'Mod Engine' but I have 3 idea's and want to know people opinions
- Woodsman Engine
- Lumberjack Engine
- Lumber Engine
Which is best do you think or can anyone think of any better ideas? :-320 -
How Bad I'm at frontend Development: about 3 year ago i accidentally wrote </from> instead of </form> while working on the frontend of a website, everything just went bonkers. Took me 10+ hours to realize my mistake.
In my opinion frontend devs are real hero they have to learn multiple frameworks, and make website respinsive and work on IE at the same time. Idk Why the fuck clients still want their website to work on IE (fuck you Carl, your users are of age group 15-22 they don't even know wtf IE is)
P. S. At that time i didn't knew HTML validators are a thing.6 -
Source tree opened
Finds new option 'cherry pick'
Wtf is this
Clicks on it
Wooow, there goes my master branch again4 -
The hammer dev. See a problem, they grab a hammer. See a screw? Hammer. Complex social issue? You bet your binary tree it's getting hammered.2
-
If a tree falls over in the woods..
And important dev work gets done and shipped,
And it's not in JIRA.. did it even really happen..5 -
Hey! First post on rant by saying merry Xmass!
This is my Christmas tree made from JavaScript ! I can change the height of the foliage and the wood part follow !
For those like me who live in a country where you only have the cold but not the snow 😅❄️11 -
so today we used putty and coded the exercise within the university's server. i wanted to use "tree" to see all the files better cause thats what i normally use. turns out i had to install it.
i type in "sudo apt-install tree"
screen: no root priviledges. <university_login> is not included in root.txt. this will be reported immediately.
i forgot i needed root priviledges smh i just wanted to see my files better XD7 -
Software engineers: "Maths is hard and scary!"
Also software engineers: "I've learnt to write a balanced binary search tree in c++ as interview prep!"
Mathematicians: "Have you guys heard of an AVL tree?"20 -
The moment you go to a random Windows computer and type:
color 0a
tree /
in cmd and say:
„I‘m hacking into the Matrix“
and everyone around you is just like
„ooooooooooooouuuuh“ -
Anyone else prefer working with git visually (i.e. Source Tree) rather than on CLI? I like seeing what's going on easily26
-
Why name Tree a Tree when it's really Root if you look at it with head up ?
(Tree Data Structure)
We're really taught to look at the world upside down1 -
Want to bundle your files: Node.
Want to minify your scripts: Node.
Want to tree shake your code: Node.
FUUUUUCK OOOOOOOOOOOOOFF I DON'T WANT NODE14 -
To paraphrase Paul Graham:
Arguing that Vue is better than React is like arguing that grasshoppers taste better than tree bark.11 -
Freelancer/coworker: "Why don't you just use source tree instead of git in the command line?"... me: *face palm*3
-
! Rant
To any games programmers here (I feel so lonely surrounded by these Web devs)
If I tree falls in a scene with no audio listeners does it still make a sound...4 -
🎶Lemon Tree🎶
I wonder why,
I wonder how,
This stupid piece of code actually works right now.
And all that I could see, it's actually compiling...
(Happens all the time)1 -
On the -2nd day of Christmas, my true love gave to me
offfffline servers,
NO notifications,
one, lousy fucking dayyyyyy
(... on the first day back to workkkkkkk..innnggg...)
Database corrup-ted,
users' fucking pissed....
and a partridge in a pear tree!
$merryXmas[-1]2 -
Just thought I'd share what I've been working on lately.
Heap: https://repl.it/@AmyShackles/Heap/...
Array: https://repl.it/@AmyShackles/...
Binary Tree: https://repl.it/@AmyShackles/...
(I'm so freaking tired.)6 -
When your boss is too cheap to upgrade the server your data warehouse is on. 8GB of RAM is not enough when you're regularly querying for 1m+ rows.1
-
Random citation by p100sch (https://devrant.com/users/p100sch)
today while playing Minecraft:
"That moment when your family tree software throws recursion errors..."3 -
Interviewer: so why should we hirer you?
Me: I think the real question is: how much will you pay me if I can make "Hello World!" pop up on the console?4 -
"Give me six hours to chop down a tree and I will spend the first four sharpening the axe." - Abraham Lincoln
-
Fun Story: My first official project was related to system files security. In first meeting project manager was talking about Macros and OLE i had no idea what the heck he was saying.just kept noding
Took us 2 months to complete the project now it has been deployed and working perfectly
Told my manager about this during final one on one meeting and he couldnt believe me,he still laughs about it everytime we meet -
The park, under a tree. Preferably beside a lake or stream.
There can be people present, so long as they’re not too loud and don’t ask what I’m doing, hit on me, or try to chitchat.6 -
"Great ideas can be found in every leaf, in every tree, in every blade of grass. Oh, no, wait… I was thinking of chlorophyll." - Jim Olen1
-
Playing with tree like structures today. Had to write a function where a node produces a new node containing data from both self and parent.
The moment when you realise you've just coded incest...1 -
Written coding test, first question :
Form the minimum spanning tree of the given graph using Kruskals algorithm.
Plot twist : No weights given. Assume unweighted graph4 -
On the first day of Christmas
My true love gave to me
A drunk who drove into a tree
On the second day of Christmas
My true love gave to me
Two shattered skulls
And a drunk who drove into a tree....
Twelve beaten children
Eleven drive-by shootings
Ten frozen homeless
Nine amputations
Eight burn victims
Seven strangled shoppers
Six random knifings
Five suicides
Four beaten wives
Three O.D.'s
Two shattered skulls
And a drunk who drove into a tree6 -
Code monkey see bad code.
Code monkey don’t say anything.
Nobody ask code monkey.
Linter see bad code too.
Nobody pay attention to linter.
Code monkey get more bananas on Thursday.
Code monkey grateful for bananas.
Maybe one day, code monkey make banana tree.1 -
Unifi switches are so fucking bad.
For the third of fifth time it activated spanning tree by itself, causing alot of shit to go down.
It is only a expensive shelf from now on, fucking crap11 -
It's nearly May. I am therefore going to start referring to apples as "tree potatoes" whenever possible.6
-
React devtools in Firefox is such a pile of shit! It's slow, it hangs when selecting and it doesn't fucking show the whole component tree when it's too deep. I'm forced to switch to Chrome when I need to debug.
Anyone here has problems with it too?4 -
Fucking shitstorm wave 2 came along and fucked my backyard of the house the whole fucking tree collapsed inches away from my fucking house i almost lost my fucking home WHY IS LIFE THIS MUCH TRASHH7
-
Let it snow! let it snow! Let it snow! A christmas tree made only with css. Codepen: https://codepen.io/flavio_amaral/...5
-
Christmas Day and the Nintendo server is slow .... hmmm , I wonder what everybody unwrapped under the tree!
-
!rant
In relation to https://devrant.com/rants/1643249/...
The tree has started!
The lovely pycairo package was super easy to pick up, and I made a rather shitty looking fractal tree with it!
Next step is to figure out a color scheme I like, and to make the tree look more natural/better.
It's happening guys3 -
@wowotek : "I am not person who like to mumble"
--3 Hours Later found an Unhandled Exception in 17th layer of his decision tree--
Also @wowotek : "^[a-zA-Z]*!!!!!!!$"
He work beside me, never tired of this, but a bit annoying sometimes2 -
"Everyone is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid."
This is good to remember this one once in a while...3 -
I don't think "main" is the best replacement for "master" on GitHub, I mean Git already uses branches so why not continue with the whole tree analogy and call it the "root" branch?15
-
Found in kernel/sched.c in Linux 1.2:
The "confuse_gcc" goto is used only to get better assembly code..
Dijkstra probably hates me.
https://git.kernel.org/pub/scm/...3 -
!dev
Man, fuck pollen
Tree pollen just exploded where I live. That means I'm gonna be miserable for the next few weeks. I'm talking runny nose, itchy eyes, head fog, the whole 9 yards.
Wish me luck and bring me antihistamines4 -
If you asked me two months ago I'd have said building and using a Barnes Hut tree with CUDA.
Today my answer is working on a fuzzer with LLVM without knowing shit about either C++ and compilers. -
One hour before demo.
clone,compile and run.
Guess what..?
Most of the key module aren't working
Guess why..?
I forgot to push final changes to git (after pulling an all nighter) -
I hate it that I'm still forced to use Ubuntu 16.04 and can't upgrade to bionic beaver.tried it on vm (for testing)loved new features and default gnome interface but even after switching to xorg most of my tool were still not running properly or crashing, most important factor is that there is still no official cuda support and installing gcc g++ 6 and symlinks are nerve racking. On top of that upgrading to 18.04 LTS on my main machine will leave me with broken packages and dependencies.
p.s. for people who are going to reply saying that these issue can be solved. Please try updating your work machine and spend hours fix these issues1 -
worked for two month on a automatic sms system.
today boss says: ''yeah we dont need that''
... im just gonna find the nearest tree and hang my self.9 -
I am wondering how a #FunctionalProgramming based implementation of a Binary Search Tree would look like?
Has anyone tried it?11 -
This is the kind of shit that I don't want to write.
The kind of shit that should be in an STL so I never have to include it in a project.
Because it doesn't belong in a project.
And it doesn't belong in a dependency tree either.
It belongs in a language. -
I'm writing a ML course that explains concepts by going through/getting the reader to write simple implementations of concepts. I've written a decision tree in 250 lines of code (including plotting it), that is 100 times faster than another (hilariously bad) attempt at a simple decision tree, and it's far more readable than anything else I've seen.
I'm having a good day.6 -
Confession: Sometimes when I need a minute break and someone is looking at my screen I run 'tree /'1
-
postman is the biggest dogshit ive ever seen. FUCKING DO SOMETHING.
how do people wait FOR MINUTES until a piece of the file tree unfolds?!?!
the ui is so fucking irresponsive and slow. it is such a painfull experience8 -
Redux is weird, and I don't like it because it violates the most basic principles of responsibility. The concept of expressing state changes as reducers is nice because it can be duplicated, saved and restored and compared for equality. So is creating isolated accessors and selectors. However, I really don't think a reducer should be aware of its own position in the hierarchy. When specifying an action you aren't addressing a reducer, you're addressing the tree. That the tree doesn't manage this addressing and expects reducers to identify themselves is a bit strange, especially considering that the whole point of having a tree is that reducers shouldn't be affected by their position in that tree because they're pure. Same goes for selectors, they should belong to the tree, not to any particular sub-reducer. Separating the slices is reasonable structure, but if you specify parts of the addressing in the slice and parts of it in the root you might as well just use separate reducers for each of your slices. It's functionally equivalent.12
-
Spent like 5 hours today installing, configuring, and playing with phpstorm. first time I've used a real ide type program and wow, I replaced 5 programs with this I would use at the same time.
filezilla (ftp), rapidphp (code), mysql workbench, cmd prompt (node, gulp, sass), and source tree (git)6 -
So my data structure's exam's result came and i got scored 57.5 out of 80. My classmates who barely know anything about C scored way more than me. I am so embarrassed at myself but i gave the right answers in exam. My score in the exams before was 39/40 and 38.5/40. All my hardwork failed because it was a so called THEORY exam where there was only 2 small questions of writing algos but all others were just like "describe pre-order traversal of a binary tree" or "write the difference between a tree and a graph?define adjacent node, path and complete graph"...
When will this fuckery end?2 -
For those of you who can't wait for the next book of GoT to come out, I suggest you read the first few chapters that were generated by a neural network.
https://github.com/zackthoutt/...1 -
Me: there are a lot of memory leaks in my application i should do something
Inner me : teacher does know that, submit the project1 -
Anyone else here love staring at the commit train railways? It's pretty 😍
pic related: not so complicated as we are a team of two working on different branches.3 -
Was feeling low started sifting through gallery and found this picture i snapped a year ago.. now i can't smiling. The algorithm i wrote was so shitty that it was using 4gb of RAM.
Never thought an error can make me happy -
Googling how to electromagnetically shield a espruino project from neodymium magnets over lunch, and that leads on a trail of manipulating and directing em fields...
"What are you doing? That doesn't look anything like a binary tree structure in Java... What the hell is all that?"
"Uhm... Personal research?" -
What would happen if a programmer and a PM had to cut down a tree...
https://twitter.com/i/moments/...
Wouldn't be so funny if it weren't so true... -
Trust me this is not a coincident.... And only two people in the whole department know what this monster really did. Thank god i never had a professor like him.12
-
Decent family tree software that's capable of sanely organising photos, letters etc.
I'm sure none actually exists, web based or otherwise.2 -
NPM and the whole dependency tree for JS packages should burn in the pits of hell.
Let's pretend that uninstalling a single (albeit larger) module didn't take 8 minutes and that it didn't spit out 20 warnings from a total of 277 (HOLY FUCK) related packages.
How can you guys (JS-only devs) handle this ?!15 -
I just got mindustry (which is currently on sale for $3) and it's a great tower defence, resource production, machine builder, tech tree researcher, sort of game! Really really worth the $3 and will probably appeal to a lot of people here.7
-
*One Month Ago*
Project Manager: we have allocated these two workstations for you to extract data (set) from malicious files, they are off the network. I though would also prefer a seperate laptop for this project you can take this one (pointing towards the newish laptop on the table)
Me: (i declined his offer because i didn't wanted to carry two laptops everywhere) I'm going to use my own laptop, but I'll be using a sand box or virtual machine.
*Fast Forward to Today*
Accidentally ran a script outside the sandbox, which due to some unknown reasons ended up executing a bunch of malicious files I only realised my mistake when my antivirus started to go bonkers FML.
P.S. both of those PCs are now connected network because of me.
Fingers crossed2 -
Girl: "Professor I don't really understand the algorithm. Can you please write it on the board again?"
Professor writes down the alphabet.
Girl: "I don't get it."
We were talking about traversing a Binary search tree in Inorder traversal.2 -
Google and TikTok sitting is a tree, K-I-S-S-I-N-G
First comes love, then comes marriage
Then comes a baby in a baby carriage
---
I see this every time I need to manually update some apps...19 -
There are two kinds of people:
-Who thinks that to make a tree you need the seed
-Who thinks that to make a tree you need Huffman1 -
Have you ever seen a tree data structure implementation in any code base?
I wonder why recruiters are so desperately asking how to invert binary trees in my coding interviews🥴4 -
Removing a kiwi tree is like unsubscribing every single spam you receive and hoping they don't ever come back.
-
In other to sharpen my algorithm and data structure skill.
I implemented the complete *eval()* function for arithmetic Expression in java
It can compute any kind of arithmetic Expression even with parenthesis grouping
Here is the github repo
https://github.com/Afrographic/...1 -
Oh look I'm posting the same thing again because all logical patheways lead to the same fucking place.
Sort of binary tree with a few keys added visualized.7 -
So I thought I knew source tree, apparently I do not... Lost a week's worth of work, went to history, saw someone removed it with a commit, and now I'm getting blamed for my own work 'disappearing'. The reason I am being told I am to blame is how I control my branches... So how I do it is that I keep a local copy of the master branch, I keep it updated and monitor it for changes regularly (meaning fetch and pull cause double tap..) before I do a merge, I check for any new code on master again, then using the local copy of master, which I just updated, I pull the master changes into my branch, deal with any conflicts, build and done. Then I request my changes into master once I am happy everything is good.
My question is, clearly there is something wrong with the way I do things, so please source tree users, what is the most fool proof way to pull latest from master so that I don't loose code? 😔11 -
Today i received a hard drive contraining one million malicious non-PE files for a ML baed project.
It's going to be a fun week.14 -
I bought a MacBook Pro Retina wanting to upgrade the memory, then realized the Retina models have it soldered onto the motherboard.
I need to run Visual Studio for ASP.NET development but can't fathom paying $80 for a Parallels license at the moment. I've tried VirtualBox, but the RAM usage is really high for the 4GB I'm limited to.
FML.7 -
This moment when your PFSense routers IDS lights up like a christmas tree when you try to play a game. Also this moment when you are a programmer and only rant about sysadmin stuff because your programming almost never is a problem.
-
Yeah today i'm sharing a little java program who can scan any editable file in your system and count all the alphabet character from it and show the result in a chart renderer in an html document
Code
https://github.com/Afrographic/...11 -
Ever forgot the root password of your remote server, my manager did. Now we can't run our applications because they need root/administrative privilege. 😂6
-
So I see posts about an interview question/challenge of inverting a binary tree. I don't use trees very often (mainly file related or parsing server nodes), but I thought I would learn how to do this.
I saw a page that started talking about different ways to invert enough to understand that one type of inversion is swapping left and right nodes. So I stopped before they showed how.
Then I created a test program that has a tree structure and also can display a tree before and after modification. This was kind of fun.
So then I wrote the inversion function. It was less than 10 lines of code. Wtf? I thought it would be harder than this.
Then I started wondering where trees were used. So today I have been learning how they are used and why I might need one to solve a problem. One use I intuited was parsing regex or a language. Apparently it is useful there.
What I am learning is that a lot of these interview questions are really test to see if you can comprehend instructions when stressed. Or you will ask questions to clarify the task. It doesn't necessarily test your ability to solve hard problems.
One thing that perplexes me. If inverting a tree is swapping nodes left<->right, then why not leave data in place and just swap roles in the functions. Maybe I completely misunderstood what inversion means or why it would be done. I guess if this is not inverting I have the structure to try other methods now.2 -
I recently went through a very detailed and well-explained Python-based project/lesson by Karpathy which is called micrograd. This is a tiny scalar-valued autograd engine and a neural net on top of it.
The project above is, as expected, built on Python. For learning purposes, I wanted to see how such a network may be implemented in TypeScript and came up with a 🤖 micrograd-ts - https://github.com/trekhleb/... repository (and also with a demo - https://trekhleb.dev/micrograd-ts/ of how the network may be trained).
Trying to build anything on your own very often gives you a much better understanding of a topic. So, this was a good exercise, especially taking into account that the whole code is just ~200 lines of TS code with no external dependencies.
The micrograd-ts repository might be useful for those who want to get a basic understanding of how neural networks work, using a TypeScript environment for experimentation.
With that being said, let me give you some more information about the project.
## Project structure
- [micrograd/](https://github.com/trekhleb/...) — this folder is the core/purpose of the repo
- [engine.ts](https://github.com/trekhleb/...) — the scalar `Value` class that supports basic math operations like `add`, `sub`, `div`, `mul`, `pow`, `exp`, `tanh` and has a `backward()` method that calculates a derivative of the expression, which is required for back-propagation flow.
- [nn.ts](https://github.com/trekhleb/...) — the `Neuron`, `Layer`, and `MLP` (multi-layer perceptron) classes that implement a neural network on top of the differentiable scalar `Values`.
- [demo/](https://github.com/trekhleb/...) - demo React application to experiment with the micrograd code
- [src/demos/](https://github.com/trekhleb/...) - several playgrounds where you can experiment with the `Neuron`, `Layer`, and `MLP` classes.
Demo (online)
---------------------
To see the online demo/playground, check the following link:
🔗 https://trekhleb.dev/micrograd-ts3 -
Best shell (bash) utilities to install? Looking to pimp up my headless server. So far I have tree (path visualizer), tmux, and nnn (disk space tool)8
-
The cost cutting at my previous company continues....my ex-colleague said the company has no budget for a Christmas tree this year so:2
-
Algo question: Tree data structures while drawn as Nodes with children, are usually better implemented with (resizable) arrays?30
-
Goodjob Self, you fucked up your Git local repo.
```
[ git checkout master || git stash ]
fatal: git-write-tree: error building trees
Cannot save the current index state
```2 -
Does vim have a tree view and multiple tabs? Maybe some sort of plugin? How bout Neovim? If there is anyway to get that on vim I am sold, but until then I’m sticking with my text editor.7
-
Just had an interview on a CS graduate from a top university with several years industrial experience who cannot even write pseudocode to rotate a binary tree. What is wrong with this world?4
-
I thought this was good.
http://raganwald.com/2019/02/...
It’s also strange that by opening up Chrome’s Dev Tool’s Console you can pretty much write old school C/Basic like code from when programs were transferred via a bound dead tree medium. -
Thanks to one of my colleagues, I have learned that there is a git command that convert HEADless piece of tree into a branch. Thank you git switch. Also, thank you colleague.1
-
React: I'm the best! From FaceBook
Vue: I'm simpler and better! From Community
Angular: I'm the best! From Google
jQuery: LOL kids! I simplify HTML DOM tree traversal and manipulation... I'm immortal.
React, Angular and Vue: You are right jQuery! But the trash can is across the door. Ciao!1 -
It is Saturday 19:30 and I am spending my time writing functions for save/load data in a binary tree. Recursion and fscanf are not a good combo so far, but that is the task. When the code is done I have to get some math done.
-
Have you ever rejected a job offer just because said company uses php. I did 3 in last two weeks.
p. s. I already have job, may that's why3 -
Spent countless hours on internet reading WMI documentation to write a RAT agnent for our server side application only to find out there is a WMI Creator Tool which literally generates code for such purposes. FML1
-
My First ever VSCode extension is live.
https://marketplace.visualstudio.com/...
A symbols tree view provider that supports PHP/TS/JS only (for now). Any suggestions/recommendations are welcomed !!!
Boy, does it feel good to feel like a real developer again 😎8 -
TSA questions for screening software engineers: Sunday an engineer from Nigeria got screened on if they were really a coder with googled questions like "write a function to check if a Binary Search Tree is balanced." What questions should they really be asking?7
-
My favorite tools include:
Source tree(git life saver)
Stickies on my dock(I can randomly put any shit on it and keep it for months)
Android studio(love shorcuts except gradle)
My moto x smartphone (helps me in debugging) -
self refrencing tables awesome concept but it pisses me off that mysql doesnt support "select with" query i had to think about writing recusive functions that builds a tree of n level i must say im kinda proud :p2
-
If you think root is at the top of the tree not at the bottom then you're already my close friend.
#CodingForLife -
the most interesting question tech interveiwers should ask a job applicant should be "we want you to balance a red and black tree using bash"2
-
Tried to change a overriding method in my C++ class to override another method using "refactor - rename" from my IDE, ended up changing the header of the parent class which is not even in my source tree.
-
https://i.postimg.cc/4ycRFNZf/...
The factorization shit I'm always ranting about? I decided for once to explain it visually in this handy dandy little infographic.
We're essentially transforming the product from an unsmooth set of potential factors in its factor tree, to a factorization tree that guarantees first that the set of potential factors are all 2, 3, 5, and a or b of p, and second, that all the factors are *smooth integers* of a or b.
This is basically what Adi Shamir was trying to do with TWINKLE and TWIRL, despite checking a hundred thousand+ potential primes.
I did it in four.7 -
Critical bug in production? Sorry, can't fix it right now: We've got a build running with 1 hour of build time left, 8 hours of automatic tests, 3 days of manual testing, and a partridge in a pear tree. Your fix can be in the next release.
-
Data scientist life begins when for him:
Forest becomes Random Forest and Tree becomes a Decision tree.1 -
I can invert Arne Andersson tree in 5 minutes.
Do you think you can beat me in a battle?
Okay, this is AA tree: https://iq.opengenus.org/aa-trees/2 -
This is kind of an issue for my family tree website. I'll have to ban you, Tylerjoke/meme racist black humor javascript null just kidding ok calm down meme undefined tyler error black
-
Create an animation of tree traversals.
I could use any framework or library, but I just used plain html/css/js.
It was fun.2 -
So today I learned how tree shaking works and I was just about to publish patches to my NPM modules when the registry gave up.10
-
I guess I'll just trouble shoot this controller for an hour or so before I check the file-tree and find out that I'm editing a stale file of the same name in the root instead of the nested file...
-
Can JS events bubble in trees of objects other than DOM nodes? If so, what properties do I need?
I tried to read this: https://dom.spec.whatwg.org//... but it's stupid long, references a bunch of other functions and I got lost in between the variables.
I'm kinda confused because it often uses type checks (i.e. if target is a Node or a Window object), which goes against the very point of duck typing.
I could technically make my nodes into DOM nodes, but I'd rather have them inherit from Worker.1 -
Is there a simple CPP equivalent to a tree node in Java that has a parent and a arraylist of children? Or will I have to write out a 500+ line class to get the same functionality? 🤔12
-
Can you take this JavaScript file and make it TypeScript with tree shaking. Step one pass week to understand TypeScript and webpackShit compilers and try to importe it in a basic chrome windows ... What a mess10
-
Adding opportunistic move to a large recursive tree processor is not a fun exercise, I would advise anyone who intends to dabble in interpreters to design with opportunistic move from the get go.2
-
....that moment, late at night, when you've just closed that remote terminal to your network media server, tweaking that custom tree listing script, and then you put your phone down and roll over.
:|2 -
I was filling a questionnaire through SAP Ariba ..
The loading time, the way you can upload files. The tree structure of the questionnaire, and their date picker. Everything is perfect no struggle with it at all.
PS: I spent about 2 hours filling it and I am not done yet! -
Hi everyone! I'm in need of some help regarding the approach to my bachelor thesis.
The practical stuff is basically clickstream/task and usability analysis on an existing platform and creating mockup improvements for some processes. I was thinking about using a spider to generate a tree (or another datastructure) regarding all the different tasks available and then trying to optimise said tree, thus automatically optimising the processes within. I'm having however issues imagining how this optimisation might be generalised for more than this one platform.
Basically, I'm a bit lost and grasping for any pointers in any direction regarding these ideas.3 -
I've done tons of tree and graph interviews lately. Then in the final stage with a Big N company I'm asked something I was totally not in the right head space to answer. Darn.
-
Is there a good tree view js plugin similar to jQuery.fancytree ?
I found alternatives that would work with react, Vue, etc but I'm looking for a framework free plugin. -
Why in gods name is vscode if installed over APT, pull in perl modules?
I checked the dependency tree of it, and saw a lot of perl as a deep dependency.
Perl is one of the least efficient language, similiar to PHP.7 -
I've spent a whole day writing date helpers that already exist in moment.js and cover many more cases than mine.
Webpack tree shaking is a thing, you know? Library size doesn't matter anymore <__< -
I have this love-hate relationship with strong typing.
Right now, the types are shared between:
Postgres <-> DB Data Models <-> GraphQL <-> TypeScript <-> MobX-State-Tree2 -
holy crap patch-package is such an amazing tool
i forget about it all the time
lovely when there is a dependency tree and one of the dependencies was last updated 7 years ago
🤡1 -
found this interesting snippet tool for all javascript devs out there: https://github.com/30-seconds/...
found it useful! -
PHP is like the black sheep on every family tree. Lots of work revolves around him. It's prone to failure, break up easily, does things in an inefficient manner, and gets all kind of disease. So I'm using other family memebers, C++ and Go, to keep him on track.8
-
I know using Composition is a good way of reusing components. Works like a charm and sends data down the tree like a waterfall.
But in our codebase it's applied to bugs. Fix one, get two more, fix two get four more.
I want to cry :'(( -
A compiler and assembler set for bootstrapping the whole gcc Code tree and cross compiling each level1
-
So my latest assignment's having me write a recursive method that can traverse a binary tree and return the data in a List. The catch? I can't pass anything in and I can't make any new instance variables.
How and why -
That guy that made those videos of better programming experiences. With the live update of the pink flower tree, the game with different physics states simulated
-
I want to continue learning coding is team tree house a good place to learn coding? I also want a job in coding as soon as possible so what's the quickest path to getting hired. What languages should I learn and in what order?
Thanks for your replies guys!1 -
Do all devs know how to write these Goolgle/Amazonesq algorithms off the top of their heads? ex: build singly linked list from scratch / pre or post binary tree traversals etc..5
-
The countdown for Hacktoberfest has started, the only difference is that this time you can opt-out of taking the Hacktober fest tshirt and help plant a tree instead.2
-
function woodo {
if [[ $EUID > 0 ]]; then
echo "It's a wierd tree"
else
echo "The wierd tree doesn't like the squirtbottle."
echo "The wierd tree attacked!"
fi
} -
Any way to increase tab font size in xcode 12? Or Apple only gave an option to increase navigator font size (well three options instead of customizable font size .... but at least I can now better read dir tree of my project lol)
-
Fuck this shit... how hard can it be to build a fucking Thread safe tree with links to parent??? This is madness. Deadlock hell... aaaaaaaargh
I am close to switching languages for this project3 -
I hate to say it, but planting trees won’t help us remove carbon from the atmosphere. Every single last bit of carbon dioxide that the tree consumed will be put back into the atmosphere when the tree dies and decomposes. Artificial tree plantations are not forests. They have no animals, no birds, nothing. Trees don’t live long there.
Team Trees might be a good awareness project, but it has a layer of toxic positivity to it. It most definitely serves as an emotional band-aid at best, and deters people from working on real solutions at worst. Large things like climate are never that easy.5 -
Is there any JS framework by which i can make tree structure in frontend and where each node is input box, also addition of node(input box) should happen dynamically(with click)5